Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The url_for_pagination function throws an error when supplied a nested filter #283

Open
theirishpenguin opened this issue Jan 9, 2023 · 0 comments

Comments

@theirishpenguin
Copy link

The Problem

When I supply a nested filter for an index request - eg. /movies?filter[price][lt]=49
Then I get the error...

image

Suspected Cause

  • The problem appears to be that URI.encode_query/1, which ultimately gets called, does not like nested fields (such as "lt" nested under "price")
  • Some efforts to mitigate this already appear to have been taken at
    |> Utils.List.to_list_of_query_string_components()
    • ... however this mitigation falls short when there are multiple level nested query params
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant