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

Update Label.updated_by_user_id to be not required #103

Merged
merged 2 commits into from
Apr 25, 2024

Conversation

nicksnyder
Copy link
Member

Users can get deleted. This is consistent with the behavior already documented for Commit.created_by_user_id

// The id of the User that created this Commit on the BSR.
//
// May be empty if the User is no longer available.
string created_by_user_id = 6 [(buf.validate.field).string.tuuid = true];

@nicksnyder nicksnyder requested a review from bufdev as a code owner April 25, 2024 19:29
@nicksnyder nicksnyder changed the title Update Label.updated_by_user_id to be not required. Update Label.updated_by_user_id to be not required Apr 25, 2024
@saquibmian
Copy link
Contributor

I think you also need

(buf.validate.field).ignore = IGNORE_IF_UNPOPULATED

Without this, the default value (empty string) fails validation.

We will want to update Commit.created_by_user_id as well.

@nicksnyder nicksnyder merged commit da47302 into main Apr 25, 2024
6 checks passed
@nicksnyder nicksnyder deleted the label-updated-by-user-id branch April 25, 2024 21:27
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