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

Add start_commit_id to ListLabelHistoryRequest #81

Merged
merged 3 commits into from
Mar 4, 2024

Conversation

nicksnyder
Copy link
Member

@nicksnyder nicksnyder commented Mar 1, 2024

To view a diff for a commit on a label we need to be able to get the previous commit on that label. Added start_commit_id so we can fetch the history starting at the desired commit and using a page size of 2 can also get the previous commit.

@nicksnyder nicksnyder requested a review from unmultimedio March 1, 2024 15:11
@nicksnyder nicksnyder requested a review from bufdev as a code owner March 1, 2024 15:11
Copy link
Member

@unmultimedio unmultimedio left a comment

Choose a reason for hiding this comment

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

For context: we already have the property that a commit can be in the label history just once, so this is reasonable to me. Wdyt @saquibmian ?

buf/registry/module/v1/label_service.proto Outdated Show resolved Hide resolved
@nicksnyder nicksnyder changed the title Allow page_token to be a Commit id for ListLabelHistoryRequest Add start_commit_id to ListLabelHistoryRequest Mar 1, 2024
@nicksnyder nicksnyder merged commit 3e01648 into main Mar 4, 2024
8 checks passed
@nicksnyder nicksnyder deleted the label-history-offset branch March 4, 2024 18:10
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