demarches-normaliennes/spec/models
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
..
cache feat(cache.procedure_dossier_pagination): add Cache::ProcedureDossierPagination to next/previous dossiers by statut. also responsible to fetch next/previous page 2024-12-10 09:15:00 +01:00
champ_presentations refactor(champs): update specs 2024-12-09 10:06:13 +01:00
champs fix(champ): always check if a champ is in a valid revision before validate 2024-12-10 11:30:51 +01:00
columns same for enums in columns 2024-12-12 13:20:12 +01:00
concerns fix(dossier): always remove previous champ version 2024-12-16 21:49:51 +00:00
logic replace drop_down_list_enabled_non_empty_options by drop_down_options when possible 2024-09-30 15:37:02 +02:00
types_de_champ refactor(champs): update specs 2024-12-09 10:06:13 +01:00
address_proxy_spec.rb [#10813] When value_json of champ SIRET is nil do not crash 2024-09-17 19:05:36 +02:00
administrateur_spec.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
api_entreprise_token_spec.rb [#10799] Declare api_entreprise_token_expires_at attribute and feed it on save 2024-10-15 14:40:49 +02:00
api_token_spec.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
archive_spec.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
assign_to_spec.rb fix: assign_to.procedure_presentation should return an ActiveModel::Errors if needed 2024-10-31 11:03:06 +01:00
attestation_template_spec.rb refactor(spec): champs_* -> project_champs_* 2024-10-04 12:29:50 +02:00
avis_spec.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
batch_operation_spec.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
bill_signature_spec.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
champ_private_spec.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
champ_spec.rb refactor(champs): update specs 2024-12-09 10:06:13 +01:00
chorus_configuration_spec.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
commentaire_groupe_gestionnaire_spec.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
commentaire_spec.rb Supprime la vérification par feature flag et utilise la vérif par booléen au booléen 2024-09-04 15:00:03 +00:00
condition_form_spec.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
contact_information_spec.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
deleted_dossier_spec.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
dossier_assignment_spec.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
dossier_operation_log_spec.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
dossier_preloader_spec.rb refactor(champs): update specs 2024-12-09 10:06:13 +01:00
dossier_purge_spec.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
dossier_spec.rb fix(champ): always check if a champ is in a valid revision before validate 2024-12-10 11:30:51 +01:00
dossier_transfer_spec.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
dubious_procedure_spec.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
email_event_spec.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
etablissement_spec.rb feat(etablissement): save value json data for columns 2024-12-06 14:39:37 +01:00
exercice_spec.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
expert_spec.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
experts_procedure_spec.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
export_item_spec.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
export_spec.rb feat(naming): enhance naming of dates columns. 2024-10-30 18:28:24 +01:00
export_template_spec.rb refactor(spec): champs_* -> project_champs_* 2024-10-04 12:29:50 +02:00
export_template_tabular_spec.rb feat(champ siret): etablissement columns filterable & displayable 2024-12-06 14:39:36 +01:00
filtered_column_spec.rb fix: do not allow empty filter in models 2024-10-24 12:06:32 +02:00
follow_commentaire_groupe_gestionnaire_spec.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
france_connect_information_spec.rb readapt name and logic 2024-09-04 08:08:01 +00:00
france_connect_particulier_client_spec.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
geo_area_spec.rb [#10919] Fix tests 2024-10-15 15:32:46 +02:00
gestionnaire_spec.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
groupe_gestionnaire_spec.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
groupe_instructeur_spec.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
individual_spec.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
instructeur_spec.rb test: instructeurs_procedure_spec 2024-12-06 17:53:35 +01:00
invite_spec.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
logic_spec.rb replace drop_down_list_enabled_non_empty_options by drop_down_options when possible 2024-09-30 15:37:02 +02:00
mail_template_spec.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
map_filter_spec.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
prefill_champs_spec.rb fix(champ): always check if a champ is in a valid revision before validate 2024-12-10 11:30:51 +01:00
prefill_description_spec.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
prefill_identity_spec.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
procedure_overview_spec.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
procedure_presentation_and_revisions_spec.rb feat(procedure): can filter from repetion content 2024-09-16 16:46:49 +02:00
procedure_presentation_spec.rb clean: ignore obsolete procedure_presentation columns 2024-11-12 13:52:09 +01:00
procedure_revision_preloader_spec.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
procedure_revision_spec.rb refactor(type_de_champ): improve and clean helper methods 2024-11-20 10:18:51 +01:00
procedure_revision_type_de_champ_spec.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
procedure_spec.rb Merge pull request #11050 from demarches-simplifiees/fix-9513-part-1 2024-11-26 08:58:48 +00:00
routing_engine_spec.rb feat(conditional): can condition and route with pays tdc 2024-11-04 11:09:37 +01:00
service_spec.rb [#10837] Add an explicit message when SIRET is not valid on service 2024-09-20 15:44:46 +02:00
siret_spec.rb test: fix for mutable string 2024-08-22 09:26:49 +02:00
sorted_column_spec.rb add sorted_column 2024-10-08 22:47:37 +02:00
stat_spec.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
super_admin_spec.rb change min_length password from 8 to 12 2024-09-16 15:28:14 +02:00
sva_svr_configuration_spec.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
targeted_user_link_spec.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
trusted_device_token_spec.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
type_de_champ_private_spec.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
type_de_champ_shared_example.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
type_de_champ_spec.rb refactor(champ): make row_id a named param 2024-12-09 10:06:13 +01:00
user_spec.rb inject more french dictionnaries to zxcvbn lib 2024-09-17 09:31:47 +02:00
zone_spec.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00