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: add support for ordering in QueryRecords #340

Merged
merged 15 commits into from
Jun 10, 2022

Conversation

hongalex
Copy link
Collaborator

What type of PR is this?
/kind feat

What this PR does / Why we need it:

Adds the ability to query records and return them in a sorted order, given that the proper composite index is created.

Which issue(s) this PR fixes:
Closes #337

Special notes for your reviewer:

@hongalex hongalex requested a review from yuryu May 31, 2022 20:47
Copy link
Member

@yuryu yuryu left a comment

Choose a reason for hiding this comment

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

added a few comments. let me know what you think.

}

// Property name to order by.
string property_name = 1;
Copy link
Member

Choose a reason for hiding this comment

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

not a request but will we allow sorting by system properties (like updated_at or blob_size)? In that case using oneof might make sense here (although we only have property_name right now).

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@loranger2k @labheshd what do you think? Is there a request to sort by these fields?

@yuryu yuryu self-requested a review June 7, 2022 16:46
Copy link
Member

@yuryu yuryu left a comment

Choose a reason for hiding this comment

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

lgtm

@hongalex hongalex requested a review from yuryu June 8, 2022 23:38
Copy link
Member

@yuryu yuryu left a comment

Choose a reason for hiding this comment

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

lgtm with comments

@hongalex hongalex merged commit 599b47f into googleforgames:main Jun 10, 2022
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.

Add basic sort support for QueryRecords
2 participants