gregoirenovel
51f57d983e
Use ActiveJob
2017-10-05 15:42:48 +02:00
Mathieu Magnin
fbad15bc84
Change AutoArchiveProcedureWorker for delayed_job
2017-09-27 16:47:32 +02:00
gregoirenovel
fc2540649f
Add the publiees scope on Procedure
2017-07-13 14:46:07 +02:00
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
Mathieu Magnin
24d17dc0f3
Sidekiq worker to archive procedures automatically + tests
2017-03-15 12:40:59 +01:00