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
Colin Darie
bd90a79b48
Merge pull request #11144 from tchak/fix-fork-merge
...
fix(dossier): on fork merge, always remove previous champ version
2024-12-17 13:15:59 +00:00
Colin Darie
f6366a9cd3
refactor(dossier): predicates methods must return boolean
2024-12-17 11:38:49 +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
Paul Chavard
10333908c3
refactor(champ): make row_id a named param
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
1f5dd3bd02
refactor(dossier): cleanup user controller
2024-11-26 14:30:23 +01:00
Paul Chavard
dd97c2fffd
refactor(dossier): diff and merge
2024-10-17 11:33:24 +02:00
Paul Chavard
c417614695
fix(dossier): fix apply_diff with multiple changed rows
2024-10-16 14:15:26 +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
Colin Darie
77fb0553fc
chore: enable freeze string literals by comment
2024-08-22 09:26:48 +02:00
Colin Darie
e01f5b7993
refactor(search): index search terms only when necessary
2024-05-08 10:35:04 +02:00
Colin Darie
2e763d5e92
perf(search): ignore search_terms columns, use raw sql instead
2024-05-06 17:16:34 +02:00
mfo
aca67a2274
tech(refactor.champs.validation): all champs validation use :validate_champ_value_or_prefill?
2024-04-17 06:27:26 +02:00
Paul Chavard
6ad0b901b6
fix(champ): use public_id in views
2024-03-26 11:23:23 +01:00
Paul Chavard
a865e00f4d
fix(apply_diff): one more time
2024-03-11 15:13:56 +01:00
Paul Chavard
72e27eb7b4
fix(dossier): safely remove child champs in apply_diff
2024-03-11 09:17:03 +01:00
Paul Chavard
9b26dedab4
refactor(dossier): make new methods arguments named
2024-03-04 10:59:11 +01:00
Paul Chavard
8687d73a73
refactor(dossier): clone only current revision champs
2024-03-04 10:59:11 +01:00
Paul Chavard
1850d80b82
refactor(dossier): use new champs_for_revision method
2024-03-04 10:59:11 +01:00
Martin
3e64a3bbbc
tech(refactor): extract clone logic inside its own class
2024-02-16 11:23:39 +01:00
Eric Leroy-Terquem
5e4d96654f
fix(dossier clone): always rebase cloned dossiers
2023-09-21 13:50:40 +02:00
Martin
05687e63ca
amelioration(dossier.routage): assigne le groupe d'instructeur au moment de passer_en_construction! un dossier et ignore ce concept de pre-setter le groupe d'instructeur sur tout le reste de l'app
2023-08-14 10:17:23 +02:00
Eric Leroy-Terquem
0e58e10b82
refactor(DossierAssignment): move create_assignment to assign_to_groupe_instructeur
2023-07-18 16:54:00 +02:00
Martin
c52c0e4573
correctif(dossier.en_construction): ETQ usager, je souhaite pouvoir modifier un dossier ayant des repetition ayant des enfants
2023-06-30 12:09:54 +02:00
Colin Darie
8501fbadbb
fix(dossier): can merge fork after rebase adding a champ in repetition
2023-06-23 00:22:32 +02:00
Colin Darie
795e0ca471
fix(fork): can fork a dossier having invalid champs so it can be fixed in brouillon
2023-05-24 12:15:43 +02:00
Colin Darie
0d21450f8a
fix(fork): don't let active storage override our champ#updated_at after a transaction
2023-05-15 11:08:07 +02:00
Paul Chavard
b4a299c326
fix(user): always rebase original dossier before merge
2023-05-12 20:42:02 +02:00
Colin Darie
218c7d08c2
feat(fork): mark a fork as stale for future deletion, so it can't be reused
2023-05-09 18:49:53 +02:00
Colin Darie
c35176703f
feat(dossier): inform dossier en_construction having not submitted changes
2023-05-09 18:49:52 +02:00
Colin Darie
f6ebfe0e47
fix(dossier): sync search_terms after merge
...
Use a job instead of a lot of reloads
2023-05-09 18:49:52 +02:00
Paul Chavard
025bd5beaf
feat(dossier): dossier can be forked for editing
2023-05-09 15:34:10 +02:00