Commit graph

5476 commits

Author SHA1 Message Date
gregoirenovel
acaf7ff5a7 Adresse électronique → adresse email 2018-09-20 10:43:07 +02:00
Paul Chavard
73581d0bdb
Merge pull request #2626 from tchak/fix-new-lines
Fix new lines in confirm dialogs
2018-09-19 14:55:42 +02:00
Paul Chavard
539f15af92 Fix new lines in confirm dialogs 2018-09-19 14:45:10 +02:00
Pierre de La Morinerie
0f4a75ac89
Merge pull request #2491 from betagouv/fix_import_db_task
Import DB: fix location
2018-09-19 14:26:22 +02:00
simon lehericey
46c29465a2 Import DB: fix location 2018-09-19 14:19:31 +02:00
Pierre de La Morinerie
272701f148
Merge pull request #2615 from betagouv/fix-invite-email-prefill
Fix invite email prefill
2018-09-19 12:42:25 +02:00
Pierre de La Morinerie
e5f4056fe2 invite: fix prefilling the invited user email 2018-09-19 12:41:09 +02:00
Pierre de La Morinerie
bfa2a4b89d invite: refactor the syntax of the submit_login_form helper 2018-09-19 12:41:09 +02:00
Pierre de La Morinerie
1a6a643dc9 invite: refactor the generation of the invitation URL 2018-09-19 12:41:09 +02:00
Pierre de La Morinerie
bc55afba51 invite: clarify logic of sign-up redirection 2018-09-19 12:41:09 +02:00
Pierre de La Morinerie
a63e035daf spec: fix Flipflop state not being reseted after test
This would cause the Support specs to fail randomly with an unexpected
redirection.
2018-09-19 12:41:09 +02:00
gregoirenovel
c98ec1c746
Merge pull request #2616 from betagouv/show-instruction-time
Show instruction time
2018-09-19 12:39:08 +02:00
gregoirenovel
8ea021fb69 Factorize code in a method 2018-09-19 12:31:59 +02:00
gregoirenovel
6b98c36dad Add Dossier#mean_traitement_time for the upcoming page de garde 2018-09-19 12:31:59 +02:00
gregoirenovel
f3a257d81d Show the mean verification time in the Résumé tab 2018-09-19 12:31:59 +02:00
gregoirenovel
d55c9dff4d Show the mean instruction time in the Résumé tab 2018-09-19 12:31:59 +02:00
Pierre de La Morinerie
faff741bf2
Merge pull request #2624 from betagouv/refactor-after-confirmation-callback
invite: move invites link to the `after_confirmation` callback
2018-09-19 12:20:15 +02:00
Pierre de La Morinerie
082ef92a99 invite: move invites link to the after_confirmation callback
Refactored from 6a69d958da

The `after_confirmation_path_for` isn't really made to be a callbback.
For instance, it is not executed during tests.

