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
simon lehericey
3dad743d56
remove localtime as it uses server timezone
2018-10-26 10:10:20 +00:00
simon lehericey
9475795143
fix spec
2018-10-26 10:10:20 +00:00
simon lehericey
5aee0e7d40
Config: setup Paris time_zone
2018-10-26 10:10:20 +00:00
simon lehericey
ee0a6b1913
Time.at => Time.zone.at
2018-10-26 10:10:20 +00:00
simon lehericey
26ae29ea52
Time.local => Time.zone.local
2018-10-26 10:10:20 +00:00
simon lehericey
3078b377c7
Time.new => Time.zone.local
2018-10-26 10:10:20 +00:00
simon lehericey
e684cec516
DateTime.new => Time.zone.local
2018-10-26 10:10:20 +00:00
simon lehericey
4b25d16f5a
Time.zone.parse(_, options) => Time.zone.strptime(_, options)
2018-10-26 10:10:20 +00:00
simon lehericey
f620e4aee2
DateTime.parse => Time.zone.parse
2018-10-26 10:10:20 +00:00
simon lehericey
2238e5bd9f
Time.now => Time.zone.now
2018-10-26 10:10:20 +00:00
simon lehericey
13ffa61435
DateTime.now => Time.zone.now
2018-10-26 10:10:20 +00:00
simon lehericey
4f1cc8a2f0
Rubocop: add TimeZone rule
2018-10-26 10:10:20 +00:00
gregoirenovel
c0b79bf4ed
Merge pull request #2911 from betagouv/frederic/fix_overmind_port
...
Force port to 3000 when running on overmind
2018-10-26 11:27:20 +02:00
Frederic Merizen
5853ed94f5
Force port to 3000 when running on overmind
...
On development machines
- overmind + unicorn defaulted to port 3000
- overmind + puma defaults to port 5000
Forcing port 3000 rather than changing the readme and configuration
2018-10-26 11:05:04 +02:00
Paul Chavard
7934294e3e
Merge pull request #2910 from tchak/demarche-en-test-banner
...
Show warning on dossier pages when procedure is brouillon
2018-10-25 19:42:24 +02:00
Paul Chavard
fba0fad22e
Show warning on dossier pages when procedure is brouillon
2018-10-25 18:05:47 +02:00
LeSim
ad66c1e30d
Merge pull request #2904 from betagouv/change_storage_url
...
Conf: storage.apientreprise.fr -> static.demarches-simplifiees.fr
2018-10-25 17:10:26 +02:00
simon lehericey
b00dec4bf6
Conf: storage.apientreprise.fr -> static.demarches-simplifiees.fr
2018-10-25 17:05:22 +02:00
gregoirenovel
459816a0ab
Merge pull request #2906 from betagouv/webhook-doc
...
Webhook doc
2018-10-25 14:50:25 +02:00
gregoirenovel
fed1f05456
Add CADRE_JURIDIQUE_URL
2018-10-25 14:45:13 +02:00
gregoirenovel
394524b397
Improve the webhook description
2018-10-25 14:45:13 +02:00
gregoirenovel
cfc58000c6
Improve urls.rb
2018-10-25 14:45:13 +02:00
Frederic Merizen
02697948ed
Merge pull request #2897 from betagouv/frederic/fix_2675_sort_by_notification
...
Corrige le tri par notification sur l’onglet « tous les dossiers »
2018-10-24 17:20:11 +02:00
Frederic Merizen
64cb231b01
[ #2675 ] Fix notification sort order
2018-10-24 17:10:30 +02:00
Frederic Merizen
02f4ef215a
[ #2675 ] Make dossiers_id_with_notifications public
2018-10-24 17:10:30 +02:00
Frederic Merizen
dfdcfc62e2
[ #2675 ] Make dossiers_id_with_notifications self-contained
2018-10-24 17:10:30 +02:00
gregoirenovel
7466557b1f
Merge pull request #2901 from betagouv/deploy
...
Improve the deploy scripts
2018-10-24 16:05:47 +02:00
gregoirenovel
5b32638502
Order shared_dirs by alphabetic order
2018-10-24 16:00:49 +02:00
gregoirenovel
a90232e57b
Order require statements by alphabetic order
2018-10-24 16:00:49 +02:00
gregoirenovel
f60ff02394
Improve readability
2018-10-24 16:00:49 +02:00
gregoirenovel
21028bd97b
Extract a task to make things more atomic
2018-10-24 16:00:49 +02:00
gregoirenovel
1c55a38e81
Move variable definition to the top
2018-10-24 16:00:49 +02:00
gregoirenovel
4026984852
Move a comment in the comment block
2018-10-24 16:00:49 +02:00
gregoirenovel
7559653062
Make the comments-code order match
2018-10-24 16:00:49 +02:00