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

add list of subgraphs/sources to context #6215

Merged
merged 7 commits into from
Nov 4, 2024

Conversation

lennyburdette
Copy link
Contributor

this allows quickly understanding which connector sources are used in a query plan. you can then use a coprocessor to fetch auth tokens, add them to the context, and use them with headers: [{ name: "Authorization", value: "Bearer {$context.token}" }]


Checklist

Complete the checklist (and note appropriate exceptions) before the PR is marked ready-for-review.

  • Changes are compatible1
  • Documentation2 completed
  • Performance impact assessed and acceptable
  • Tests added and passing3
    • Unit Tests
    • Integration Tests
    • Manual Tests

Exceptions

Note any exceptions here

Notes

Footnotes

  1. It may be appropriate to bring upcoming changes to the attention of other (impacted) groups. Please endeavour to do this before seeking PR approval. The mechanism for doing this will vary considerably, so use your judgement as to how and when to do this.

  2. Configuration is an important part of many changes. Where applicable please try to document configuration examples.

  3. Tick whichever testing boxes are applicable. If you are adding Manual Tests, please document the manual testing (extensively) in the Exceptions.

@lennyburdette lennyburdette requested review from nicholascioli and a team as code owners October 31, 2024 16:58
@svc-apollo-docs
Copy link
Collaborator

svc-apollo-docs commented Oct 31, 2024

✅ Docs Preview Ready

No new or changed pages found.

apollo-router/src/plugins/connectors/plugin.rs Outdated Show resolved Hide resolved
apollo-router/src/query_planner/plan.rs Outdated Show resolved Hide resolved
@lennyburdette lennyburdette force-pushed the lb/next/connector-sources-context branch from 6782a16 to 6c06def Compare November 4, 2024 15:51
@lennyburdette lennyburdette requested a review from a team as a code owner November 4, 2024 15:51
this allows quickly understanding which connector sources are used in a query plan. you can then use a coprocessor to fetch auth tokens, add them to the context, and use them with `headers: [{ name: "Authorization", value: "Bearer {$context.token}" }]`
@lennyburdette lennyburdette force-pushed the lb/next/connector-sources-context branch from 6c06def to af90d5b Compare November 4, 2024 15:57
also introduces a new recursion-less function for getting services names out of plans
@lennyburdette lennyburdette merged commit 7ae593d into next Nov 4, 2024
13 checks passed
@lennyburdette lennyburdette deleted the lb/next/connector-sources-context branch November 4, 2024 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants