Commit graph

20 commits

Author SHA1 Message Date
gregoirenovel
8281a6474e Force a single query for some includes
As explained in
https://blog.bigbinary.com/2013/07/01/preload-vs-eager-load-vs-joins-vs-includes.html

Otherwise the `where` fails because the `includes`
is done using another query
2017-10-10 18:33:20 +02:00
gregoirenovel
31b9f8950e Increase the number of dossiers on the procedure page
Plus remove some trailing whitespace
2017-10-05 13:28:24 +02:00
gregoirenovel
0705efde30 Add filtering to the dossiers table 2017-10-02 17:45:22 +02:00
gregoirenovel
801318b053 Memoize statut 2017-10-02 17:45:22 +02:00
gregoirenovel
3df9356021 Add field sort to the dossiers table 2017-10-02 17:45:22 +02:00
gregoirenovel
e1bdbec815 Allow the customization of the dossiers table 2017-10-02 17:45:22 +02:00
Mathieu Magnin
2737a8d529 Add pagination on dossiers list 2017-09-22 10:19:25 +02:00
Simon Lehericey
112e3a5793 Procedures: redirect to avis if suitable 2017-09-20 15:42:26 +02:00
Simon Lehericey
fbd16b8c75 Procedure show: add notification icon 2017-09-06 11:11:47 +02:00
Simon Lehericey
3e93d21bf5 Procedure Index: add notification icon 2017-09-06 11:11:47 +02:00
Mathieu Magnin
1e61f1388b Move layout configuration on gestionnaire controller 2017-09-06 11:11:41 +02:00
Mathieu Magnin
f3f2b6acc2 Avoid n+1 because of gestionnaire.follows?(dossier) 2017-09-06 11:11:32 +02:00
Mathieu Magnin
d780ab1c90 Avoid n+1 because of user.email 2017-09-06 11:11:32 +02:00
gregoirenovel
b4a1f4f248 Remove a useless scope call
A gestionnaire’s dossiers are already filtered so
that the brouillon ones do not appear
2017-09-06 11:11:27 +02:00
gregoirenovel
091fa1d099 Order a Gestionnaire’s procedures
First display the procédures publiées, sorted
by publication date, and then the procédures
archivées, sorted by archiving date
2017-09-06 11:11:27 +02:00
Mathieu Magnin
5b417889b2 Use same counters on procedures index than show 2017-09-06 11:11:14 +02:00
Simon Lehericey
ad1a11ab52 NewDesign: procedure show add dossier table 2017-09-06 11:11:11 +02:00
Simon Lehericey
b48af51ee9 NewDesign: procedure show only header 2017-09-06 11:11:11 +02:00
Mathieu Magnin
622a170793 Add and design new #index on procedures for gestionnaires 2017-09-06 11:11:07 +02:00
Simon Lehericey
94f8fb748f New Routes: add new_gestionnaire/procedures_controller 2017-07-03 14:09:14 +02:00