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

Refactor Filter type to only allow valid keys #392

Merged
merged 1 commit into from
Apr 4, 2023

Conversation

andrinheusser
Copy link
Contributor

@andrinheusser andrinheusser commented Apr 4, 2023

Refactor the Filter type to only allow filter keys that exist on the document.

  • Top-level keys as { filterKey: Value }
  • Nested keys as { "filter.key": Value }

Arbitrary strings are no longer allowed.

image

Also includes a cleanup of the unused Split type I missed in the last PR (sorry!)

This PR will probably break builds for people who have typos/non-existent keys in their code, but at least they would be aware of it.

@andrinheusser andrinheusser requested a review from erfanium as a code owner April 4, 2023 12:32
Copy link
Collaborator

@lucsoft lucsoft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Omg thanks on these two great PRs! :shipit:

Copy link
Member

@erfanium erfanium left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! Thank you

@erfanium erfanium merged commit a49057d into denodrivers:main Apr 4, 2023
@andrinheusser andrinheusser deleted the typed-filters branch April 4, 2023 21:38
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

Successfully merging this pull request may close these issues.

3 participants