demarches-normaliennes/spec/models/concerns
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
..
api_entreprise_token_concern_spec.rb [#10799] Move test in right file 2024-10-15 14:40:50 +02:00
champ_conditional_concern_spec.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
champ_validate_concern_spec.rb fix(champ): always check if a champ is in a valid revision before validate 2024-12-10 11:30:51 +01:00
columns_concern_spec.rb refactor: rename naf => code_naf 2024-12-06 14:39:37 +01:00
dossier_champs_concern_spec.rb refactor(champ): make row_id a named param 2024-12-09 10:06:13 +01:00
dossier_clone_concern_spec.rb fix(dossier): always remove previous champ version 2024-12-16 21:49:51 +00:00
dossier_correctable_concern_spec.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
dossier_empty_concern_spec.rb feat: add empty_brouillon scope 2024-10-22 12:03:03 +02:00
dossier_prefillable_concern_spec.rb refactor(spec): champs_* -> project_champs_* 2024-10-04 12:29:50 +02:00
dossier_rebase_concern_spec.rb same for direct access by champ.value 2024-12-12 15:20:25 +01:00
dossier_searchable_concern_spec.rb refactor(spec): champs_* -> project_champs_* 2024-10-04 12:29:50 +02:00
dossier_sections_concern_spec.rb refactor(champ): make row_id a named param 2024-12-09 10:06:13 +01:00
dossier_state_concern_spec.rb refactor(champs): remove orphaned and invisible champs after submit 2024-12-09 10:06:13 +01:00
email_sanitizable_concern_spec.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
initiation_procedure_concern_spec.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
mail_template_concern_spec.rb fix(sva): add sva/svr decision date tag for relevant template emails 2024-09-24 11:28:18 +02:00
pieces_jointes_list_concern_spec.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
prefillable_from_service_public_concern_spec.rb feat(service): prefill type organisme from API Entreprise 2024-11-04 12:50:49 +01:00
procedure_stats_concern_spec.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
rna_champ_association_fetchable_concern_spec.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
siret_champ_etablissement_fetchable_concern_spec.rb fix(test): disable frozen string in siret concern because it's a literal string in spec 2024-08-22 09:26:49 +02:00
tags_substitution_concern_spec.rb refactor(champ): make row_id a named param 2024-12-09 10:06:13 +01:00
treeable_concern_spec.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00