demarches-normaliennes/app/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
..
.keep First Commit 2015-08-10 11:05:06 +02:00
addressable_column_concern.rb refactor(columns): normalize (upcase first) address columns wording 2024-12-06 14:39:37 +01:00
api_entreprise_token_concern.rb [#10799] Fixes after @E-L-T review's 2024-10-15 14:40:51 +02:00
attachment_image_processor_concern.rb fix(process_image): sometimes last is nil 🤷‍♂️ 2024-11-07 12:50:42 +01:00
attachment_titre_identite_watermark_concern.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
attachment_virus_scanner_concern.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
blob_image_processor_concern.rb feat(gallery): add attachments from justificatif motivation 2024-11-05 16:53:41 +01:00
blob_signed_id_concern.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
blob_virus_scanner_concern.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
champ_conditional_concern.rb refactor(dossier): rebase should not change champ type 2024-11-14 11:32:12 +01:00
champ_revision_concern.rb refactor(champ): validate only champs in revision 2024-12-09 10:06:13 +01:00
champ_validate_concern.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.rb refactor(columns): more readable etablissment columns list 2024-12-06 14:39:37 +01:00
domain_migratable_concern.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
dossier_champs_concern.rb refactor(champ): make row_id a named param 2024-12-09 10:06:13 +01:00
dossier_clone_concern.rb fix(dossier): always remove previous champ version 2024-12-16 21:49:51 +00:00
dossier_correctable_concern.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
dossier_empty_concern.rb feat: add empty_brouillon scope 2024-10-22 12:03:03 +02:00
dossier_export_concern.rb refactor(champ): make row_id a named param 2024-12-09 10:06:13 +01:00
dossier_filtering_concern.rb forgive accent in query 2024-12-02 21:06:55 +01:00
dossier_prefillable_concern.rb fix(prefill.repetitions): with more than one row, should be able to prefill champs repetition rows 2024-12-06 17:32:35 +01:00
dossier_rebase_concern.rb refactor(dossier): stop destroying champs in rebase 2024-12-09 10:06:13 +01:00
dossier_searchable_concern.rb refactor(repetition): consolidate repetition manipulation methods 2024-09-27 11:34:06 +02:00
dossier_sections_concern.rb refactor(champ): make row_id a named param 2024-12-09 10:06:13 +01:00
dossier_state_concern.rb refactor(champs): remove orphaned and invisible champs after submit 2024-12-09 10:06:13 +01:00
email_sanitizable_concern.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
encryptable_concern.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
initiation_procedure_concern.rb it displays an alert if using test service before publishing a procedure 2024-09-02 16:52:21 +02:00
mail_template_concern.rb fix(sva): add sva/svr decision date tag for relevant template emails 2024-09-24 11:28:18 +02:00
password_complexity_concern.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
pieces_jointes_list_concern.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
prefillable_from_service_public_concern.rb refactor(service): concurrent prefill API calls 2024-11-04 12:50:49 +01:00
procedure_chorus_concern.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
procedure_groupe_instructeur_api_hack_concern.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
procedure_path_concern.rb Remove not used param 2024-11-15 11:07:04 +01:00
procedure_publish_concern.rb refactor(type_de_champ): improve and clean helper methods 2024-11-20 10:18:51 +01:00
procedure_stats_concern.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
procedure_sva_svr_concern.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
rna_champ_association_fetchable_concern.rb feat(rna): also store rna title 2024-11-15 17:10:48 +01:00
siret_champ_etablissement_fetchable_concern.rb fix(api_entreprise): better handle api entreprise errors 2024-10-15 15:24:37 +02:00
tags_substitution_concern.rb fix(sva): add sva/svr decision date tag for relevant template emails 2024-09-24 11:28:18 +02:00
transient_models_with_purgeable_job_concern.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
treeable_concern.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
trusted_device_concern.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
user_find_by_concern.rb chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00