Commit graph

9 commits

Author SHA1 Message Date
gregoirenovel
cf573a1ec6 Use Procedure#archive instead of duplicating code 2017-07-03 10:18:48 +02:00
gregoirenovel
67d0fb5ddc Further refactor of AutoArchiveProcedureWorker
Call received! so that validation and save
callbacks are called.

Previously, we wouldn’t have update the
received_at date
2017-06-08 15:06:01 +02:00
gregoirenovel
cc95216672 Refactor AutoArchiveProcedureWorker#perform
If the loop failed, we wouldn’t update the
archived attribute for procedures for which
the folders were archived.

That would have caused to re-run the task for
procedures for which the task had already been
run.
2017-06-08 15:06:01 +02:00
gregoirenovel
68e734fbb5 Remove a blank line 2017-06-08 15:06:00 +02:00
gregoirenovel
f8673894e2 Stop erasing data when auto-archiving procedures 2017-06-08 15:06:00 +02:00
gregoirenovel
ab1c19c09b Rename some Dossier scopes 2017-06-01 10:58:08 +02:00
Simon Lehericey
b48549d765 WeeklyOverviewWorker: add feature flip on worker
The main objective is to avoid batch mail sent in staging
2017-05-23 17:12:18 +02:00
Simon Lehericey
c4c2dc78a2 WeeklyOverviewWorker: add worker to send the week overview 2017-05-23 17:12:18 +02:00
Mathieu Magnin
24d17dc0f3 Sidekiq worker to archive procedures automatically + tests 2017-03-15 12:40:59 +01:00