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 · 1 comment

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
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant