Skip to content

dedup values passed to PostgrestFilterBuilder.in #517

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

Merged
merged 1 commit into from
Feb 7, 2024

Conversation

travis-humata
Copy link
Contributor

What kind of change does this PR introduce?

Dedup values passed into PostgrestFilterBuilder.in

What is the current behavior?

Values are incorporated into the url as is when duplicate values are present.
e.g. .in([1,1,2,2,3,3]) => in.(1,1,2,2,3,3)

The caused us to get a 414 URI too long when we passed in a long array of deduplicated values by accident. Would be nice if the library took care of this.

What is the new behavior?

Values will be deduplicated as duplicated.
e.g. .in([1,1,2,2,3,3]) => in.(1,2,3)

@steve-chavez steve-chavez merged commit a79d78c into supabase:master Feb 7, 2024
Copy link

github-actions bot commented Feb 7, 2024

🎉 This PR is included in version 1.10.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

2 participants