Skip to content

Use validator on order attributes #2732

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
May 8, 2022

Conversation

Meldiron
Copy link
Contributor

@Meldiron Meldiron commented Jan 31, 2022

What does this PR do?

Takes newly created SortAttributes validator and runs sort attributes through it. Thanks to this validator, we now force indexes on attributes user want to sort on, and prevent usage of unwanted attributes such as _uid.

Test Plan

TODO: We probably need to add bunch of tests

Related PRs and Issues

utopia-php/database#106

Have you read the Contributing Guidelines on issues?

@TorstenDittmann TorstenDittmann merged commit 2a2af79 into master May 8, 2022
@TorstenDittmann TorstenDittmann deleted the fix-unindexed-sort-attributes branch May 8, 2022 18:44
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.

2 participants