Moving the invitations linking to a proper documented callback allows
the linking to work in a testing environment, when invoking `user.confirm`.
2018-09-19 12:08:28 +02:00
gregoirenovel
cceb88539d
Merge pull request #2608 from tchak/fix-demarche-brouillon-label
Change how we format brouillon démarche label
2018-09-19 11:36:06 +02:00
Paul Chavard
9a338ec140 Change how we format brouillon démarche label 2018-09-19 11:27:55 +02:00
gregoirenovel
2af0fe7c30
Merge pull request #2619 from betagouv/fix-2618
Fix #2618
2018-09-19 10:40:44 +02:00
gregoirenovel
a0660d17eb Refactor SiretFormatValidator#luhn_checksum 2018-09-19 10:32:43 +02:00
gregoirenovel
9d18f4187c Simplify SiretFormatValidator
We can remove nil checks as we never get nil
values
2018-09-19 10:32:43 +02:00
gregoirenovel
4e4b7c617f [Fix #2618] Do not enforce Luhn for La Poste SIRET numbers 2018-09-19 10:29:43 +02:00
gregoirenovel
940dfe422b Further refactor SiretFormatValidator#validate_each 2018-09-19 10:28:07 +02:00
gregoirenovel
36950b985b Refactor SiretFormatValidator#validate_each 2018-09-19 10:15:44 +02:00
gregoirenovel
49d872452a Improve SiretFormatValidator readability 2018-09-19 10:15:44 +02:00
gregoirenovel
471f6799c8 Refactor Siret tests 2018-09-19 10:15:42 +02:00
gregoirenovel
1299b125f1
Merge pull request #2617 from tchak/fix-add-path-to-procedures-task
Fix add path to procedures task
2018-09-18 19:20:47 +02:00
Paul Chavard
7591878b89 Fix add path to procedures task 2018-09-18 18:26:54 +02:00
Pierre de La Morinerie
ff4934eca2
Merge pull request #2601 from betagouv/new-dossier-feature-switch
dossier: finish feature-switch for enabled new dossier details
2018-09-18 16:54:02 +02:00
Pierre de La Morinerie
38f6d11c57 dossier: finish feature-switch for enabled new dossier details 2018-09-18 16:48:27 +02:00
gregoirenovel
326a1f7aaf
Merge pull request #2561 from betagouv/bump-gems
Bump gems
2018-09-18 15:22:50 +02:00
gregoirenovel
31a95cfb4e Bump development/test gems
- rspec-rails (3.8.0)
2018-09-18 15:06:29 +02:00
gregoirenovel
81d8e998b9 Bump test gems
- factory_bot (4.11.0 → 4.11.1)
2018-09-18 15:06:29 +02:00
gregoirenovel
40df5bb1f0 Bump development gems
- rubocop (0.58.2 → 0.59.0)
2018-09-18 15:06:29 +02:00
gregoirenovel
1a33984e8b Bump default gems
- aasm (5.0.0 → 5.0.1)
- pg (1.1.2 → 1.1.3)
- skylight (2.0.2 → 3.0.0)
- uglifier (4.1.18 → 4.1.19)
2018-09-18 15:06:29 +02:00
Paul Chavard
6cf7c2fe09
Merge pull request #2607 from tchak/do-not-clone-procedure-path
Do not clone procedure path
2018-09-18 13:48:41 +01:00
Paul Chavard
36812793d4 Do not clone procedure path 2018-09-18 14:40:02 +02:00
Paul Chavard
b13db523d5
Merge pull request #2606 from betagouv/fix-active-record-translations
Gemfile: add default ActiveRecord translations
2018-09-18 13:39:49 +01:00
Pierre de La Morinerie
110f657849 Gemfile: add default ActiveRecord translations
Before:

```ruby
> Commentaire.create!
ActiveRecord::RecordInvalid (translation missing: fr.activerecord.errors.messages.record_invalid)
```

After:

```ruby
> Commentaire.create!
ActiveRecord::RecordInvalid (La validation a échoué : Body Votre message ne peut être vide)
```

Fix #2096
2018-09-18 14:22:08 +02:00
Frederic Merizen
b36346d045
Merge pull request #2605 from betagouv/frederic/fix_2584-extract_dossier_field_service
Frederic/fix 2584 extract dossier field service
2018-09-18 14:17:12 +02:00
Frederic Merizen
89a1d990e9 [#2584] Minor cleanup of DossierFieldService 2018-09-18 13:49:49 +02:00
Frederic Merizen
63fc0b3bc3 [Fix #2584] Move Field related code to a service 2018-09-18 13:49:34 +02:00
Paul Chavard
36994ab697
Merge pull request #2583 from tchak/add-path-to-procedure
Add path to procedure
2018-09-18 12:38:12 +01:00
Paul Chavard
18922122b4 Fix SQL ambiguous name error 2018-09-18 13:21:29 +02:00
Paul Chavard
b042efdcba Update procedure path attribute when procedure_path changes 2018-09-18 13:21:29 +02:00
Paul Chavard
b772256a97 Read from path attribute instead of procedure_path when possible 2018-09-18 13:21:18 +02:00
Paul Chavard
2787f040af Add path attribute to Procedure model 2018-09-18 13:21:18 +02:00
Paul Chavard
1cf65c1b89 Add task to fill procedures table path column 2018-09-18 13:21:18 +02:00