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

feat: adding optional TagFilterMode to the record query API that allows to filter by ALL or ANY of the tags (AND vs OR tag filter mode) #465

Merged
merged 3 commits into from
Mar 27, 2025

Conversation

SecretGibbon
Copy link
Contributor

@SecretGibbon SecretGibbon commented Mar 26, 2025

What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespace from that line:

/kind fix

/kind feat

/kind build
/kind chore
/kind ci
/kind docs
/kind style
/kind refactor
/kind perf
/kind test

What this PR does / Why we need it:
Allows filtering by tags using AND or OR manner

Which issue(s) this PR fixes:
Closes 466

Special notes for your reviewer:

Copy link

google-cla bot commented Mar 26, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@SecretGibbon SecretGibbon changed the title Adding optional TagFilterMode to the record query API that allows to filter by ALL or ANY of the tags (AND vs OR tag filter mode) feat: adding optional TagFilterMode to the record query API that allows to filter by ALL or ANY of the tags (AND vs OR tag filter mode) Mar 26, 2025
Copy link
Collaborator

@lorangf lorangf left a comment

Choose a reason for hiding this comment

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

LGTM

@lorangf
Copy link
Collaborator

lorangf commented Mar 26, 2025

/gcbrun

@vasconcelosvcd
Copy link
Collaborator

/gcbrun

&pb.QueryRecordsRequest{
StoreKey: stores[1].Key,
Tags: []string{tag1, tag4},
},
nil, codes.OK,
},
{
"Tags OR",
Copy link
Collaborator

@vasconcelosvcd vasconcelosvcd Mar 27, 2025

Choose a reason for hiding this comment

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

can we have tags or and no results test ?

@vasconcelosvcd
Copy link
Collaborator

/gcbrun

@vasconcelosvcd
Copy link
Collaborator

/gcbrun

@vasconcelosvcd vasconcelosvcd merged commit 1902dd1 into googleforgames:main Mar 27, 2025
4 checks passed
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