Paul Chavard
74c6273d17
fix(db): remove bad data
2022-09-13 12:28:04 +02:00
Martin
b9e7bdc01e
fix(migration): following e764aade13
; we still need to remove those columns otherwise destroying a procedure fails due to index on types_de_champ.revision_id
2022-08-22 16:00:56 +02:00
Colin Darie
db968a1ffc
fix(db): remove DossierTransfer without email
2022-08-03 11:44:54 +02:00
Christophe Robillard
f556b39910
fix(db): remove bad attachments
...
destroy attachments with blobs that doesn't exist
2022-07-28 10:11:27 +02:00
Colin Darie
67d2cb2061
chore(schema): add exports#job_status
...
Same behavior as Archive
On destroy tous les exports existants qui n'ont pas cette notion de status.
2022-07-26 17:53:24 +02:00
Paul Chavard
03fbe506f6
perf(graphql): benchmark demarches_publiques query
2022-07-26 12:54:10 +02:00
Christophe Robillard
899047b656
schedule and display only schedulable jobs
2022-07-21 21:54:15 +02:00
Paul Chavard
8532c71036
perf(dossier.pdf): use DossierPreloader to generate pdf
2022-07-21 15:02:29 +02:00
Paul Chavard
260d8d2fec
perf(graphql): add graphql benchmark
2022-07-21 12:29:08 +02:00
Martin
308bedf28a
feat(task/support:delete_adminstrateurs_procedures): add task to remove all AdministrateursProcedure from a user admin
2022-07-06 14:38:04 +02:00
Paul Chavard
e9d0ccbdf9
task(dossier): remove orphan champs
2022-07-06 13:28:00 +02:00
Martin
4ef2fe37e6
fix(20220614053743_fix_procedure_presentation_with_depose_since): missed case of procedure_presentation with Mis à jour depuis
2022-06-14 17:11:20 +02:00
Paul Chavard
b6868ce9ea
perf(dossier): add dossier export benchmarks
2022-06-14 09:04:26 +01:00
Martin
56f7133799
fix(procedure_presentation): can not present a 'virtual field' like depose_since
...
fix(data): add migration to remove fields depose_since from existing procedure presentation
2022-06-14 09:02:37 +02:00
Paul Chavard
baad32905f
fix(procedure): fix wrong parents
2022-06-01 09:33:39 +02:00
Christophe Robillard
b6d0d1a101
remove old FindDubiousProceduresJob from delayed_job table
2022-05-25 14:44:53 +02:00
Martin
863358f389
clean(data): remove old cron UpdateAdministrateurUsageStatisticsJob from delayed job table
2022-05-17 16:57:55 +02:00
Martin
7fcf566382
sentry(3002560608): some Dossier ready to be purged are missing the hidden_by_reason
2022-05-16 21:18:13 +02:00
Martin
9798e268df
fix(sentry/3139111475): clean up some "corrupted" data, some dossier still have depose_at nil while en_construction_at is set
2022-05-16 13:58:50 +02:00
Paul Chavard
f5a2747af7
fix(revision): add fix_child_types_de_champ task to create join tables on repetition children
2022-05-12 12:54:18 +02:00
simon lehericey
62aecd3b2e
after_party: fix wrong parent
2022-05-10 13:52:58 +02:00
Martin
75da4d8c8d
Revert "migration(fix.data): when a repetable revision_types_de_champ points to a non active revision type de champs, relink it to the actuel revision_type_de_champs pointing to the stable id of its parent.type_de_champ.stable_id"
...
This reverts commit 19360e7aac
.
2022-05-09 18:45:35 +02:00
Martin
19360e7aac
migration(fix.data): when a repetable revision_types_de_champ points to a non active revision type de champs, relink it to the actuel revision_type_de_champs pointing to the stable id of its parent.type_de_champ.stable_id
2022-05-09 18:01:02 +02:00
Paul Chavard
27f9a820cc
feat(dossier): add preview flag
2022-04-28 11:52:38 +02:00
Paul Chavard
90dd5bc9c5
fix(dossiers): dossier extend_conservation actually works
2022-04-08 13:40:28 +02:00
simon lehericey
c00e21adb9
after_party task which removes duplicate attestation
2022-04-05 13:01:32 +02:00
Pierre de La Morinerie
6dd742dcdf
db: add a data migration to remove invalid roles
...
This prepares a future migration where we can add database constraints
to those roles.
2022-03-29 08:30:48 +02:00
François Vantomme
04c3739a3d
fix(after_party): rescue from PG::UndefinedColumn
...
ActiveRecord::StatementInvalid: PG::UndefinedColumn: ERROR: column types_de_champ.procedure_id does not exist
fixes : #7036
2022-03-23 10:57:32 +01:00
François Vantomme
6a6947c064
fix(after_party): check constant presence before processing
...
NameError: uninitialized constant TmpDossiersMigrateRevisionsJob
refs: #7032
2022-03-22 12:07:40 +01:00
François Vantomme
a1354e7996
fix(after_party): rescue from ActiveRecord::ConfigurationError
...
ActiveRecord::ConfigurationError: Can't join 'TypeDeChamp' to
association named 'drop_down_list'; perhaps you misspelled it?
refs: #7030
2022-03-22 12:02:43 +01:00
François Vantomme
28f9bd62d1
fix(after_party): use find_or_create_by to respect idempotency
2022-03-17 10:10:10 +01:00
François Vantomme
021bdd4db6
fix(after_party): use find_or_create_by to respect idempotency
...
instead of create!
2022-03-17 10:02:43 +01:00
François Vantomme
b89541568c
fix(after_party): remove APP_ENV condition
2022-03-16 17:56:06 +01:00
François Vantomme
93233be5c9
fix(after_party): add the missing second argument to send_expiration_notices method
...
ArgumentError: wrong number of arguments (given 1, expected 2)
app/services/expired_dossiers_deletion_service.rb:72:in `send_expiration_notices'
lib/tasks/deployment/20200401123317_process_expired_dossiers_en_construction.rake:11:in `block (2 levels) in <main>'
refs: 7028
2022-03-16 17:56:06 +01:00
Pierre de La Morinerie
1b69accd10
tasks: rename after_party task to the proper name
...
The name of the file must be exactly the same than the name of the
task.
2022-03-15 16:20:15 +01:00
Pierre de La Morinerie
d2f12e5188
db: copy user-related ids to the respective models
2022-03-15 15:57:22 +01:00
François Vantomme
5d448fd152
fix(export): set a random UUID key before forcing not null
2022-03-15 08:57:39 +01:00
Paul Chavard
4c567632e5
fix(migration): add with_discarded to seed_hidden_at_dossiers
2022-03-09 17:53:49 +01:00
Paul Chavard
bcbcd11c42
migrate(dossier): fill hidden_by_administration_at and hidden_by_user_at from hidden_at
2022-03-09 17:41:28 +01:00
Pierre de La Morinerie
5150e33212
models: ensure DROM phone numbers are valid
...
They were accepted before, because they were 'possible' – but now
they are explicitely considered as valid.
2022-03-02 09:57:03 +00:00
Pierre de La Morinerie
30d7cf634a
tasks: restore older after_party tasks
...
Turns out deleting the tasks after 6 months only may not be enough for instances deploying
only once a year, for instance.
This reverts commit 77b65f3aa0
.
2022-02-22 15:39:16 +01:00
Paul Chavard
fac77d97ef
task(attestation_template): reassign_redundant_attestation_templates
2022-02-11 11:30:24 +01:00
Paul Chavard
e269077c40
refactor(attestation_template): cleanup relationships
2022-02-11 08:45:32 +01:00
Paul Chavard
ea6aec8b1a
chore(webpack): enable typescript
2022-02-09 10:29:00 +01:00
Paul Chavard
1fc7db2562
fix(attestation_template): fix migration task
2022-02-08 16:22:59 +01:00
François Vantomme
284483c3db
fix(task): deal nicely with nil claimant_type on avis table
2022-02-08 16:14:59 +01:00
François Vantomme
c466d225e8
fix(task): deal nicely with dropped instructeur_id column on avis table
2022-02-08 16:03:58 +01:00
Paul Chavard
0ad44bcfdb
Merge pull request #6924 from adullact/fix/6882-afterparty-backfill-claimant
...
[AfterParty] échec de la tâche 20210311085419_backfill_claimant_id_for_experts_on_avis_table
2022-02-08 14:58:41 +01:00
Paul Chavard
a680ceba01
Merge pull request #6925 from adullact/fix/6883-afterparty-backfill-experts-procedure
...
[AfterParty] échec de la tâche 20210324081552_backfill_experts_procedure_id_on_avis_table
2022-02-08 14:58:11 +01:00
Pierre de La Morinerie
847abca122
config: simplify mailer configuration again
...
Move everything to initializers, and replace the email settings
interceptor by a BalancerDeliveryMethod.
It has the advantage that it can be configured entirely from the
`config/environment.rb` file, without an extra file to look at.
2022-02-08 12:44:43 +01:00