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

api.db: add support for regexes in mongodb queries #460

Merged
merged 1 commit into from
Jan 31, 2024

Conversation

r-c-n
Copy link

@r-c-n r-c-n commented Jan 31, 2024

Introduce a new API query operator (re) to match query parameters using mongodb-compatible regular expressions.

Mongodb has built-in regex capabilities for queries, so we get those for free if we simply add support for an additional query operator.

Introduce a new API query operator (re) to match query parameters using
mongodb-compatible regular expressions.

Signed-off-by: Ricardo Cañuelo <[email protected]>
Copy link
Member

@nuclearcat nuclearcat left a comment

Choose a reason for hiding this comment

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

Tested on staging, works!

@nuclearcat nuclearcat added this pull request to the merge queue Jan 31, 2024
Merged via the queue into kernelci:main with commit d7d7624 Jan 31, 2024
4 checks passed
@JenySadadia
Copy link
Collaborator

Thanks for the addition @hardboprobot . This should be documented here https://kernelci.org/docs/api/api-details/#getting-nodes-back

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