Skip to content

Add support to Watch all object types #13

Merged
josephschorr merged 1 commit intoauthzed:mainfrom
jonwhitty:main
Nov 8, 2021
Merged

Add support to Watch all object types #13
josephschorr merged 1 commit intoauthzed:mainfrom
jonwhitty:main

Conversation

@jonwhitty
Copy link
Copy Markdown
Contributor

@jonwhitty jonwhitty commented Nov 6, 2021

The changes herein add support to the v1.WatchService.Watch API that allows for a client to watch for changes optionally filtered by one or more object types. If the optional_object_types field is not specified by the client then the intention is to start a watch over all object types.

These changes are to support the work that in underway in authzed/spicedb#255 and authzed/spicedb#263 and as proposed in the new LookupWatch API that is under active discussion and development in authzed/spicedb#207.

I recognize these changes are breaking, so I'm open to alternatives, but seeing as there is not yet a v1.WatchService.Watch API implementation (it is under active PR as referenced above) I don't these these breaking changes are impacting clients. Thoughts or alternative suggestions are welcomed 👍

In particular I would like @josephschorr to take a look over these changes and give me any feedback he may have.

@jonwhitty jonwhitty changed the title Add support to Watch all object types filtered by operation Add support to Watch all object types Nov 8, 2021
Copy link
Copy Markdown
Member

@josephschorr josephschorr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@josephschorr josephschorr merged commit d3ee776 into authzed:main Nov 8, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Nov 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants