Commit graph

929 commits

Author SHA1 Message Date
Simon Lehericey
62f1b9c712 Rubocop: enable indentation width rule 2017-08-28 12:20:58 +02:00
Mathieu Magnin
dd1fea78ac [Fix #658] when dossier linked to avis is hidden, do not crash application 2017-08-28 10:11:50 +02:00
Mathieu Magnin
dd581082ca [Fix #395] Export user email in API 2017-08-25 12:01:53 +02:00
Mathieu Magnin
931e547afa [Fix #395] Export user email in csv 2017-08-25 12:01:52 +02:00
gregoirenovel
af91751e1e Refactor a test to avoid logging a Sentry error message 2017-08-21 16:34:52 +02:00
gregoirenovel
2908a81a1b Remove a warning
We used to have `warning: removing `initialize'
may cause serious problems` when running this test
2017-08-21 15:23:01 +02:00
Simon Lehericey
d40eef284d Dossier: fixup n+1 champ query 2017-08-03 13:02:13 +02:00
Simon Lehericey
1363999621 Dossier: fixup n+1 private champ query 2017-08-03 13:01:55 +02:00
Mathieu Magnin
03fde0a502 [FIX #589] Force birthdate format when saving 2017-08-01 16:47:43 +02:00
Mathieu Magnin
dae700788f Fix test that fail when is run on the 1st day of the month following a 31 days month 2017-08-01 16:42:39 +02:00
Simon Lehericey
7016bdc49a Avis: move assign_gestionnaire logic to avis model 2017-07-21 11:22:16 +02:00
Simon Lehericey
fe1b97b738 Avis: move notify_gestionnaire to private method 2017-07-21 11:19:18 +02:00
Mathieu Magnin
ed11ee4fb4 Fix SQL injections 2017-07-20 18:22:14 +02:00
Mathieu Magnin
1d0734dda2 Admin should be owner of procedure to hide it 2017-07-20 16:40:11 +02:00
Mathieu Magnin
e468612d95 Admin should be owner of procedure to destroy it 2017-07-20 14:30:36 +02:00
Mathieu Magnin
b0c0477622 [Fix #315] Order champs by procedure order in export 2017-07-19 16:31:30 +02:00
gregoirenovel
9666ed7d5d Remove useless tests 2017-07-19 13:32:59 +02:00
Simon Lehericey
3a17c86a74 Follow: follow must be uniq 2017-07-18 15:12:10 +02:00
gregoirenovel
6f2c63c094 Remove default values for some stat methods’ arguments 2017-07-17 16:00:16 +02:00
gregoirenovel
32e0fa9f69 Add Procedure#publiee_ou_archivee? 2017-07-13 17:01:39 +02:00
gregoirenovel
36bee67085 Add Procedure#brouillon? 2017-07-13 17:01:38 +02:00
gregoirenovel
25800305ad cefixup publiee 2017-07-13 17:01:33 +02:00
gregoirenovel
9a7d5d1833 Add Procedure#publiee? 2017-07-13 15:44:18 +02:00
gregoirenovel
cfec05506a Rename Procedure#archived? -> #archivee? 2017-07-13 15:32:13 +02:00
gregoirenovel
fc2540649f Add the publiees scope on Procedure 2017-07-13 14:46:07 +02:00
benjaminhenkel
0a060dbb53 Wording spelling mistake 2017-07-13 11:02:30 +02:00
gregoirenovel
bb10e13e2f [Ref #145] Don't use Procedure.archived anymore 2017-07-11 15:03:35 +02:00
gregoirenovel
f55b7914cf [Ref #144] Don't use Procedure.published anymore 2017-07-11 14:51:43 +02:00
Mathieu Magnin
c3fa1e01b9 [Fix #577] Restrict comment creation to Users/Gestionnaires allowed on dossier 2017-07-11 11:01:06 +02:00
Mathieu Magnin
065719ea06 [Fix #576] When user or gestionnaire has no access to dossier, he cannot create an invitation 2017-07-11 10:43:33 +02:00
Simon Lehericey
9d48249660 Attestation: uninterlaced png file to be compatible with Prawn 2017-07-10 10:52:27 +02:00
Mathieu Magnin
aa929bb5b2 [Fix #554] If procedure is hidden, then don't crash 2017-07-06 14:40:06 +02:00
Mathieu Magnin
e51e5afe55 Fix tests that often fail on circle ci when comparing datetimes 2017-07-04 17:17:14 +02:00
Mathieu Magnin
ce171208da Fix redirect loop for gestionnaire if hidden procedure is saved in procedure_filter 2017-07-04 14:34:26 +02:00
Mathieu Magnin
be3304f71e Add a scope to Dossier to check if procedure is not hidden 2017-07-04 14:34:16 +02:00
Mathieu Magnin
760efcdad3 Add hidden_at on procedure 2017-07-04 14:33:40 +02:00
Simon Lehericey
12c12953d6 [FIX #433] Add Raven Metadata on the current user/gestionnaire/admin ... 2017-07-04 14:18:46 +02:00
Simon Lehericey
48e881f9ec [FIX #491] Attestation: allow administrateur to change attestation template on a published procedure 2017-07-04 13:59:54 +02:00
gregoirenovel
84751cdedf [Fix #528] Fix a spelling mistake 2017-07-04 12:18:13 +02:00
Simon Lehericey
b1d96f4a94 [FIX #492] switch to new attestation download system 2017-07-03 14:09:14 +02:00
Simon Lehericey
4e6a8c5939 New Routes: add new_gestionnaire/dossier_controller attestation 2017-07-03 14:09:14 +02:00
Simon Lehericey
94f8fb748f New Routes: add new_gestionnaire/procedures_controller 2017-07-03 14:09:14 +02:00
Simon Lehericey
3eec07ac08 New Routes: add new_gestionnaire/gestionnaire_controller 2017-07-03 14:09:14 +02:00
Simon Lehericey
1e661fa686 New Routes: add new_user/dossier_controller attestation 2017-07-03 14:09:14 +02:00
Simon Lehericey
15b16f36b7 New Routes: add new_user/dossier_controller 2017-07-03 14:09:14 +02:00
Simon Lehericey
081ed90968 New Routes: add new_user/user_controller 2017-07-03 14:09:13 +02:00
gregoirenovel
6b90e0ccfa [Ref #145] Record archived_at when archiving a procedure 2017-07-03 10:18:49 +02:00
gregoirenovel
0ec3855f8d Add a missing test 2017-07-03 10:18:48 +02:00
gregoirenovel
28f2ec1d86 Reorder some tests 2017-07-03 10:18:48 +02:00
gregoirenovel
53b94e0017 Remove tests that test nothing 2017-07-03 10:18:48 +02:00