Commit graph

6164 commits

Author SHA1 Message Date
Paul Chavard
ca09aa52a3 Put IntegerNumberChamp behind a flag 2018-11-06 11:28:44 +01:00
Paul Chavard
074050a91a Add IntegerNumberChamp 2018-11-06 11:28:44 +01:00
Paul Chavard
45bfb2fd47 Add DecimalNumberChamp 2018-11-06 11:28:44 +01:00
gregoirenovel
681a2e660d
Merge pull request #2951 from betagouv/fix-vuln
Bump loofah
2018-11-05 18:02:35 +01:00
gregoirenovel
b200e054cd Bump loofah 2018-11-05 17:55:43 +01:00
LeSim
d9b978c322
Merge pull request #2950 from betagouv/remove-dev-tasks
Remove the dev tasks, they’re now in ds-cli
2018-11-05 17:54:56 +01:00
gregoirenovel
d0efccbd03 Remove the dev tasks, they’re now in ds-cli 2018-11-05 17:49:39 +01:00
gregoirenovel
058bea1ea8
Merge pull request #2943 from tchak/drop-procedure-paths-table
Drop procedure_paths table
2018-11-01 16:21:49 +01:00
Paul Chavard
520dbc25c4 Drop procedure_paths table 2018-11-01 15:46:55 +01:00
Paul Chavard
53570dbb4d
Merge pull request #2940 from tchak/new-user-commencer
Migrate commencer to new_user
2018-11-01 15:21:13 +01:00
Paul Chavard
cfd1950e17 Migrate commencer to new_user 2018-11-01 13:10:41 +01:00
Mathieu Magnin
66fb0c70f6
Merge pull request #2936 from betagouv/fix-2697
[Fix #2697] When file does not exist on openstack do not crash (Fog::Storage::OpenStack::NotFound)
2018-10-31 16:08:47 +01:00
Mathieu Magnin
917b271a7f [Fix #2697] When file does not exist on openstack do not crash 2018-10-31 15:22:45 +01:00
LeSim
77275bb52b
Merge pull request #2934 from tchak/fix-commentaire-file-url
Fix commentaire file_url generator
2018-10-31 12:58:16 +01:00
Paul Chavard
8ff45c7978 Fix commentaire file_url generator 2018-10-31 12:53:14 +01:00
Paul Chavard
ab98e024c3
Merge pull request #2932 from tchak/remove-path-from-archived-procedures
Remove path from archived procedures
2018-10-31 12:05:34 +01:00
Paul Chavard
3418419771 Remove path from archived procedures 2018-10-31 11:56:51 +01:00
LeSim
3aef0f379b
Merge pull request #2931 from betagouv/fix_cgdd
Let the API return times in UTC for now
2018-10-31 11:51:16 +01:00
simon lehericey
2f2f1e1321 Let the API return times in UTC for now 2018-10-31 11:43:48 +01:00
gregoirenovel
3fc462fb89
Merge pull request #2902 from tchak/expose-commentaire-attachement-on-api
Expose commentaire attachement on api
2018-10-30 17:37:31 +01:00
Paul Chavard
9b40ef2a77 Expose commentaire attachement on api
fix #2817
2018-10-30 16:22:51 +01:00
gregoirenovel
9a3daf0b79
Merge pull request #2926 from tchak/path-availability
Clarify procedure path availability code
2018-10-30 16:21:07 +01:00
Paul Chavard
e391fe6bec Clarify procedure path availability code 2018-10-30 15:59:37 +01:00
Paul Chavard
6782643426 Fix js error on path check before publish 2018-10-30 15:59:37 +01:00
Paul Chavard
6e4d111e09 Refactor and fix procedure update error handling 2018-10-30 15:59:37 +01:00
Mathieu Magnin
430c58a2ea
Merge pull request #2928 from betagouv/fix-2276
Fix 2276 Quand on créé un service avec de la donnée invalide, on perd tout ce qu'on a entré dans le formulaire
2018-10-30 15:57:40 +01:00
Mathieu Magnin
c656e36ec2 [Fix #2276] Test to ensure form is not cleared if service creation failed 2018-10-30 15:49:18 +01:00
Mathieu Magnin
e90c541ab4 [Fix #2276] When service creation fails form is not cleared 2018-10-30 15:49:18 +01:00
gregoirenovel
839247922a
Merge pull request #2927 from betagouv/remove-confirmation-button
Remove the confirmation button from the manager
2018-10-30 15:29:33 +01:00
gregoirenovel
6bc1a8cb71 Remove the confirmation button from the manager 2018-10-30 15:24:30 +01:00
gregoirenovel
e2f031d90e
Merge pull request #2925 from tchak/geo-aria-id
Add id to geo areas
2018-10-30 14:54:42 +01:00
Paul Chavard
fcdc0114fd Add id to geo areas 2018-10-30 12:16:09 +01:00
gregoirenovel
a005484e38
Merge pull request #2909 from tchak/remove-procedure-path
Remove ProcedurePath
2018-10-30 12:11:21 +01:00
Paul Chavard
725e88a89a Rename :procedure_path -> :path 2018-10-30 12:01:45 +01:00
Paul Chavard
f1fd1b38ec Refactor procedures_controller 2018-10-30 12:01:45 +01:00
Paul Chavard
b42095363e Refactor procedure model 2018-10-30 12:01:45 +01:00
Paul Chavard
641831864b Refactor commencer actions 2018-10-30 12:01:45 +01:00
Paul Chavard
78dc582588 Remove ProcedurePath 2018-10-30 12:01:45 +01:00
Frederic Merizen
46e5e0a4fd
Merge pull request #2923 from betagouv/frederic/fix_2815-wording_avertissement_pjs
[Fix #2815] Ne pas parler de plusieurs PJs quand il n'y en a qu'une
2018-10-30 11:32:56 +01:00
Frederic Merizen
06a667f353 [Fix #2815] Ne pas parler de plusieur PJs quand il n'y en a qu'une 2018-10-30 11:19:17 +01:00
Frederic Merizen
a3a560ae98
Merge pull request #2924 from betagouv/frederic/fix_flaky_test
Fix test that doesn't work just after daylight saving time changes
2018-10-30 11:18:35 +01:00
Frederic Merizen
cf9024d36f Fix test that doesn't work just after daylight saving time changes
If I submit a request on Friday at 8am, and get a response on
Monday at 8am, the response time is 72h...

except if there was a daylight saving time change on Sunday, in
which case the response time is either 71h or 73h, making the test
fail
2018-10-30 10:58:20 +01:00
Frederic Merizen
87330c1d4d
Merge pull request #2916 from betagouv/frederic/cosmetic_date_handling
cosmetic date handling
2018-10-26 18:14:51 +02:00
Frederic Merizen
aff93ecd6a Simplify test syntax 2018-10-26 17:53:36 +02:00
Frederic Merizen
f6207bee26 Do not take time of day into account when searching dates 2018-10-26 17:53:26 +02:00
Frederic Merizen
16a018d137
Merge pull request #2914 from betagouv/fix_2913_filter
ProcedurePresentation: rescue big int as a datetime value
2018-10-26 15:02:59 +02:00
simon lehericey
a06f872a4b ProcedurePresentation: rescue big int as a datetime value 2018-10-26 14:39:17 +02:00
LeSim
c5015291a6
Merge pull request #2908 from betagouv/fix_2905_timezone
Fix 2905 timezone
2018-10-26 12:14:41 +02:00
simon lehericey
63db387984 ProcedurePresentation: display dossier date in d/m/Y 2018-10-26 10:10:20 +00:00
simon lehericey
3685c65fb7 [fix #2905] fix DATE_TRUNC usage
DATE_TRUNC is played on the db where the timestamp are stored in utc.
So if a user search for 12/12/2012 in Paris timezone and that we truncate it should do something similar to :

SELECT DATE_TRUNC('day', foo.timezone) from (SELECT timestamp '2012-12-12 00:00:00' AT TIME ZONE 'Europe/Paris') as foo;
=> 2012-12-11

To avoid such pb, I suggest avoiding DATE_TRUNC when exact results are needed
2018-10-26 10:10:20 +00:00