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

🧹 simplify policy list call #31

Merged
merged 1 commit into from
Sep 28, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions policy/policy.proto
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ message Policy {
QueryCounts query_counts = 42;
}

message Policies {
repeated Policy items = 1;
}

/*
ScoringSystem that determines how individual scores come together
*/
Expand Down Expand Up @@ -120,10 +124,6 @@ message QueryCounts {
int64 total_count = 3;
}

message Policies {
repeated Policy items = 1;
}

message Bundle {
string owner_mrn = 1;
repeated Policy policies = 2;
Expand Down Expand Up @@ -176,7 +176,6 @@ message MqueryRef {

// ********** Resolution / Execution **************


// Asset is a lean layer of information about an asset
message Asset {
string mrn = 1;
Expand Down Expand Up @@ -378,7 +377,7 @@ service Hub {
rpc GetPolicy(Mrn) returns (Policy) {}
rpc GetBundle(Mrn) returns (Bundle) {}
rpc GetPolicyFilters(Mrn) returns (Mqueries) {}
rpc List(PolicySearchFilter) returns (Policies) {}
rpc List(ListReq) returns (Policies) {}
rpc DefaultPolicies(DefaultPoliciesReq) returns (URLs) {}
}

Expand All @@ -393,7 +392,7 @@ message Mqueries {
repeated Mquery items = 1;
}

message PolicySearchFilter {
message ListReq {
string owner_mrn = 1;
string name = 2;
}
Expand Down