Paul Chavard
ce0c50fbec
remove eclint
...
eclint is dead https://github.com/jedmao/eclint/issues/226#issuecomment-689193653
2020-12-10 13:11:02 +01:00
simon lehericey
3894bfd3a6
fix cron namespace
2020-12-08 15:21:35 +01:00
Christophe Robillard
2ee5b1f6cb
fix superadmin rake
2020-11-05 18:56:03 +01:00
Christophe Robillard
3fdb045356
create a superadmin account
...
rake task create a superadmin account, and send
reset password instructions
2020-11-05 16:03:55 +01:00
simon lehericey
0be246c86b
add after_party task to setup stats
2020-10-06 16:12:01 +02:00
Paul Chavard
f71d2a608e
Fix MultiLineString geometries
2020-09-22 09:12:55 +02:00
Paul Chavard
5ad31518dc
improuve fix geo areas geometry task
2020-08-13 16:00:17 +01:00
Paul Chavard
970aa627d2
Fix geo areas with GeometryCollection or MultiPolygon
2020-08-13 12:50:35 +01:00
simon lehericey
15d967439e
Remove host references from public sources
2020-08-12 15:10:08 +00:00
Christophe Robillard
f2dcb61521
transform job in task for set dossiers_last_updated_at
2020-08-12 16:10:15 +02:00
Pierre de La Morinerie
e6d8581b06
app: add annotate
...
Annotations will be generated only for models, and sorted (to avoid differences
depending on the order in which migrations are ran).
The annotations will be automatically updated every time `rails db:migrate`
is run on a development environment.
2020-08-12 11:45:53 +02:00
Paul Chavard
6709b9ed20
Fix cloned revisions task
2020-07-28 17:10:12 +02:00
clemkeirua
602d91f232
fix haml linter declaration
...
This is necessary in order to boot delayed_job -_-
Without this, it attempts to inherit a missing class
2020-07-28 09:42:30 +02:00
clemkeirua
52548d7646
ajout du nom d'application dans les mailers
2020-07-23 16:17:52 +02:00
clemkeirua
03864f60cf
added a custom rubocop linter in order to avoid hardcoding application name
2020-07-23 16:17:15 +02:00
clemkeirua
4cfe41ce25
added a custom haml linter in order to avoid hardcoding application name
2020-07-23 16:16:36 +02:00
Paul Chavard
bc09b61684
Add migration service and task
2020-07-21 19:35:30 +02:00
clemkeirua
96e82c75d6
use more idiomatic update
2020-07-15 09:00:12 +00:00
clemkeirua
c93d17bcaa
add rake task to update typedechamp
2020-07-15 09:00:12 +00:00
Pierre de La Morinerie
c41afc425e
tasks: remove old after_party tasks
...
Fixes a task that since became invalid:
> NameError: uninitialized constant SeekAndDestroyExpiredDossiersJob
> /lib/tasks/deployment/20191203142402_enable_seek_and_destroy_job
2020-07-09 18:18:09 +02:00
Christophe Robillard
a072d35211
use traitement model
...
when a dossier is terminated (accepte, refuse or classe_sans_suite),
we store now `processed_at` and `motivation` in a traitement instance
2020-07-08 18:15:15 +02:00
Paul Chavard
38718cd5b4
Add DropDownList migration task
2020-06-25 13:14:17 +02:00
Judith
235a406295
Spectral removed and replaced by Marianne-thin
2020-06-24 13:11:04 +00:00
Judith
1b767b8250
Spectral Italic (Regular) added
2020-06-24 13:11:04 +00:00
Judith
6390cb1300
Marianne fonts -regular, -bold and -thin added
2020-06-24 13:11:04 +00:00
Pierre de La Morinerie
b05798b305
mina: fix rollback
...
Attempt to fix some requests failing in production during a rollback,
probably due to an incorrectly restarted server.
2020-06-23 15:09:08 +02:00
Paul Chavard
c4896b45ad
Prepare to remove dossier procedure_id
2020-06-11 16:13:44 +02:00
Paul Chavard
cbe7249b67
Fix remaining etablissements with shared dossier
2020-05-28 16:54:58 +02:00
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
Pierre de La Morinerie
6459e9cf37
tasks: fix the commentaires migration task to work with hidden dossiers
...
By default `commentaire.dossier` doesn't return the dossier if it is
hidden.
2019-08-01 15:43:09 +02:00
Paul Chavard
586141a596
Add selection_utilisateur geo_area to all champs carte with value
2019-08-01 11:38:09 +02:00
Pierre de La Morinerie
e975fe4ade
tasks: remove task to migrate old pieces justificatives
2019-07-30 16:11:17 +02:00
Pierre de La Morinerie
31ebe41025
tasks: remove dossier procedure migrator
...
It was used only once, and contains references to the old pieces
justificatives that we are going to remove.
2019-07-30 16:11:17 +02:00
Nicolas Bouilleaud
b066ccbc89
Make sure Procedure.path is not null in our data
2019-07-29 13:53:33 +02:00
Pierre de La Morinerie
a8354bd103
dossiers: unify deletion of dossiers between manager and user
...
The code paths for deleting a dossier were different, depending on
whether the dossier was deleted by the user, or from the Manager.
This commit unifies the two code paths into one.
This has the effect of:
- An operation log is now recorded when an user deletes its own dossier;
- Gestionnaires are now notified even when the dossier is deleted from
the Manager;
- The `support:delete_user_account` task now requires the email address
of the author.
2019-07-16 16:22:20 +02:00
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