You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue has been automatically marked as "stale:discard". We are sorry that we haven't been able to prioritize it yet.
If this issue still relevant, please leave any comment if you have any new additional information that helps to solve this issue. We encourage you to create a pull request, if you can. We are happy to help you with that.
I was working on a PR to add "dasherized support" for the
sort
andinclude
fields, in the same way I added it for thefilter
field in #282.While I was doing that, I realized that it already works for
include
, because theparse_include
function performs its own underscoring already, and doesn't need any help from theUnderscoreParameters
plug.This was something that the
parse_sort
function does not do, which I addressed by changing theUnderscoreParameters
plug in #282.So now we are in a state where certain query parameters always underscore their values, while others do not:
fields
filter
replace_query_params
include
sort
I think for version
2.0
of this library:QueryParser
module.UnderscoreParameters
module should go back to just doing theparams
, mostly undoing the work in Integration between UnderscoreParameters and QueryParser #282.But in the mean time, there should still be a way to underscore the
sort
query parameter. It looks like our options are:sort
underscoring in the same fashion as thefilter
underscoring by putting it behind thereplace_query_params
option.underscore/1
in theQueryParser.parse_filter
function.Let me know what you think is best, and I can prepare the PR.
The text was updated successfully, but these errors were encountered: