Commit graph

98 commits

Author SHA1 Message Date
Paul Chavard
5e7585daea
ETQ Administrateur, je voudrais que les dossiers non terminés soient toujours sur la dernière révision 2024-12-18 11:41:39 +01:00
Paul Chavard
9dd1973e18
fix(dossier): always remove previous champ version
If champ type_de_champ gets out of sync with its type, the persisted champ will not be part of the filled champs collection. In the merge code, we need to remove the previous champ, disregarding its type. The problem should have been caught earlier, but our unique index is not actually unique because our version of PG misses `NULLS NOT DISTINCT`. The unique index only works for champs in repetitions.
2024-12-16 21:49:51 +00:00
simon lehericey
a362e95542
same for direct access by champ.value 2024-12-12 15:20:25 +01:00
Paul Chavard
b3701a12b4
fix(champ): always check if a champ is in a valid revision before validate 2024-12-10 11:30:51 +01:00
Paul Chavard
10333908c3
refactor(champ): make row_id a named param 2024-12-09 10:06:13 +01:00
Paul Chavard
56b0b156bf
refactor(champs): update specs 2024-12-09 10:06:13 +01:00
Paul Chavard
474d206ee1
refactor(champs): remove orphaned and invisible champs after submit 2024-12-09 10:06:13 +01:00
Paul Chavard
6cbf66dfb8
refactor(dossier): stop destroying champs in rebase 2024-12-09 10:06:13 +01:00
Paul Chavard
0594887401
refactor(dossier): update clone and apply diff to work with rows 2024-12-09 10:06:13 +01:00
Paul Chavard
8e582e0be7
refactor(repetition): materialize repetition rows in db 2024-12-09 10:06:13 +01:00
Paul Chavard
7ee90b6d85
refactor(champ): validate only champs in revision 2024-12-09 10:06:13 +01:00
Colin Darie
9cb547efcf
refactor: rename naf => code_naf 2024-12-06 14:39:37 +01:00
Colin Darie
2e873254fe
refactor(columns): normalize (upcase first) address columns wording 2024-12-06 14:39:37 +01:00
Paul Chavard
99a9bc3829
fix(dossier): when a champ type changes on update, ensure we have an instance of the right class 2024-12-04 13:00:22 +01:00
Colin Darie
adf75a9036
fix: dépot => dépôt 2024-11-28 15:50:07 +01:00
mfo
266bba941a
bug(sentry#6088812113): pinpoint issue, we are trying to ask rows for a
repetition which is not in a dossier.revision
2024-11-26 10:56:21 +01:00
simon lehericey
38e998c279
fix: allow previous id with -> to work 2024-11-19 12:12:55 +01:00
krichtof
4b740f8f29
Merge pull request #10591 from demarches-simplifiees/9827-export-select
ETQ instructeur, je peux créer un modèle d'export tabulaire
2024-11-15 05:55:17 +00:00
Paul Chavard
ea5340d71a
fix(champ): do not validate champs with changed type 2024-11-14 16:53:56 +01:00
mfo
e563d81b7e
feat(export.type): ensure right cast type on export. ods expecting boolean value a 0||1 2024-11-14 14:45:42 +01:00
Christophe Robillard
15cea714c1
extract methods from dossier to dossier_export_concern
Co-authored-by: mfo <mfo@users.noreply.github.com>
Co-authored-by: Paul Chavard <github@paul.chavard.net>
2024-11-14 14:45:41 +01:00
Paul Chavard
942fc42af2
refactor(dossier): rebase should not change champ type 2024-11-14 11:32:12 +01:00
simon lehericey
1424fca469
other option for groupe instructeurs injection 2024-11-07 18:11:43 +01:00
simon lehericey
17531b73b7
internalize value_column inside champ_column 2024-11-07 18:11:42 +01:00
simon lehericey
055069755a
small cleaning in column_concern_spec 2024-11-07 18:11:42 +01:00
simon lehericey
9fd3a460cd
remove scope arg from column.new 🎉 2024-11-07 18:11:41 +01:00
simon lehericey
1277500069
inject groupe_instructeurs when possible 2024-11-07 18:11:40 +01:00
Colin Darie
594fc517d1
Merge pull request #10943 from colinux/feat-admin-prefill-service
ETQ admin mes informations de nouveau service sont pré-remplies à partir d'API publiques
2024-11-05 09:54:53 +00:00
Colin Darie
4e80f16b9f
Merge pull request #10974 from demarches-simplifiees/remove_empty_brouillon
Tech: ajoute un scope pour détecter les brouillons vides
2024-11-05 09:32:16 +00:00
Lisa Durand
35dee477ea
rename ProcedureLabel by Label 2024-11-04 16:48:44 +01:00
Lisa Durand
3a45524d39
add column label to procedure table 2024-11-04 16:48:00 +01:00
Colin Darie
065d380b70
feat(service): prefill type organisme from API Entreprise 2024-11-04 12:50:49 +01:00
Colin Darie
8dc47c1b93
feat(service): prefill contact information from annuaire service public 2024-11-04 12:48:13 +01:00
simon lehericey
92a863d48c
remove_all as there is no some_usager_columns 2024-10-30 18:28:25 +01:00
mfo
26a078bc45
feat(naming): enhance naming of dates columns. 2024-10-30 18:28:24 +01:00
mfo
fa50e21101
review(pull/10591#discussion_r1818919818): export without user id 2024-10-30 18:28:24 +01:00
Christophe Robillard
df71c6a689
align columns naming and order for filter and add for export
Co-authored-by: mfo <mfo@users.noreply.github.com>
2024-10-30 18:28:23 +01:00
Paul Chavard
c6329ef10a
feat(column): add column get_value 2024-10-30 08:10:50 +01:00
simon lehericey
0137763d42
feat: add empty_brouillon scope 2024-10-22 12:03:03 +02:00
Paul Chavard
8c8bb870fc
refactor(dossier): filled champs 2024-10-17 11:33:24 +02:00
Colin Darie
5522efc3e5
Merge pull request #10954 from tchak/fix-dossier-merge-with-multiple-rows
ETQ usager, fix soumission d'un dossier en construction quand multiples lignes de champs répétables ont été modifiées
2024-10-16 15:00:26 +00:00
Paul Chavard
c417614695
fix(dossier): fix apply_diff with multiple changed rows 2024-10-16 14:15:26 +02:00
simon lehericey
3677f3b2d3
tech(clean): remove Column classname: attribute
Co-authored-by: mfo <mfo@users.noreply.github.com>
2024-10-15 16:09:07 +02:00
Mathieu Magnin
097074fdc7
Merge pull request #10865 from demarches-simplifiees/fix-10799
ETQ Admin / Instructeur je veux être savoir si le jeton api entreprise d'une démarche a expiré ou va expirer prochainement
2024-10-15 13:25:20 +00:00
Mathieu Magnin
4266a76db6
[#10799] Move test in right file 2024-10-15 14:40:50 +02:00
Mathieu Magnin
ec2c913ab4
[#10799] Display token error on related card 2024-10-15 14:40:49 +02:00
Mathieu Magnin
7009eed9d7
[#10799] Move api entreprise token logic in a concern 2024-10-15 14:40:49 +02:00
Paul Chavard
bd32f5693d
refactor(repetition): remove parent_id 2024-10-15 11:42:36 +02:00
Eric Leroy-Terquem
d9f604e8ce
feat(gallery): notify instructeur if pieces jointes updates 2024-10-11 11:20:46 +02:00
simon lehericey
34b0379203
procedure.find_column raise NotFound to fit AR interface 2024-10-09 09:23:06 +02:00