Commit graph

8662 commits

Author SHA1 Message Date
Frederic Merizen
c43cde5647 [] Show and / or relationship between filters 2019-03-11 17:14:17 +01:00
Frederic Merizen
b3c3541725 [] Update brakeman config 2019-03-11 17:14:17 +01:00
Frederic Merizen
b4790e5009 [] Slightly more compact 2019-03-11 17:14:17 +01:00
Frederic Merizen
e8747f7c38 [] Extract helper method 2019-03-11 17:14:17 +01:00
Frederic Merizen
656f0df377 [] Remove clunky extra method 2019-03-11 17:14:17 +01:00
Frederic Merizen
f64ade355f [] Fix a copy-paste mistake 2019-03-11 17:14:17 +01:00
Frederic Merizen
7d09624bbe [] We only use the table anyway 2019-03-11 17:14:17 +01:00
Frederic Merizen
c9ad2995f1 [] Remove extraneous variable 2019-03-11 17:14:17 +01:00
Frederic Merizen
4646e10864 [] The where clause doesn't do what it's supposed to do 2019-03-11 17:14:17 +01:00
Frederic Merizen
cf3f2409dd [] Clarify what the previous code of eager_load_displayed_fields does 2019-03-11 17:14:17 +01:00
Frederic Merizen
f0d83b1de8 [] ignore invalid dates for now 2019-03-11 17:14:17 +01:00
Frederic Merizen
0ba3515d41 [] Filter by 'column ilike values' as a scope 2019-03-11 17:14:17 +01:00
Frederic Merizen
a87e3ac697 [] Make filtering by datetimes a proper scope 2019-03-11 17:14:17 +01:00
Frederic Merizen
9096f923b1 [] Cleaner way to return no dossiers 2019-03-11 17:14:17 +01:00
Frederic Merizen
d24fb5d186 [] Let where_ilike take care of necessary sanitizing 2019-03-11 17:14:17 +01:00
Frederic Merizen
e098779c5e [] Accept symbol arguments to sanitized_column 2019-03-11 17:14:17 +01:00
Frederic Merizen
f34e65c207 [] Make sanitized_column a class method 2019-03-11 17:14:17 +01:00
Frederic Merizen
7241e43a7c [] Allow calling sanitized_column with individual fields
rather than a hash
2019-03-11 17:14:17 +01:00
Frederic Merizen
00ca2e0cbb [] Make sanitized_column dryer 2019-03-11 17:14:17 +01:00
Frederic Merizen
1f34d971d1 [] where_equals is trivial, inline it 2019-03-11 17:14:17 +01:00
Frederic Merizen
91e6671cfb [] Do not use string interpolation for where_equals 2019-03-11 17:14:17 +01:00
Frederic Merizen
3c96c2e83d [] Do not use string interpolation for where_datetime_matches 2019-03-11 17:14:17 +01:00
Frederic Merizen
664956d8c6 [] Move compact nearer to the nil-generating place 2019-03-11 17:14:17 +01:00
Frederic Merizen
55d4dcc174 [] Introduce column variable 2019-03-11 17:14:17 +01:00
Frederic Merizen
35d5322a9b [] Clarify variable name 2019-03-11 17:14:17 +01:00
Frederic Merizen
cf2b40f6a0 [] Extract all variables from sort hash 2019-03-11 17:14:17 +01:00
Frederic Merizen
21128d94b6 [] Inline only use of variable 2019-03-11 17:14:17 +01:00
Frederic Merizen
43243e73d4 [] Merge two ordering cases 2019-03-11 17:14:17 +01:00
Frederic Merizen
8d8376947d [Fix ] Individually remove values from multi-value filter 2019-03-11 17:14:17 +01:00
Frederic Merizen
71f766c434 [] Prefer pluck over map 2019-03-11 17:14:17 +01:00
Frederic Merizen
c53370e14c [] Reuse existing filtering facility 2019-03-11 17:14:17 +01:00
Frederic Merizen
efa71284fc [] Test eager_load_displayed_fields 2019-03-11 17:14:17 +01:00
Frederic Merizen
393f1b1971 [] Move eager_load_displayed_fields to model 2019-03-11 17:14:17 +01:00
Frederic Merizen
c81adb80fd [] Better choice of case vs if 2019-03-11 17:14:17 +01:00
Frederic Merizen
66fa7ef11d [] Push up reliance on mutable state 2019-03-11 17:14:17 +01:00
Frederic Merizen
ac4750e5e3 [] Simplify removing a filter 2019-03-11 17:14:17 +01:00
Frederic Merizen
822a3f7098 [] Extract helper to find field 2019-03-11 17:14:17 +01:00
Frederic Merizen
bda41d7574 [] Clarify field_id 2019-03-11 17:14:17 +01:00
Frederic Merizen
58158938cb [] Extract helper 2019-03-11 17:14:17 +01:00
Frederic Merizen
5e1dc7059a [] Allow selecting the same filter repeatedly 2019-03-11 17:14:17 +01:00
Frederic Merizen
70bf6aecf6 [] Filter by mutliple values 2019-03-11 17:14:17 +01:00
Frederic Merizen
5d01e37d70 [] Make filters stand out a little more in spec 2019-03-11 17:14:17 +01:00
Frederic Merizen
1431de5cc2 [] Handle multiply-valued filters 2019-03-11 17:14:17 +01:00
Frederic Merizen
54cb65b8a7 [] Extract helper 2019-03-11 17:14:17 +01:00
Mathieu Magnin
1d5f219303
Amélioration du header sur mobile
Amélioration du header sur mobile
2019-03-11 17:01:35 +01:00
Pierre de La Morinerie
f14ddccbe8 header: improve available width on narrow viewports 2019-03-11 16:06:15 +01:00
Pierre de La Morinerie
33db73c513 header: reduce the search bar width on narrow viewports 2019-03-11 16:06:15 +01:00
Pierre de La Morinerie
fefbcbf531
Merge pull request from betagouv/rename-faq-to-aide
footer: rename "FAQ" to "Help"
2019-03-11 16:03:08 +01:00
Pierre de La Morinerie
dce83aef7c footer: rename "FAQ" to "Help" 2019-03-11 15:54:34 +01:00
Pierre de La Morinerie
f5f33c0bf9
Merge pull request from betagouv/frederic/remove_unused_sti
Remove unused column
2019-03-11 15:54:01 +01:00