-
Notifications
You must be signed in to change notification settings - Fork 275
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
Removed deprecated methods for [email protected] #6646
base: dev
Are you sure you want to change the base?
Conversation
* remove services::router::Response's `.map()` function * remove router::event::schema::SchemaSource::File's `delay` field * remove router::event::configuration::Configuration::File's `delay` field * remove context::extensions::sync::ExtensionMutex 's `.lock()` function
This comment has been minimized.
This comment has been minimized.
CI performance tests
|
✅ Docs preview readyThe preview is ready to be viewed. View the preview File Changes 0 new, 1 changed, 0 removed
Build ID: ed7c6f4af64579ce2edbc186 URL: https://www.apollographql.com/docs/deploy-preview/ed7c6f4af64579ce2edbc186 |
This is a less of a problem now that `.lock() -> ExtensionsGuard` is removed and only `.with_lock(impl FnOnce(ExtensionsGuard))` remains: the latter cannot keep the guard alive across `.await` This check was flaky on CI when CPUs are busy with lots of tests running in parallel.
Its only purpose left was to deref, so pass that reference directly instead
removes two unsupported methods in `PluginInit` interface: * `unsupported_supergraph_schema` * `unsupported_subgraph_schema`
…cument Removes `unsupported_executable_document` from public implementation of `Context` and replaces it with an internal `pub(crate) executable_document`
…hql/router into lrlna/2.0-deprecation
The following deprecated metrics have been removed: * apollo_router_deduplicated_subscriptions_total * apollo_authentication_failure_count * apollo_authentication_success_count * apollo_require_authentication_failure_count
The following initialisation functions have been removed: * PluginInit::new() * PluginInit::try_new()
pub fn unsupported_executable_document(&self) -> Option<Arc<Valid<ExecutableDocument>>> { | ||
/// Read only access to the executable document for internal router plugins. | ||
pub(crate) fn executable_document(&self) -> Option<Arc<Valid<ExecutableDocument>>> { |
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.
As talked about during the huddle this morning, this was changed to a pub(crate) to let us continue using this for router's own demand control plugin.
u64_counter!( | ||
"apollo_authentication_failure_count", | ||
"Number of requests with failed JWT authentication (deprecated)", | ||
1, | ||
kind = "JWT" | ||
); |
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.
I removed several of these metrics that had deprecated
notes. Let me know if this shouldn't happen.
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.
I think you may have done: https://apollographql.atlassian.net/browse/ROUTER-297 as well (although, I'm not totally sure).
Thanks for the diligent cleanup. Nice to see so much code being deleted...
ooops didn't know there was a separate ticket for deprecated metrics. i don't know if i did actually remove the entire tracing macro system. @goto-bus-stop you are assigned to ROUTER-297, was there anything else that needed to be removed? should i just pause here and let you figure what needed to be done for that metrics layer clean up? |
It's the PluginInit::new() method that no longer exists.
The following deprecated fields are being removed:
services::router::Response::map()
router::event::schema::SchemaSource::File.delay
fieldrouter::event::configuration::Configuration::File.delay
fieldcontext::extensions::sync::ExtensionMutex::lock()
test_harness::TestHarness::build()
PluginInit::new()
PluginInit::try_new()
The following unsupported fields are being removed. Since they are "unsupported", I omitted them from the changeset and upgrade docs.
axum_factory::unsupported_set_axum_router_callback
PluginInit::unsupported_supergraph_schema
PluginInit::unsupported_subgraph_schema
Context::unsupported_executable_document
The following deprecated metrics are being removed:
apollo_require_authentication_failure_count
apollo_authentication_failure_count
apollo_authentication_success_count
apollo_router_deduplicated_subscriptions_total
Additionally, the callback of context::extensions::sync::ExtensionMutex 's
.with_lock()
function now receives&mut Extensions
instead of a guard that dereferences to it. This makes amut
binding no longer necessary for the callback argument.