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

Follow up changes for recent fixes: remove len downcasts and ensure all other downcasts are validated #1780

Merged
merged 3 commits into from
Mar 6, 2024

Conversation

josephschorr
Copy link
Member

No description provided.

@github-actions github-actions bot added area/api v1 Affects the v1 API area/datastore Affects the storage system area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools) labels Mar 1, 2024
@josephschorr josephschorr marked this pull request as ready for review March 1, 2024 23:11
@josephschorr josephschorr requested a review from a team as a code owner March 1, 2024 23:11
)
}

// NewExceedsMaximumChecksErr creates a new error representing that too many updates were given to a WriteRelationships call.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// NewExceedsMaximumChecksErr creates a new error representing that too many updates were given to a WriteRelationships call.
// NewExceedsMaximumChecksErr creates a new error representing that too many updates were given to a CheckPermission call.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed

@@ -409,14 +410,25 @@ func (es *experimentalServer) BulkExportRelationships(
return nil
}

const maxBulkCheckCount = 10000
Copy link
Contributor

Choose a reason for hiding this comment

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

Was this meant to be 1K?

Copy link
Member Author

Choose a reason for hiding this comment

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

No; since we didn't previously have a limit at all, I figured we'd set a super high limit for now and then lower it when BulkCheck is moved out of experimental

@josephschorr josephschorr added this pull request to the merge queue Mar 6, 2024
Merged via the queue into authzed:main with commit 084e157 Mar 6, 2024
20 checks passed
@josephschorr josephschorr deleted the remove-len-downcasts branch March 6, 2024 16:44
@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/api v1 Affects the v1 API 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