-
Notifications
You must be signed in to change notification settings - Fork 11.2k
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
[GraphQL] Add a new multiGetObjects
query on Query
.
#20300
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
3 Skipped Deployments
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Requesting changes for the query limit checker stuff mainly!
47bb848
to
7609b6b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just the changes and tests related to query limits checker left, everything else is looking good here!
7609b6b
to
0dfcc3a
Compare
508e38a
to
cf236c2
Compare
cf236c2
to
b8d9fb0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Can you also add some E2E tests for the happy path (not hitting the limit) before landing?
crates/sui-mvr-graphql-rpc/src/extensions/query_limits_checker.rs
Outdated
Show resolved
Hide resolved
b8d9fb0
to
389901e
Compare
Description
This PR adds a new query for fetching multiple objects by their ids and versions.
Test plan
Added two new tests to check that the limits work as expected.
test_multi_get_objects_query_limits_pass
test_multi_get_objects_query_limits_exceeded
Release notes
Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.
For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.
multiGetObjects
top level query, which replaces theobjectFilter
inobjects
.