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
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
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
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
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