Commit graph

518 commits

Author SHA1 Message Date
Paul Chavard
be3283a9a8 Add commentaire pj migration task 2019-07-10 15:35:29 +02:00
Mathieu Magnin
d13b7f953f Migrate mail body to ActionText 2019-07-03 13:15:49 +02:00
Paul Chavard
fb0ef15e3c Export dossiers v2 2019-07-02 14:20:29 +02:00
Paul Chavard
46c1bbbc6f Official support for declarative demarches 2019-07-02 14:12:26 +02:00
simon lehericey
05b1c41616 After_party task to enable_secured_login for the stock 2019-07-01 15:06:39 +02:00
Paul Chavard
0e519679ce Remove orphaned piece_justificatives 2019-06-20 16:28:12 +02:00
Pierre de La Morinerie
0b49e61ec0 tasks: repair updated_at of dossiers wrongly touched by PJ migration
When running the PJ migration task, migrated dossiers have their
updated_at attribute modified.

This means a yellow notification badge pops up on the Instructeurs
pages.

This PR repairs the affected dossiers, by restoring an approximative
updated_at from the latest workflow value (or the timestamp of the
migrated champ).
2019-06-06 11:11:29 +02:00
Pierre de La Morinerie
2bb103b8bd task_helper: mark private methods 2019-05-29 11:48:41 +02:00
Pierre de La Morinerie
4d9cb0bb7a task_helper: fix duration formatting
If we don't convert the duration to utc, it starts at 01:00:00
2019-05-29 11:48:21 +02:00
Pierre de La Morinerie
c7f2113972 tasks: add a description to make :pieces_justificatives tasks valid 2019-05-28 15:29:59 +02:00
Pierre de La Morinerie
4cf54e0d28 tasks: add progress report to the pjs migration task
Progress is indicated per migrated champ.
2019-05-28 10:42:18 +02:00
Pierre de La Morinerie
21ac60ad04 tasks: add a task to migrate pjs of procedures in batches 2019-05-28 10:42:18 +02:00
Pierre de La Morinerie
d431eeeb93 carrierwave: fix typo
Turns out the `openstack_identity_api_version` has not actually been
filled out for a while, because of a typo.
2019-05-15 14:03:15 +02:00
maatinito
3cc088e965 Obsolete tasks that triggers errors on a fresh database
20180913161001_add_path_to_procedures.rake
  NoMethodError: undefined method `procedure_path' for #<Procedure:0x00007fffd77aed40>
20181009130216_restore_deleted_dossiers.rake
  ActiveRecord::RecordNotFound: Couldn't find Procedure with 'id'=4860
20181010102500_remove_invite_gestionnaires.rake
  NameError: uninitialized constant InviteGestionnaire
2019-05-06 15:08:42 +02:00
Paul Chavard
d26f736f50 Migrate virus scans to blob metadata 2019-05-02 15:58:09 +02:00
Pierre de La Morinerie
8bd1064532 tasks: populate Procedure.administrateurs even for hidden procedures
The previous procedure migration (created in
f7af01e0dc) worked fine, but didn't run
on hidden procedures (due to the default scope).
2019-04-29 16:35:34 +02:00
Paul Chavard
8d093bd9ba Fix missing dossier_id on champs inside repetition 2019-04-18 16:55:35 +02:00
Frederic Merizen
498fe3b6ef [#2180] Task to migrate PJs to champs PJ for one procedure 2019-03-27 17:36:13 +01:00
Paul Chavard
64abd8c712 Remove support tasks to change administrateurs 2019-03-12 11:59:01 +01:00
Paul Chavard
31d9b388ab Fix support tasks 2019-03-12 11:57:51 +01:00
Paul Chavard
23d8f0d803 Remove old tasks depending on single administrateur 2019-03-12 11:57:51 +01:00
Mathieu Magnin
b690b89b34 Clean old support task 2019-03-12 11:26:07 +01:00
Mathieu Magnin
f96d1b1823 Create default path for brouillons procedures 2019-03-12 11:26:07 +01:00
Paul Chavard
f7af01e0dc Create new procedures with administrateurs 2019-02-26 16:38:58 +01:00
Paul Chavard
12e93391c9 Task to add administrateur to administrateurs 2019-02-20 17:15:44 +01:00
Paul Chavard
84383fc3c1 Assigne admins to procedure.administrateurs 2019-02-20 17:10:57 +01:00
Mathieu Magnin
11078b7f71 Add rake task to activate publish draft 2019-02-19 17:50:11 +01:00
Mathieu Magnin
cf610bbd91
Merge branch 'dev' into enforce-rubocop-timezone 2019-02-18 17:41:41 +01:00
simon lehericey
9d92e43d8d [fix #3315] Migrate service organisme 2019-02-18 16:50:44 +01:00
Mathieu Magnin
dd27167c5d Enforce Timezone rule in Rubocop 2019-02-18 16:19:42 +01:00
Mathieu Magnin
f445d95166 Fix Macedoine 🇲🇰 2019-02-13 13:56:51 +01:00
simon lehericey
bdb529a879 remove unused force_asset_precompile during setup 2019-02-12 11:17:51 +01:00
Frederic Merizen
ba3a88353b [#3343] Remove unused font 2019-01-30 15:06:25 +01:00
Frederic Merizen
f17ab449b9 [Fix #3343] Allow non windows-1252 characters in attestation
by using ttf font
2019-01-30 15:06:25 +01:00
Pierre de La Morinerie
bb1cc1eef8 tasks: delete dossiers without procedures
Fix #3279
2019-01-23 17:19:36 +01:00
simon lehericey
45db2d8e5a [#3268] Rake task to correct bad follows and logs 2019-01-21 14:17:17 +01:00
Pierre de La Morinerie
0b4c807292 tasks: prevent logs from being output to the console during tests 2019-01-08 13:51:35 +01:00
gregoirenovel
0e6db7106c admin → superadmin 2019-01-03 11:03:16 +01:00
gregoirenovel
324b65b7ad Improve the admin tasks 2019-01-03 11:02:57 +01:00
gregoirenovel
0c8b228fbf Enable the Lint/UselessAssignment cop 2019-01-03 10:53:50 +01:00
gregoirenovel
0596d53ac2 Enable the Lint/UnusedBlockArgument cop 2019-01-03 10:53:50 +01:00
gregoirenovel
baf7977786 Enable the Lint/StringConversionInInterpolation cop 2019-01-03 10:53:50 +01:00
gregoirenovel
386fbce776 Enable the Layout/SpaceBeforeBlockBraces cop 2019-01-03 10:53:50 +01:00
gregoirenovel
8b0b8162f0 Enable the Layout/SpaceAfterComma cop 2019-01-03 10:53:50 +01:00
Mathieu Magnin
908b1b71aa Task should not fail if service already exists 2018-12-20 16:57:59 +01:00
Mathieu Magnin
904d8d208b [Fix #3192] Fix data 2018-12-20 15:45:48 +01:00
Frederic Merizen
2a758d0759 [Fix #3196] Convert YAML to JSON 2018-12-19 23:17:55 +01:00
gregoirenovel
fba8d97256 Enable the Stlye/BlockDelimiters cop 2018-12-19 13:56:10 +01:00
gregoirenovel
a8f700b572 Enable the Style/FormatString cop 2018-12-19 13:56:10 +01:00
Pierre de La Morinerie
dfc5b9990d tasks: rename --libellé procédure-- to --libellé démarche-- 2018-12-19 13:37:59 +01:00
Frederic Merizen
832b4a61bc Drop CleverCloud Service for ActiveStorage 2018-12-19 10:36:02 +01:00
Frederic Merizen
97eb72a047 Cleanup: remove champ_pj feature flag 2018-12-18 11:11:23 +01:00
Frederic Merizen
57a136c861 Make champ PJ generally available 2018-12-18 11:11:23 +01:00
Frederic Merizen
c72216aafd [#2180] Batch fetch new PJ modification times
To speed up transfer
2018-12-08 15:58:32 +01:00
Frederic Merizen
270c7568fa [#2180] Avoid fetching old PJ modification times separately
Speeds up transfer
2018-12-08 15:55:40 +01:00
Frederic Merizen
7b18c51483 [#2180] Add separate notification for (slow) PJ listing 2018-12-08 15:38:45 +01:00
Frederic Merizen
35fc41fb9f Really fix #3133 2018-12-07 16:59:25 +01:00
Frederic Merizen
84cfdcf617 [#2180] Fix edge cases for progress report 2018-12-07 16:45:14 +01:00
Frederic Merizen
8c64ab9995 [#2180] Remove dead files before fixing mime types
To avoid trying to fix the mime type of non-existing files
2018-12-07 15:30:10 +01:00
Frederic Merizen
907e87809b [#2180] Iterate over storage keys rather than blobs
To create less confusion on dev
2018-12-07 15:30:10 +01:00
Frederic Merizen
c6c8bea095 [#2180] Progress reporter that doesn't crash 2018-12-07 15:30:10 +01:00
Frederic Merizen
8e0408093b [#3133] Change signature of upload for cellar to match upstream evolution 2018-12-07 15:19:18 +01:00
Frederic Merizen
34bafacd49 [#2180] Transfer missing files from old to new pj storage 2018-12-05 16:27:36 +01:00
Frederic Merizen
9ceb4259b3 [#2180] Remove unused objects in new storage 2018-12-05 16:27:36 +01:00
Frederic Merizen
477af84186 [#2180] Fix MIME types 2018-12-05 16:27:36 +01:00
Frederic Merizen
045579f7ae [#2180] Empty skeleton for pj transfer cleanup task 2018-12-05 16:27:36 +01:00
Mathieu Magnin
55525af060 Add rake task to run after party with mina 2018-12-04 14:43:55 +01:00
Paul Chavard
c1a2506b01 Add stable ids to all types de champ 2018-11-29 11:41:13 +01:00
Paul Chavard
d11cef6b0c Add task to cleanup orphaned dossier_operation_logs 2018-11-28 17:10:29 +01:00
Paul Chavard
1897b2775c Remove old migration task 2018-11-27 16:11:25 +01:00
Pierre de La Morinerie
4e801b188c tasks: remove outdated footers in mail templates
Fix #1863
2018-11-27 15:32:02 +01:00
Paul Chavard
cf98e28178 Fix notifications on dossiers with migrated carto 2018-11-22 11:16:01 +01:00
Paul Chavard
44ca6a2d02 Task to migrate carto to champ carte 2018-11-20 10:53:14 +01:00
simon lehericey
7313ca0675 Rake: enable trusted_device for some gestionnaire 2018-11-13 10:41:45 +01:00
simon lehericey
2613d05a4f An admin has always a gestionnaire role 2018-11-13 10:41:45 +01:00
Pierre de La Morinerie
e59bec51ef procedure: use 90th percentile to estimate the completion delay 2018-11-08 18:29:17 +01:00
Paul Chavard
ebaecd1edd Fix nutriscore rake task 2018-11-08 14:45:09 +01:00
Frederic Merizen
0488c451ba Mass-process dossiers for procedure 8670 2018-11-07 15:04:34 +01:00
gregoirenovel
d0efccbd03 Remove the dev tasks, they’re now in ds-cli 2018-11-05 17:49:39 +01:00
Paul Chavard
3418419771 Remove path from archived procedures 2018-10-31 11:56:51 +01:00
Paul Chavard
78dc582588 Remove ProcedurePath 2018-10-30 12:01:45 +01:00
simon lehericey
9475795143 fix spec 2018-10-26 10:10:20 +00:00
simon lehericey
e684cec516 DateTime.new => Time.zone.local 2018-10-26 10:10:20 +00:00
simon lehericey
4b25d16f5a Time.zone.parse(_, options) => Time.zone.strptime(_, options) 2018-10-26 10:10:20 +00:00
simon lehericey
f620e4aee2 DateTime.parse => Time.zone.parse 2018-10-26 10:10:20 +00:00
simon lehericey
2238e5bd9f Time.now => Time.zone.now 2018-10-26 10:10:20 +00:00
simon lehericey
13ffa61435 DateTime.now => Time.zone.now 2018-10-26 10:10:20 +00:00
gregoirenovel
eb6132b5cb Move the setup task before the deploy task 2018-10-24 16:00:47 +02:00
gregoirenovel
916dd17873 domains_from_env → domains_for_stage 2018-10-24 16:00:07 +02:00
simon lehericey
a1d813aff4 Deploy: use fetch 2018-10-24 12:22:33 +02:00
simon lehericey
e63ba1b9cb Deploy: use domains_from_env for setup 2018-10-24 12:22:33 +02:00
simon lehericey
47697c5881 Deploy: extract domains_from_env function 2018-10-24 12:22:33 +02:00
simon lehericey
d3c74897f1 Deploy: use prod keyword for prod stage 2018-10-24 12:22:33 +02:00
simon lehericey
1433331fb5 Deploy: branch base on BRANCH var 2018-10-24 12:22:33 +02:00
simon lehericey
9ee1119656 Deploy: STAGE_NAME -> STAGE 2018-10-24 12:22:33 +02:00
simon lehericey
07ecb2509b case 2018-10-24 12:22:33 +02:00
Mathieu Magnin
8316ab8e51 When deploying read stage from environment 2018-10-24 12:22:33 +02:00
Mathieu Magnin
bffeeaf954 Configure mina for new infra 2018-10-24 12:22:33 +02:00
Frederic Merizen
bbdb446dfd [#2772] For unmigrated dossiers, make read-only access possible
and notify usager
2018-10-16 10:40:04 +02:00
Frederic Merizen
1e4ccda14c [#2772] Notify users that their dossier was restored 2018-10-16 10:40:04 +02:00
Frederic Merizen
3283cb1ae7 [#2772] Allow per-migrated-dossier callback 2018-10-16 10:40:04 +02:00
Frederic Merizen
bc22c97501 [#2772] Restore deleted dossiers for neph procedure 2018-10-16 10:40:04 +02:00
Frederic Merizen
f236e31c29 [#2772] Restore deleted dossiers for candidats libres procedure 2018-10-16 10:40:04 +02:00
Frederic Merizen
ecfacf8417 [#2772] Avoid touching champ update date 2018-10-16 10:40:04 +02:00
Frederic Merizen
1d0ce21555 [#2772] Migrate pieces justificatives 2018-10-16 10:40:04 +02:00
Frederic Merizen
840b049cdb [#2772] Allow untranslatable dossiers to be skipped 2018-10-16 10:40:04 +02:00
Frederic Merizen
dfe7f2cc45 [#2772] Also migrate private champs 2018-10-16 10:40:04 +02:00
Frederic Merizen
f7fcf46f0d [#2772] Avoid overriding initialize in subclasses 2018-10-16 10:40:04 +02:00
Frederic Merizen
6a3f7438d5 [#2772] Let migrator instantiate mapping from provided class 2018-10-16 10:40:04 +02:00
Frederic Merizen
968ccce7f0 [#2772] Move method to champ class 2018-10-16 10:40:04 +02:00
Frederic Merizen
11bd342897 [#2772] Helper methods can now be private 2018-10-16 10:40:04 +02:00
Frederic Merizen
55dfba68a3 [#2772] Extract method 2018-10-16 10:40:04 +02:00
gregoirenovel
9ba8b2da92 Remove all InviteGestionnaires 2018-10-10 10:29:08 +02:00
Frederic Merizen
88487bda6e Rake task to allow mass transfer of ownership 2018-10-10 05:36:28 +02:00
Frederic Merizen
5915449353 Add diagnostic message 2018-10-10 05:23:51 +02:00
Frederic Merizen
1a644a5159 mail -> email 2018-10-10 05:23:51 +02:00
simon lehericey
e5a1e8c95a Mailjet: i'm loving it 2018-10-09 17:53:14 +02:00
Frederic Merizen
8b9f1b1096 Support task to change a user's email 2018-10-06 14:17:39 +02:00
Frederic Merizen
da2333ca3e Rake task to change siret number 2018-10-06 13:49:01 +02:00
gregoirenovel
826117bcb4 Migrate now obsolete displayed fields, filters and sorts 2018-10-04 13:54:07 +02:00
gregoirenovel
c91a1cf474 Enable Style/SymbolArray 2018-10-03 12:15:48 +02:00
gregoirenovel
d9d4f6fe20 Enable Style/SymbolProc 2018-10-03 12:15:48 +02:00
gregoirenovel
6eeba14885 Enable Style/WordArray 2018-10-03 12:03:21 +02:00
gregoirenovel
1f4ef0074f Enable Style/ZeroLengthPredicate 2018-10-03 12:00:17 +02:00
simon lehericey
29e40fa061 [fix #2696] Rake: add task to fill empty instruction_at 2018-09-27 15:02:38 +02:00
simon lehericey
84abfa209c Api Token: encrypt current tokens 2018-09-27 10:14:32 +02:00
Frederic Merizen
3681cead81 Fix cosmétique 2018-09-25 15:00:06 +02:00
Frederic Merizen
9beaa293cd [#1421] Use delegation rather than STI for TypeDeChamp 2018-09-25 08:26:56 +02:00
Frederic Merizen
a48ffef9dc [#2613] Clean up procedure presentation with entreprise table 2018-09-24 20:19:26 +02:00
Frederic Merizen
7d382837d9 [Fix #2622] Change filters to proper JSONB 2018-09-24 19:39:01 +02:00
Frederic Merizen
1419e9b73f [#2622] Change sort to proper JSONB 2018-09-24 19:39:01 +02:00
Frederic Merizen
68608307ad [#2622] Change displayed_fields to proper JSONB 2018-09-24 19:39:01 +02:00
gregoirenovel
8fa3602bfc Remove a warning in the console task
Passing the environment's name as a regular
argument is deprecated and will be removed in the
next Rails version. Please, use the -e option
instead.
2018-09-23 22:29:55 +02:00
Frederic Merizen
42ca92466c [#1946] Send expiring dossier summary every month 2018-09-20 17:44:41 +02:00
gregoirenovel
2edc882a29 [Fix #1747] Add a new editorconfig lint task 2018-09-20 16:41:05 +02:00
gregoirenovel
0c9628c180 Fix some files according the the .editorconfig rules 2018-09-20 16:23:09 +02:00
gregoirenovel
516860c92e deploy_ha → deploy 2018-09-20 11:20:57 +02:00
gregoirenovel
e2b09df049 Extract the deploy_ha task in a dedicated file 2018-09-20 11:20:23 +02:00
gregoirenovel
fa2afe6820 Extract the lint task in a dedicated file 2018-09-20 11:19:55 +02:00
simon lehericey
46c29465a2 Import DB: fix location 2018-09-19 14:19:31 +02:00
Paul Chavard
7591878b89 Fix add path to procedures task 2018-09-18 18:26:54 +02:00
Paul Chavard
1cf65c1b89 Add task to fill procedures table path column 2018-09-18 13:21:18 +02:00
gregoirenovel
b5368ea72b Fix the 2018_09_12_fix_templates task 2018-09-18 10:41:55 +02:00
gregoirenovel
1b6e49b49e [Fix #2544] Add a task to fix now invalid templates 2018-09-17 17:27:40 +02:00
simon lehericey
f923881cef Support: fix task 2018-09-12 17:15:22 +02:00
simon lehericey
9612b76b85 Support: change ftap procedure 2018-09-12 15:22:26 +02:00
gregoirenovel
00ecae5f93 Procédure → Démarche 2018-09-05 15:46:24 +02:00
Frederic Merizen
580c6145d0 Migrate nutriscore dossiers from old procedure to new procedure 2018-08-29 19:40:02 +02:00
gregoirenovel
e96b6c4498 Remove now useless tasks 2018-08-28 09:56:43 +02:00
gregoirenovel
e9a262947f Migrate marks to ratings on feedbacks 2018-08-27 17:12:01 +02:00
Mathieu Magnin
db8e750f1a [ENV] Configure Api Entreprise token 2018-08-23 15:55:32 +02:00
Frederic Merizen
420f724796 [#2179] Rake task to retroactively generated denormalized search terms for Dossiers 2018-07-27 11:11:52 +02:00
Frederic Merizen
a429a38a38 Support task to delete a user account 2018-06-27 21:00:29 +02:00
Paul Chavard
b6255ba470 Fix cerfa to pj 2018-06-27 11:04:41 +02:00
Frederic Merizen
ec01194068 Rake task to remove champs with dossier_id = 0 (created by old preview) 2018-06-26 19:02:34 +02:00
Pierre de La Morinerie
956c3fe36c Replace hardcoded phone numbers by a CONTACT_PHONE constant 2018-06-25 11:51:15 +02:00
Frederic Merizen
14ef163a13 Support script to change procedure ownership 2018-06-19 12:14:17 +02:00
Mathieu Magnin
ae6e3e345e Task to unhide dossiers with instruction commencee 2018-06-19 10:05:00 +02:00
Pierre de La Morinerie
790704ef58 tasks: silence output of tasks during tests
Currently, when running specs, the output of rake tasks is spamming
the tests results.

This PR configures Rake so that it runs in quiet mode during specs. This
disables the internal messages of rake during tests.

However our own `puts` also need to be conditionned to the verbosity of
rake. Using a simple `rake_puts` helper allows the info messages to be
displayed when running the rake task manually, but not during tests.

Before:

```
$ bin/rspec spec/lib/rake
Randomized with seed 6544
1 Mails::ClosedMail to clean
cleaning Mails::ClosedMail #1
1 Mails::InitiatedMail to clean
cleaning Mails::InitiatedMail #1
1 Mails::ReceivedMail to clean
cleaning Mails::ReceivedMail #1
1 Mails::RefusedMail to clean
cleaning Mails::RefusedMail #1
1 Mails::WithoutContinuationMail to clean
cleaning Mails::WithoutContinuationMail #1
.....Champ 0/1
.Champ 0/1
.
```

After:

```
$ bin/rspec spec/lib/rake

