Skip to content

Commit

Permalink
Add filtering options ListRequestUsers
Browse files Browse the repository at this point in the history
Adds two new filtering options for ListRequestUsers:
- has_types: only return users of types.
- has_states: only return users of states.
  • Loading branch information
emcfarlane committed Nov 30, 2023
1 parent 371f64e commit 3dba04b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 4 additions & 4 deletions buf/registry/module/v1beta1/commit_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,12 @@ message ListCommitHistoryRequest {
// - If a Digest is referenced, history is started at the latest released Commit that has this Digest.
// Digests referencing unreleased Commits cannot be referenced.
ResourceRef resource_ref = 3 [(buf.validate.field).required = true];
// Whether to sort the Commits in descending order.
bool sort_desc = 4;
// Only return Commits that have one or more associated Tags.
bool has_tag = 4;
bool has_tag = 5;
// Only return Commits that have one or more associated VCSCommits.
bool has_vcs_commit = 5;
// Whether to sory the Commits in descending order.
bool sort_desc = 6;
bool has_vcs_commit = 6;
}

message ListCommitHistoryResponse {
Expand Down
4 changes: 4 additions & 0 deletions buf/registry/owner/v1beta1/user_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ message ListUsersRequest {
repeated OrganizationRef organization_refs = 3;
// Whether to sort the Users in descending order.
bool sort_desc = 4;
// Only return Users of these types.
repeated UserType has_types = 5 [(buf.validate.field).enum.defined_only = true];
// Only return Users of these states.
repeated UserState has_states = 6 [(buf.validate.field).enum.defined_only = true];
}

message ListUsersResponse {
Expand Down

0 comments on commit 3dba04b

Please sign in to comment.