demarches-normaliennes/lib/tasks
Pierre de La Morinerie a8354bd103 dossiers: unify deletion of dossiers between manager and user
The code paths for deleting a dossier were different, depending on
whether the dossier was deleted by the user, or from the Manager.

This commit unifies the two code paths into one.

This has the effect of:

- An operation log is now recorded when an user deletes its own dossier;
- Gestionnaires are now notified even when the dossier is deleted from
  the Manager;
- The `support:delete_user_account` task now requires the email address
  of the author.
2019-07-16 16:22:20 +02:00
..
deployment Migrate mail body to ActionText 2019-07-03 13:15:49 +02:00
.keep Fix rake tasks 2017-01-11 17:36:28 +01:00
2017_07_18_clean_followed_dossiers.rake Enable the Layout/SpaceBeforeBlockBraces cop 2019-01-03 10:53:50 +01:00
2017_07_26_clean_birthdate_on_individual.rake Enable the Layout/SpaceBeforeBlockBraces cop 2019-01-03 10:53:50 +01:00
2017_08_01_clean_assign_to.rake Enable the Layout/SpaceBeforeBlockBraces cop 2019-01-03 10:53:50 +01:00
2017_09_19_set_confidentialite_to_old_avis.rake Avis: add confidentiel field 2017-09-20 15:42:26 +02:00
2017_09_22_set_dossier_updated_replied_to_initiated.rake [Fix #503] Lib task: move updated, replied state to initiated 2017-09-26 14:42:54 +02:00
2017_10_06_set_follow_date.rake Enable the Layout/MultilineMethodCallBraceLayout cop 2018-01-15 22:33:13 +01:00
2017_10_18_regenerate_attestation.rake tasks: silence output of tasks during tests 2018-06-13 11:05:15 +02:00
2017_10_30_copy_commentaire_piece_justificative_to_file.rake Enable the Layout/SpaceAfterComma cop 2019-01-03 10:53:50 +01:00
2017_12_04_translate_dossier_state_to_french.rake Enable Style/SymbolArray 2018-10-03 12:15:48 +02:00
2017_12_05_initialize_timestamps_for_entreprises.rake DateTime.now => Time.zone.now 2018-10-26 10:10:20 +00:00
2017_12_20_delete_old_administration.rake tasks: silence output of tasks during tests 2018-06-13 11:05:15 +02:00
2017_12_21_replace_deprecated_mail_template_tags.rake Procédure → Démarche 2018-09-05 15:46:24 +02:00
2018_01_11_add_active_state_to_administrators.rake Add active attribute to administrateur model 2018-01-16 10:49:07 +01:00
2018_01_18_clean_datetime_in_champs.rake Enable the Layout/SpaceAfterComma cop 2019-01-03 10:53:50 +01:00
2018_02_13_fill_champ_private_and_type.rake some old champ live in a parallel space time continuum without valid dossier or type_de_champ 2018-02-27 11:00:34 +01:00
2018_02_14_clean_double_champ_private.rake Cleanup rake task for public/private champ outage 2018-02-14 19:03:05 +01:00
2018_02_20_remove_duplicated_assign_tos.rake Fix a typo 2018-02-20 15:25:01 +01:00
2018_02_20_set_processed_at.rake Moulinette™ for unprocessed accepted dossiers 2018-02-21 16:38:25 +01:00
2018_02_28_clean_gestionnaire_emails.rake Enable the Lint/UnusedBlockArgument cop 2019-01-03 10:53:50 +01:00
2018_03_06_clean_html_textareas.rake tasks: silence output of tasks during tests 2018-06-13 11:05:15 +02:00
2018_03_08_send_missed_accuse_reception.rake DateTime.new => Time.zone.local 2018-10-26 10:10:20 +00:00
2018_03_29_inline_entreprise_association.rake Entreprise/Association moulinettes™ 2018-04-04 11:48:06 +02:00
2018_03_29_procedure_description_markup.rake [Fix #1690] Strip html markup from procedure descriptions 2018-03-29 11:13:34 +02:00
2018_03_29_remove_code_tags_from_mail_templates.rake tasks: silence output of tasks during tests 2018-06-13 11:05:15 +02:00
2018_04_03_attestation_closed_mail_discrepancy.rake Do not use deliver_late 2018-04-11 09:33:06 +02:00
2018_04_03_type_individual_date.rake Task: parse individual_date 2018-04-03 16:23:15 +02:00
2018_04_04_fetch_etablissement_with_no_entreprise.rake tasks: silence output of tasks during tests 2018-06-13 11:05:15 +02:00
2018_04_11_admin_or_gestionnaire_users.rake Create User accounts for existing Admin accounts that don’t have one 2018-04-12 16:40:24 +02:00
2018_05_09_add_test_started_at_to_procedure.rake Task to add test_started_at to all procedures 2018-05-15 11:00:20 +02:00
2018_05_14_add_annotation_privee_to_procedure.rake [#1421] Use delegation rather than STI for TypeDeChamp 2018-09-25 08:26:56 +02:00
2018_05_15_add_aasm_state_to_procedure.rake Add aasm_state to procedures 2018-05-17 14:46:48 +02:00
2018_05_21_cerfa_to_pj.rake Make champ PJ generally available 2018-12-18 11:11:23 +01:00
2018_05_24_optional_durees_conservation_for_legacy_procedures.rake [#1946] Temporarily allow legacy procedures not to have a retention time 2018-06-01 16:46:39 +02:00
2018_05_30_missed_ar_messages.rake DateTime.new => Time.zone.local 2018-10-26 10:10:20 +00:00
2018_06_01_optional_juridique_for_legacy_procedures.rake Procedure: add rake task to set juridique_required to false for legacy procedures 2018-06-01 11:12:53 +02:00
2018_06_04_scan_pjs.rake Enable Style/SymbolProc 2018-10-03 12:15:48 +02:00
2018_06_05_resend_attestations.rake tasks: silence output of tasks during tests 2018-06-13 11:05:15 +02:00
2018_06_05_send_new_attestations.rake tasks: silence output of tasks during tests 2018-06-13 11:05:15 +02:00
2018_06_06_users_for_admins_and_gestionnaires.rake DateTime.now => Time.zone.now 2018-10-26 10:10:20 +00:00
2018_06_13_unhide_dossiers.rake Task to unhide dossiers with instruction commencee 2018-06-19 10:05:00 +02:00
2018_06_26_purge_preview_dossiers.rake Rake task to remove champs with dossier_id = 0 (created by old preview) 2018-06-26 19:02:34 +02:00
2018_07_24_refresh_search_terms.rake [#2179] Rake task to retroactively generated denormalized search terms for Dossiers 2018-07-27 11:11:52 +02:00
2018_08_24_encrypt_tokens.rake Api Token: encrypt current tokens 2018-09-27 10:14:32 +02:00
2018_08_27_migrate_feedbacks.rake Migrate marks to ratings on feedbacks 2018-08-27 17:12:01 +02:00
2018_08_31_monthly_dossier_expiration_summary.rake [#1946] Send expiring dossier summary every month 2018-09-20 17:44:41 +02:00
2018_09_12_fix_templates.rake Enable the Lint/UselessAssignment cop 2019-01-03 10:53:50 +01:00
2018_09_12_ftap.rake Support: fix task 2018-09-12 17:15:22 +02:00
2018_09_20_procedure_presentation_entreprise.rake Fix cosmétique 2018-09-25 15:00:06 +02:00
2018_09_20_procedure_presentation_jsonb.rake [Fix #2622] Change filters to proper JSONB 2018-09-24 19:39:01 +02:00
2018_09_27_fill_missing_en_instruction_at.rake [fix #2696] Rake: add task to fill empty instruction_at 2018-09-27 15:02:38 +02:00
2018_10_03_remove_fc_from_procedure_presentation.rake Migrate now obsolete displayed fields, filters and sorts 2018-10-04 13:54:07 +02:00
2018_10_09_fix_mailjet_mistakes.rake Mailjet: i'm loving it 2018-10-09 17:53:14 +02:00
2018_10_30_admin_has_gestionnaire.rake An admin has always a gestionnaire role 2018-11-13 10:41:45 +01:00
2018_11_08_activate_trusted_device_for_a-f.rake Rake: enable trusted_device for some gestionnaire 2018-11-13 10:41:45 +01:00
2018_12_03_finish_piece_jointe_transfer.rake carrierwave: fix typo 2019-05-15 14:03:15 +02:00
2019_02_18_migrate_service_organisme.rake [fix #3315] Migrate service organisme 2019-02-18 16:50:44 +01:00
2019_05_29_migrate_commentaire_pj.rake Add commentaire pj migration task 2019-07-10 15:35:29 +02:00
2019_06_06_fix_timestamps_of_migrated_dossiers.rake tasks: repair updated_at of dossiers wrongly touched by PJ migration 2019-06-06 11:11:29 +02:00
cloud_storage.rake Enable the Stlye/BlockDelimiters cop 2018-12-19 13:56:10 +01:00
deploy.rake remove unused force_asset_precompile during setup 2019-02-12 11:17:51 +01:00
dossier_procedure_migrator.rb Fix support tasks 2019-03-12 11:57:51 +01:00
lint.rake [Fix #1747] Add a new editorconfig lint task 2018-09-20 16:41:05 +02:00
pieces_justificatives.rake tasks: add a description to make :pieces_justificatives tasks valid 2019-05-28 15:29:59 +02:00
superadmin.rake admin → superadmin 2019-01-03 11:03:16 +01:00
support.rake dossiers: unify deletion of dossiers between manager and user 2019-07-16 16:22:20 +02:00
task_helper.rb task_helper: mark private methods 2019-05-29 11:48:41 +02:00