Christophe Robillard
a923215139
fix fix champ etablissement
2020-05-27 18:46:04 +02:00
Christophe Robillard
35458761da
fix champ etablissement
2020-05-27 18:04:56 +02:00
Pierre de La Morinerie
77ab7d1462
tasks: add a rollback task
2020-05-18 12:59:12 +02:00
Paul Chavard
f0148184ca
Remove legacy carto code
2020-05-13 12:17:04 +02:00
Paul Chavard
0d628bb96b
Task to split GeoArea with selection utilisateur in multiple polygons
2020-04-15 18:07:09 +02:00
Paul Chavard
afc76f3066
Only run process expired dossiers task on production servers
2020-04-09 11:19:58 +02:00
Paul Chavard
d810fdf474
Process expired dossiers en construction
2020-04-09 11:19:58 +02:00
Paul Chavard
6dc1f3e2c4
Use human readable expressions instead of cron gibberish
...
https://github.com/floraison/fugit#fugitnat
2020-04-07 12:44:58 +02:00
Paul Chavard
60cb9bcf09
Remove brouillons deleted dossiers
2020-03-31 16:54:33 +02:00
Paul Chavard
5005c54891
Add base cron job
2020-03-31 12:25:46 +02:00
maatinito
d56635ebb1
removed obsolete after_party tasks
...
They no longer work on fresh database
2020-03-18 12:46:35 +01:00
kara Diaby
5dc5230791
Step1 : add new column to Assign_tos and make sure that the data is saved on form submit
2020-02-20 16:14:56 +01:00
Paul Chavard
1cd913913a
Fix old tasks
2020-02-13 12:32:18 +01:00
Paul Chavard
a3cf7fce3a
Remove old (< 2019) migration tasks
2020-02-13 11:42:11 +01:00
Pierre de La Morinerie
cbaa584bd0
lint: improve Rubocop detection
...
Instead on relying on the environment, we try to load the Rubocop cop
only if Rubocop is currently loaded.
2020-02-03 11:09:11 +01:00
clemkeirua
eb20dd9153
only load unscoped custom rule in development
2020-01-30 15:23:21 +01:00
Pierre de La Morinerie
cf101d64d8
lint: add a Rubocop rule to forbid the use of unscoped
...
`unscoped` often has an effect broader than intended. For instance:
```
user.dossiers.unscoped.destroy_all
```
will not destroy all the user's dossier, including the hidden ones,
but **all the dossiers of all users**.
Instead, narrower unscoping should be used:
```
user.dossiers.unscope(where: :hidden).destroy_all
```
(Or even better, use the new `Dossier.with_hidden` scope).
2020-01-28 17:32:38 +01:00
Pierre de La Morinerie
96932faa3f
models: add a Dossier#with_hidden scope, and remove unscoped
usages
2020-01-28 17:32:38 +01:00
Pierre de La Morinerie
1448d5b098
models: add a Procedure#with_hidden scope, and remove unscoped
usages
...
This avoids the broad use of `unscoped` to remove the `hidden_at`
clause.
2020-01-28 17:32:38 +01:00
Christophe Robillard
0f881f942b
raise if trying to del a user who can't be deleted
2020-01-13 10:06:43 +01:00
Christophe Robillard
c72ce977f7
refactor delete_user_account task
2020-01-13 10:06:43 +01:00
simon lehericey
ce7ab89934
Add purge stale export job
2019-12-18 13:13:15 +01:00
simon lehericey
508ba8f116
Add seek_and_destroy_expired_dossier
2019-12-03 17:18:53 +01:00
Paul Chavard
ee7df3d5cf
Migrate procedures archivee to close
2019-11-28 16:07:14 +01:00
Paul Chavard
fe84e8e0f7
Remove carrierwave
2019-11-12 15:26:18 +01:00
simon lehericey
3c5eaed2f3
Add web3 and web4
2019-10-16 10:58:54 +02:00
Pierre de La Morinerie
669f21d1d8
tasks: replace puts
by rake_puts
...
It avoids tasks logs to clutter the tests output.
2019-10-08 16:54:57 +02:00
simon lehericey
725798da6a
[ fix #4361 ] Update user table sign_in
2019-10-08 10:09:16 +02:00
Paul Chavard
d2fdaacb5d
Add Api::V2::Schema
2019-09-24 10:47:21 +02:00
Paul Chavard
8fcf1353f3
Remove duplicated attachments
2019-09-17 18:12:53 +02:00
Paul Chavard
3b8d3b7967
Add Style/CollectionMethods to rubocop
2019-09-12 14:48:18 +02:00
Paul Chavard
65e227c44b
Migrate to flipper
2019-09-10 16:10:14 +02:00
Paul Chavard
e975e2a0aa
Add an active_storage attachmens rename task
2019-09-10 10:49:12 +02:00
Paul Chavard
7ffb98e616
Remove carrierwave uploaders
2019-09-10 10:49:12 +02:00
simon lehericey
875313e01e
add defaut groupe instructeur to hidden procedure
2019-09-09 13:41:08 +02:00
clemkeirua
47255175a2
fix rake task for linking dossier and groupe_instructeur
2019-09-09 09:55:44 +02:00
simon lehericey
3ead6bde9d
AfterParty: link dossier and groupe_instructeur
2019-09-03 06:51:38 +02:00
simon lehericey
a0555bc820
Remove obsolete tasks
2019-09-03 06:47:02 +02:00
simon lehericey
3cc8f0c792
Link Dossier and GroupeInstructeur
2019-09-03 06:47:02 +02:00
simon lehericey
97884c4349
Link AssignTo et GroupeInstructeur
2019-09-02 11:41:12 +02:00
simon lehericey
115d91387c
A procedure has a default groupe instructeur
2019-09-02 11:41:12 +02:00
Paul Chavard
a19b10b118
Migrate attestation files to active_storage
2019-08-27 17:42:52 +02:00
Paul Chavard
d02e0fc556
Fix and test migrate_procedure_logo task
2019-08-22 11:28:03 +02:00
Paul Chavard
cc35a04e26
Migrate procedure logo to active_storage
2019-08-21 11:15:00 +02:00
simon lehericey
bf3dd319c1
Task: catch various exception
2019-08-20 14:37:35 +02:00
Nicolas Bouilleaud
e27fbf1a95
Remove nonworking after_party rake tasks
...
These tasks mention symbols that have been renamed or removed. (Gestionnaire, Procedure.administrateur (single), or VirusScan.)
They won’t be run again.
I guess some (most) of the other after_party and rake tasks could be removed too; it’s just that those prevent `rake after_party:run` to execute on a clean install.
2019-08-20 14:01:38 +02:00
simon lehericey
77c11d8b79
fix_procedure_presentation
2019-08-20 11:28:18 +02:00
simon lehericey
65d862b59d
Populate the column
2019-08-14 15:06:15 +02:00
Paul Chavard
0969b1f85f
Enable email_login_token for all gestionnaires
2019-08-14 12:53:51 +01:00
simon lehericey
766d1ce51c
Populate the column
2019-08-13 15:15:16 +02:00