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

Move apollo plugins to top level #623

Merged
merged 8 commits into from
Mar 15, 2022
Merged

Conversation

BrynCooke
Copy link
Contributor

@BrynCooke BrynCooke commented Mar 14, 2022

Any plugins that are prefixed with apollo. are pushed to the top level of configuration.

This means that whereas we previously had:

plugins:
 apollo.headers:
  - propagate: ....

It now looks like:

headers:
  - propagate: ...

The reason for this is that it gives the user a clearer idea of what is core to the router and what is an external plugin.

We'll follow this up with a PR to update the name of reporting plugin and then take a general sweep to update all the docs.

bryn added 4 commits March 14, 2022 16:11
… with the json schema.

Previously if two config structs had the same name they would be resolved to the same definition.
GREsau/schemars#62
Now we have `apollo_plugins` and `user_plugins`
Reporting comes first, rhai comes last.
@github-actions

This comment has been minimized.

We can't enable the reporting plugin for unit testing, so check to see if the global subscriber is set before adding it.
@BrynCooke BrynCooke force-pushed the bryn/apollo-plugins-to-top-level branch from f3eafa7 to ac2c142 Compare March 14, 2022 16:23
@BrynCooke BrynCooke requested a review from garypen March 14, 2022 17:59
@BrynCooke
Copy link
Contributor Author

Perf test please

1 similar comment
@BrynCooke
Copy link
Contributor Author

Perf test please

@BrynCooke BrynCooke merged commit 30add8c into main Mar 15, 2022
@BrynCooke BrynCooke deleted the bryn/apollo-plugins-to-top-level branch March 15, 2022 08:44
@abernix abernix linked an issue Mar 15, 2022 that may be closed by this pull request
@abernix abernix mentioned this pull request Mar 16, 2022
@abernix abernix added this to the v0.1.0-alpha.9 milestone Mar 16, 2022
@BrynCooke BrynCooke self-assigned this Mar 25, 2022
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.

Default plugins provided by the router
3 participants