Skip to content

Commit

Permalink
feat: create change filters definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
getinnocuous committed Oct 28, 2024
1 parent 6eccb37 commit 0c750c9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
11 changes: 11 additions & 0 deletions changes.proto
Original file line number Diff line number Diff line change
Expand Up @@ -266,11 +266,22 @@ message GetAppSummariesResponse {

message ListHomeChangesRequest {
PaginationRequest pagination = 1;
ChangeFilters filters = 2;
}

message ChangeFilters {
repeated string tags = 1;
repeated string repos = 2;
repeated Risk.Severity risks = 3;
repeated string authors = 4;
repeated ChangeStatus statuses = 5;
SortOrder sortOrder = 6;
}

message ListHomeChangesResponse {
repeated ChangeSummary changes = 1;
PaginationResponse pagination = 2;
ChangeFilters filters = 3;
}

message ListHomeAppsRequest {}
Expand Down
7 changes: 7 additions & 0 deletions util.proto
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,11 @@ message PaginationResponse {
// The total number of pages available. based on the totalItems and pageSize.
// If there are no results this will be zero.
int32 totalPages = 4;
}

enum SortOrder {
ALPHABETICAL_ASCENDING = 0; // A-Z
ALPHABETICAL_DESCENDING = 1; // Z-A
DATE_ASCENDING = 2; // Oldest first
DATE_DESCENDING = 3; // Newest first
}

0 comments on commit 0c750c9

Please sign in to comment.