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

fix: delete options not being passed #1784

Merged
merged 3 commits into from
Mar 6, 2024

Conversation

ryaneorth
Copy link
Contributor

The ...options.DeleteOptionsOption are not being passed to the readwrite transaction through observable so delete limits are not honored

@ryaneorth ryaneorth requested a review from a team as a code owner March 6, 2024 16:56
@github-actions github-actions bot added the area/datastore Affects the storage system label Mar 6, 2024
Copy link

github-actions bot commented Mar 6, 2024

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@ryaneorth ryaneorth force-pushed the fix-observable-delete-options branch from 0e59ba3 to 640f054 Compare March 6, 2024 16:57
@ryaneorth
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA

@ryaneorth
Copy link
Contributor Author

/recheck

@ryaneorth
Copy link
Contributor Author

recheck

@josephschorr
Copy link
Member

@ryaneorth Please add a test for this case

@ryaneorth ryaneorth force-pushed the fix-observable-delete-options branch from 640f054 to c152814 Compare March 6, 2024 17:02
@ryaneorth
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA

@ryaneorth
Copy link
Contributor Author

recheck

@github-actions github-actions bot added the area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools) label Mar 6, 2024

type observableTest struct{}

func (obs observableTest) New(revisionQuantization, _, gcWindow time.Duration, watchBufferLength uint16) (datastore.Datastore, error) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Adding this makes it so we test all of the Datastore tests with the Observable proxy, and more specifically the DeleteWithLimitTest which verifies the fix in this PR

@ryaneorth
Copy link
Contributor Author

@josephschorr - added tests

Copy link
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

Thanks for the change!

@josephschorr josephschorr added this pull request to the merge queue Mar 6, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 6, 2024
@josephschorr josephschorr added this pull request to the merge queue Mar 6, 2024
Merged via the queue into authzed:main with commit 3edd2f6 Mar 6, 2024
20 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Mar 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
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