-
Notifications
You must be signed in to change notification settings - Fork 257
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 cache option to config to expose ApolloGateway's queryPlanStore #2385
Add cache option to config to expose ApolloGateway's queryPlanStore #2385
Conversation
👷 Deploy request for apollo-federation-docs pending review.Visit the deploys page to approve it
|
🦋 Changeset detectedLatest commit: 3fd50cd The changes in this PR will be included in the next version bump. This PR includes changesets to release 7 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
e3ebbbb
to
4cf445d
Compare
Thanks again for opening this PR. We've put in on our review backlog, and will provide feedback shortly. |
f0650db
to
e61699c
Compare
Hey @AneethAnand, I think this is a reasonable change in concept. I have one major concern with the PR, and that's the use of Since we're going to be providing this as a configuration point for users, the interface should be more generic than "an My recommendation is this:
I'm happy to implement these changes if you'd prefer (just let me know you don't mind me pushing to your branch if so). |
@trevor-scheer Thanks for the review comment. I had interface in the first place but it dint have the clear method and I dint think of this option
.Also I believe the set method also was not compatible. I will give it a try and push my change again. |
HI @trevor-scheer I have incorporated your review comments and pushed a commit to my branch. |
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.
This is exactly what I had in mind, thanks for implementing those changes. Just a few minor comments and this will be good to go!
- Can you change the target branch to
next
instead ofmain
? - Can you run
npx changeset
and add aminor
entry which explains the new configuration option? This will end up in the gateway's changelog so please be descriptive for people who might be interested in using the new feature.
…o client. Provide queryPlanConfig.cache interface a wrapper on KeyValueCache with clear method
5bf44d7
to
ed5c6b4
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.
lgtm!
Thanks @AneethAnand! |
@trevor-scheer QQ, when will this change get published, so that it could be consumed by us? |
This change will land with v2.4.0 relatively soon, on the order of a couple weeks or so. In the meantime, you're welcome to use the build from your PR (look at the comment posted by the codesandbox bot). |
Fixes #2308
Fixes #1034