Enforce sort direction in dql. Do not allowing ordering when disabled. - #389
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #389 +/- ##
=======================================
Coverage 94.52% 94.52%
=======================================
Files 40 40
Lines 1078 1078
=======================================
Hits 1019 1019
Misses 59 59 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@craigh Could you please check the default-order? The actual code changed our existing sorting. I need to investigate further |
|
Could you please add a We use in our code |
|
@Chris53897 done |
|
ping @curry684 |
| $state->setLength(10); | ||
| $state->setGlobalSearch('foo'); | ||
| $state->setOrderBy([[0, 'asc'], [1, 'desc']]); | ||
| $state->setOrderBy([ |
There was a problem hiding this comment.
As noted at #388 (comment) I would revert injecting semi-SQL here as it's confusing. Do the input sanitation tests in the new test case.
|
I'll merge it and shuffle the tests a bit. |
|
Hrm no I'm reverting it as it's going to cause a lot of new problems. The |
closes #388