maatinito
766e9db752
converting DateTime to Date looses time zone information resulting in bad time computing
...
Specifically, for Tahiti, time zone is -10 so after 14h, UTC time is Tahiti time + 10h i.e the day after. Loosing time zone results in 1 day difference whether the time is computed before of after 14h :-)
2019-03-08 17:58:58 +01:00
Pierre de La Morinerie
34a2dc6b97
stats: turn satisfaction into a stacked area chart
2019-02-01 11:02:37 +01:00
Pierre de La Morinerie
ac88d1cc1d
stats: display the last day of the range (instead of the first day)
2019-01-10 16:17:00 +01:00
Pierre de La Morinerie
908771e172
stats: use group_by_week to compute the week range
...
Fix #3242
2019-01-10 16:17:00 +01:00
Pierre de La Morinerie
5a36546485
layouts: rename "application" to "application_old"
2019-01-07 12:17:05 +01:00
Pierre de La Morinerie
86b9e2d092
stats: fix exception when HelpScout env vars are missing
...
This fixes the stats page, which used to raise an exception when
HelpScout env vars are not present.
2019-01-03 17:27:56 +01:00
Pierre de La Morinerie
efae27b901
stats: start helpscout stats at 01-2018
...
Data before is very variable, as it is based on a low dossiers count.
2019-01-03 17:23:22 +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
a8f700b572
Enable the Style/FormatString cop
2018-12-19 13:56:10 +01:00
Pierre de La Morinerie
d614ea6bd5
stats: display contact rate
2018-12-18 10:38:59 +01:00
simon lehericey
2238e5bd9f
Time.now => Time.zone.now
2018-10-26 10:10:20 +00:00
simon lehericey
fd9bdbf31d
StatsController: avoid doing useless queries
2018-10-18 11:50:43 +02:00
simon lehericey
aff085bb6b
StatsController: avoid division by nil
2018-10-16 18:02:00 +02:00
simon lehericey
3d51b7f4a3
so crazy right now
2018-10-15 14:55:07 +02:00
simon lehericey
21e3dc1498
Let the stats be great again
2018-10-15 14:55:07 +02:00
simon lehericey
17b100b4e9
ControllerStat: renaming
2018-10-15 14:55:07 +02:00
gregoirenovel
d1439f8a52
Enable Style/YodaCondition
2018-10-03 12:00:17 +02:00
gregoirenovel
50019e5317
Show user satisfaction in percentages
2018-09-11 10:17:40 +02:00
gregoirenovel
26e0ada3d4
Improve the ratings stats
...
Make sure that for each data point, we have do not
have any partial data (e.g. a week that hasn’t
finished yet)
2018-09-11 10:17:40 +02:00
gregoirenovel
00ecae5f93
Procédure → Démarche
2018-09-05 15:46:24 +02:00
gregoirenovel
d05209d28f
Make the stats code more robust to empty databases
2018-09-03 17:35:14 +02:00
gregoirenovel
e60aa0c37b
Use scopes when possible
2018-08-30 13:16:14 +02:00
gregoirenovel
15d1b01a90
Code simplification
2018-08-30 13:16:14 +02:00
gregoirenovel
4b071ecf06
Use enum to the fullest with Dossier.states
2018-08-29 17:31:08 +02:00
gregoirenovel
00610991b7
[ Fixes #2480 ] Add 30-days evolution stats to the stats page
2018-08-29 14:54:49 +02:00
gregoirenovel
4c7f9af73d
Order the legend in the same order as the enum
2018-08-27 18:18:26 +02:00
gregoirenovel
577496cb06
Fix a typo
2018-08-27 17:58:53 +02:00
gregoirenovel
18624ff872
Update the stats code to use ratings instead of marks
2018-08-27 17:12:01 +02:00
gregoirenovel
b158a92493
Add a graph showing the user satisfaction
2018-08-27 14:00:34 +02:00
gregoirenovel
f381d45d1a
Add a chart showing the dossiers state repartition
2018-08-27 14:00:34 +02:00
lucien mollard
9292e243ef
Add a button to download the stats in CSV
2018-08-27 14:00:34 +02:00
simon lehericey
28ce027025
[ fix #1832 ] Procedure Stat: display procedure cloned ratio
2018-04-24 14:22:22 +02:00
gregoirenovel
0a9f442260
Enable some Rails cops
2018-03-06 17:18:44 +01:00
gregoirenovel
b138dcd876
Enable the Layout/SpaceInsideHashLiteralBraces cop
2018-01-18 10:53:35 +01:00
gregoirenovel
1e71188d4d
Enable the Layout/IndentationConsistency cop
2018-01-15 22:33:13 +01:00
Simon Lehericey
72bae2c374
[ fix #504 ] Dossier: draft -> brouillon
2017-12-15 11:52:09 +01:00
LeSim
56545933a9
[ fix #504 ] Dossier: initiated -> en_construction
...
The change must not impact the api
2017-12-15 11:52:09 +01:00
gregoirenovel
379e7b74d6
Enable all the rubicop perf cops
2017-11-21 10:31:16 +01:00
Mathieu Magnin
08f76f336c
If not super admin do not display current month in cumul
2017-10-17 12:55:17 +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
gregoirenovel
6f2c63c094
Remove default values for some stat methods’ arguments
2017-07-17 16:00:16 +02:00
gregoirenovel
20b4c7ce6f
[ Fix #146 ] Use published_at for procedures in Stats
...
Instead of created_at, which is less
representative
2017-07-17 15:10:05 +02:00
gregoirenovel
1c1a47d83a
publiee_ou_archivee -> publiees_ou_archivees
2017-07-17 15:06:36 +02:00
gregoirenovel
ab9cf1c351
Rename the published scope on Procedure
2017-07-13 14:40:41 +02:00
gregoirenovel
5f50f76341
Add the published scope en Procedure
2017-07-10 16:54:01 +02:00
gregoirenovel
469f0aed4b
[ Fix #440 ] Show the current month only if logged in as superadmin
2017-06-26 10:50:31 +02:00
gregoirenovel
d0b927857a
Add stats for encart motivation
2017-06-19 18:01:59 +02:00
gregoirenovel
19696da736
Add StatsController#percentage
2017-06-19 18:01:57 +02:00
gregoirenovel
d248afc376
Enable the Layout/ExtraSpacing cop
2017-06-13 10:35:35 +02:00