Skip to content

Add support for limits and partial operation to DeleteRelationships#61

Merged
josephschorr merged 1 commit intoauthzed:mainfrom
josephschorr:deletion-limits
May 9, 2023
Merged

Add support for limits and partial operation to DeleteRelationships#61
josephschorr merged 1 commit intoauthzed:mainfrom
josephschorr:deletion-limits

Conversation

@josephschorr
Copy link
Copy Markdown
Member

No description provided.

@josephschorr josephschorr force-pushed the deletion-limits branch 2 times, most recently from 2dcba2b to 180c4be Compare May 8, 2023 21:31
// deleted_at is the revision at which the relationships were deleted.
ZedToken deleted_at = 1;

// result is the result of the deletion.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Result is an enumeration of the possible outcomes that occurred when attempting to delete the specified relationships.

// RESULT_PARTIAL_MATCHING_DELETED indicates that a subset of the relationships matching the filter
// were deleted. Only returned if optional_allow_partial_deletions was true, an optional_limit was
// specified, and there existed more relationships matching the filter than optional_limit would allow.
DELETION_RESULT_PARTIAL_MATCHING_DELETED = 2;
Copy link
Copy Markdown
Member

@jzelinskie jzelinskie May 8, 2023

Choose a reason for hiding this comment

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

If I allow partial deletions am I supposed to spin in a loop until I finally get DELETION_RESULT_ALL_MATCHING_DELETED?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Pretty much

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

LGTM, left a question

vroldanbet
vroldanbet previously approved these changes May 9, 2023
vroldanbet
vroldanbet previously approved these changes May 9, 2023
@josephschorr josephschorr merged commit d7e27e8 into authzed:main May 9, 2023
@josephschorr josephschorr deleted the deletion-limits branch May 9, 2023 16:25
@github-actions github-actions bot locked and limited conversation to collaborators May 9, 2023
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.

3 participants