Skip to content

Commit

Permalink
Initial lookup (subjects) endpoint. (#72)
Browse files Browse the repository at this point in the history
* Initial lookup (subjects) endpoint.

* Streaming subjects working over gRPC

* Added limits and continuation tokens

* PR feedback

* Added some tests

* Add WaitForQuantizationInterval after writing test relationships to fix flaky tests

* Refactor read relationships for streaming rpc.

* Remove extraneous comment

* Remove unused has_more response parameter

* Adjusted LookupService to align with API concepts

* PR feedback/proto adjustments

* Exclude wildcard subjects until the API has handling for this

* Reordered lookup subjects parameters to be resource relation subject

---------

Co-authored-by: Mark McLaughlin <[email protected]>
  • Loading branch information
wscalf and merlante authored Jun 4, 2024
1 parent 4e08f39 commit 6ec3e68
Show file tree
Hide file tree
Showing 26 changed files with 1,507 additions and 293 deletions.
12 changes: 6 additions & 6 deletions api/health/v1/health.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions api/relations/v0/check.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

203 changes: 172 additions & 31 deletions api/relations/v0/common.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions api/relations/v0/common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@ message SubjectReference {
ObjectReference subject = 2;
}

message RequestPagination {
uint32 limit = 1;
optional string continuation_token = 2;
}

message ResponsePagination {
string continuation_token = 1;
}

message ObjectReference {
ObjectType type = 1;
string id = 2;
Expand Down
Loading

0 comments on commit 6ec3e68

Please sign in to comment.