Randomized with seed 6544
.......
```
2018-06-13 11:05:15 +02:00
Mathieu Magnin
aad109e376 Add task to scan old champs pj 2018-06-12 15:12:40 +02:00
Frederic Merizen
7c6b60bfcb Retroactively pre(?)activate users for gestionnaires and administrateurs 2018-06-08 10:49:31 +02:00
gregoirenovel
94b72eeb46 Fix a bug 2018-06-07 18:10:05 +02:00
gregoirenovel
8bd322f7b0 Fix a filename 2018-06-07 17:28:56 +02:00
gregoirenovel
d3e96b77dd Fix a bug in a task 2018-06-07 17:26:15 +02:00
gregoirenovel
96a4ebd860 Improve a task 2018-06-07 17:25:39 +02:00
gregoirenovel
4db432a4ca Remove Mailers module for app mailers 2018-06-07 17:23:12 +02:00
gregoirenovel
88aa325784 Fix a typo 2018-06-07 16:07:15 +02:00
gregoirenovel
161ad8151b Make the task name match the filename 2018-06-07 16:07:15 +02:00
gregoirenovel
478598f74c Add a task to destroy, regenerate, and send new attestations
For dossiers that were accepté, went back to
en instruction, and then were accepté again
2018-06-06 18:25:11 +02:00
gregoirenovel
bb3dcbbf22 Resend attestation for a procedure whose attestation template changed 2018-06-05 17:37:08 +02:00
Frederic Merizen
bfa601d832 [#1946] Temporarily allow legacy procedures not to have a retention time 2018-06-01 16:46:39 +02:00
simon lehericey
b998425005 Procedure: add rake task to set juridique_required to false for legacy procedures 2018-06-01 11:12:53 +02:00
gregoirenovel
23931a7591 Remove the contact_email locale 2018-06-01 00:00:11 +02:00
gregoirenovel
185f08f63e Add constants for email addresses 2018-06-01 00:00:11 +02:00
Mathieu Magnin
2f5e02c90e Do not download backup if exists 2018-05-31 13:59:16 +02:00
Frederic Merizen
44af4e95f1 [Fix #2002] Create missing accuse de reception messages 2018-05-31 12:03:50 +02:00
gregoirenovel
dc045bdefb [Fix #1808] Use &. where possible 2018-05-31 11:49:25 +02:00
Frederic Merizen
3fd0681a10 Enable compression for DB dump download 2018-05-30 15:40:35 +02:00
Paul Chavard
1e3bb352cd Convert CERFA to PJ 2018-05-29 15:00:24 +02:00
simon lehericey
3cfffc2615 [fix #1922] add one annotation to a procedure 2018-05-18 11:48:19 +02:00
Paul Chavard
2b8ee92074 Add aasm_state to procedures 2018-05-17 14:46:48 +02:00
Paul Chavard
32787d7431 Task to add test_started_at to all procedures 2018-05-15 11:00:20 +02:00
Frederic Merizen
03ee18483d Implement new download_chunk method 2018-04-24 16:07:19 +02:00
Frederic Merizen
b0037d50c8 Allow downloads with a HTTP range header 2018-04-24 16:07:19 +02:00
Frederic Merizen
98bb48b952 Create User accounts for existing Admin accounts that don’t have one 2018-04-12 16:40:24 +02:00
Frederic Merizen
4cc517ccba Do not use deliver_late
as the delayed job wouldn’t play nicely with the Mailer in lib/ in production
2018-04-11 09:33:06 +02:00
Frederic Merizen
7b80936991 [#1563] Notify administrators when they need to edit the accusé d’acceptation 2018-04-06 10:24:38 +02:00
Paul Chavard
ea43784376 Task to enque jobs to fetch missing etablissements 2018-04-05 14:52:54 +02:00
Paul Chavard
51972ba728 Entreprise/Association moulinettes™ 2018-04-04 11:48:06 +02:00
simon lehericey
6370365fe4 Task: parse individual_date 2018-04-03 16:23:15 +02:00
Mathieu Magnin
20fd7e52e6 [Fix #1729] Clean mail templates with <code> tags 2018-03-29 17:23:30 +02:00
Frederic Merizen
3f62bc3407 [Fix #1690] Strip html markup from procedure descriptions 2018-03-29 11:13:34 +02:00
gregoirenovel
ecc0f88417 Enable the cop that checks for brackets in method definitions 2018-03-20 18:03:39 +01:00
Frederic Merizen
392015b04a [#1545] secure task for production 2018-03-09 19:02:47 +01:00
Frederic Merizen
dd10261009 [Fix #1545] Add explanatory message 2018-03-09 18:38:25 +01:00
Frederic Merizen
1b889a4100 [#1545] Also notify dossiers that are not en construction
This forces us to have more precise bug and fix times
2018-03-09 18:38:25 +01:00
Frederic Merizen
b39cd48d6f [Fix #1545] Rake task to send accusés de réception that were missed
(because of #1510)
2018-03-09 18:38:25 +01:00
Frederic Merizen
664ce08dc8 [Fix #1543] simplify request and provide progress feedback 2018-03-09 15:46:02 +01:00
gregoirenovel
0a9f442260 Enable some Rails cops 2018-03-06 17:18:44 +01:00
Frederic Merizen
3894fc48f6 [Fix #1543] Strip html tags from textarea champs 2018-03-06 16:51:12 +01:00
Mathieu Magnin
9910e19c20 [Fix #1479] Task to clean invalid emails 2018-03-05 09:45:42 +01:00
Frederic Merizen
43dfbf1986 Separate ActiveStorage facade from Cellar machinery 2018-02-28 14:39:27 +01:00
Frederic Merizen
6907650bcb Use bulk delete in CellarService when possible 2018-02-28 14:39:27 +01:00
Frederic Merizen
27d76ea226 Add upload support to CellarService 2018-02-28 14:39:27 +01:00
Frederic Merizen
009c4f9149 Add exist? support to CellarService 2018-02-28 14:39:27 +01:00
Frederic Merizen
7df20a35cd Only stream success responses from Cellar 2018-02-28 14:39:27 +01:00
Frederic Merizen
9d34262493 Remove Aws S3 specific parameters
Cellar only implements the v1 interface and ignores those

The parameter is required by Amazon S3 but ignored by Riak
2018-02-28 14:39:27 +01:00
Paul Chavard
3fc8476947 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
Paul Chavard
d9d31214fe Moulinette™ for unprocessed accepted dossiers 2018-02-21 16:38:25 +01:00
Paul Chavard
5470141ca4 Moulinette™ STI Champ et TypeDeChamp 2018-02-20 16:13:40 +01:00
gregoirenovel
ae0a314864 Fix a typo 2018-02-20 15:25:01 +01:00
gregoirenovel
918a34af39 Remove duplicated assign_tos 2018-02-20 14:58:16 +01:00
Frederic Merizen
07134684d4 Prefix_delete for cellar 2018-02-15 10:56:47 +01:00
Frederic Merizen
e2c583480d Implement streaming GET for Cellar 2018-02-15 10:56:47 +01:00
Frederic Merizen
0e74c55d48 Implement GET for Cellar 2018-02-15 10:56:40 +01:00
Frederic Merizen
76c72bf4e0 Ability to delete files from Cellar 2018-02-15 10:54:45 +01:00
Frederic Merizen
741100d4f5 Active storage and Clever Cloud Cellar integration 2018-02-15 10:43:56 +01:00
Paul Chavard
a00309c7f4 Cleanup rake task for public/private champ outage 2018-02-14 19:03:05 +01:00
Mathieu Magnin
830a9ed887 [Fix #1309] Task to clean datetime champs in db 2018-01-30 13:49:16 +01:00
gregoirenovel
02ade68b38 Enable the Layout/SpaceInsideBrackets cop 2018-01-18 10:53:34 +01:00
gregoirenovel
f605cd35ac Enable the Layout/SpaceAfterColon cop 2018-01-18 10:53:34 +01:00
gregoirenovel
48fd3605a4 Bump rubocop 2018-01-18 10:47:11 +01:00
Paul Chavard
8688d62a24 Add active attribute to administrateur model 2018-01-16 10:49:07 +01:00
gregoirenovel
b77837bfd1 Enable the Layout/MultilineMethodCallBraceLayout cop 2018-01-15 22:33:13 +01:00
gregoirenovel
99a49a8144 Enable the Layout/IndentHeredoc cop 2018-01-15 22:33:13 +01:00
gregoirenovel
5125cf8396 Enable the Layout/FirstParameterIndentation cop 2018-01-15 22:14:39 +01:00
gregoirenovel
bbaebe0602 !foo.nil? -> foo.present? 2018-01-12 11:32:43 +01:00
gregoirenovel
7c34807f46 Don’t use unless 2018-01-12 11:32:43 +01:00
Frederic Merizen
6139c614b0 [#1110] Migrate legacy tags to new tags in mail templates 2018-01-05 17:42:25 +01:00
Mathieu Magnin
4c8c26f250 Improve super admin management 2018-01-03 12:17:44 +01:00
Mathieu Magnin
39dc5718c2 [Fix #1096] task to create new Administrations 2017-12-22 11:10:25 +01:00
Mathieu Magnin
5c9d82d46f [Fix #1096] task to delete old accounts 2017-12-22 11:10:25 +01:00
LeSim
ee12644e56 Rake: french translation dossier : add revert task 2017-12-15 12:10:54 +01:00
Simon Lehericey
c83552f423 [fix #504] Dossier: without_continuation -> sans_suite 2017-12-15 12:10:54 +01:00
Simon Lehericey
2be9b8d2ba [fix #504] Dossier: refused -> refuse 2017-12-15 12:10:54 +01:00
Simon Lehericey
a13256f73d [fix #504] Dossier: closed -> accepte 2017-12-15 12:10:54 +01:00
LeSim
3dda27b281 [fix #504] Dossier: received -> en_instruction 2017-12-15 12:10:54 +01:00
Simon Lehericey
72bae2c374 [fix #504] Dossier: draft -> brouillon 2017-12-15 11:52:09 +01:00
LeSim
56545933a9 [fix #504] Dossier: initiated -> en_construction
The change must not impact the api
2017-12-15 11:52:09 +01:00
Mathieu Magnin
d8bbb8cb08 Add timestamps on Entreprises 2017-12-08 09:15:45 +01:00
Mathieu Magnin
7481e24b88 [Fix #1023] Fix task to sanitize filenames 2017-12-01 14:13:35 +01:00
Mathieu Magnin
e4d9b7f960 Fix missing body when migrating commentaire 2017-11-28 16:53:59 +01:00
Mathieu Magnin
30d9f4721b If pj is missing do not crash 2017-11-28 16:06:19 +01:00
Mathieu Magnin
bdadf12581 Rake task : Migrate old piece justificative in commentaire to file attribute 2017-11-28 15:07:09 +01:00
gregoirenovel
379e7b74d6 Enable all the rubicop perf cops 2017-11-21 10:31:16 +01:00
Simon Lehericey
bb147bcb1f Notification: rake task to init notifications 2017-11-10 16:29:44 +01:00
Mathieu Magnin
676a756e1d Ensure task is run on dev env 2017-10-31 09:56:18 +01:00
Mathieu Magnin
95a9c61457 Rebuild test db after db:import_dev task 2017-10-31 09:56:18 +01:00
Simon Lehericey
6dfab10dfa Rake: task to regenerate the attestation 2017-10-19 15:40:52 +02:00
Simon Lehericey
93644924fa Tasks: add task to connect to remote console on prod 2017-10-17 16:04:52 +02:00