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

Add datastore proxy for separating context #953

Merged
merged 2 commits into from
Oct 28, 2022

Conversation

jzelinskie
Copy link
Member

This removes the footguns for datastores that need to separate context before performing read-only actions.

Fixes the order that datastore is wrapped so that the observable proxy
also measures caching.
@jzelinskie jzelinskie requested a review from a team October 27, 2022 19:17
@github-actions github-actions bot added area/CLI Affects the command line area/datastore Affects the storage system area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools) labels Oct 27, 2022
@jzelinskie jzelinskie force-pushed the fix-observable branch 8 times, most recently from ca9d485 to dfd37e4 Compare October 27, 2022 20:34
Pulls the logic for seperating the read-only methods context for
datastores that benefit from a lack of canceling connections.
Copy link
Contributor

@vroldanbet vroldanbet left a comment

Choose a reason for hiding this comment

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

This is a nice improvement, thanks a ton! Left just some non-blocking nits, LGTM!

@jzelinskie jzelinskie merged commit a5fe30a into authzed:main Oct 28, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Oct 28, 2022
@jzelinskie jzelinskie deleted the fix-observable branch October 29, 2022 16:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/CLI Affects the command line area/datastore Affects the storage system area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants