-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
NodeDestroyResource does not need a provider #23696
Conversation
The resource cleanup node does not need a provider. We can't directly remove the ProvidedBy method, but this node only needs to be eval-able so we can remove all the NodeAbstractResource methods at once.
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.
adding test coverage + deleting lines of code ❤️😍💕
The change in #23696 removed the NodeAbstractResource methods from the NodeDestroyResource type, in order to prevent other resource behaviors, like requesting a provider. While this node type is not directly referenced, it was implicitly ordered against the module cleanup by virtue of being a resource node. The ReferenceTransformer uses the GraphNodeReferenceable and GraphNodeSubPath interfaces to add nodes to the reference map, so we need to re-add the relevant methods. Since there's no good entry point to test this ordering at the moment, add static checks for the interfaces, and document where these interfaces are required.
The change in #23696 removed the NodeAbstractResource methods from the NodeDestroyResource type, in order to prevent other resource behaviors, like requesting a provider. While this node type is not directly referenced, it was implicitly ordered against the module cleanup by virtue of being a resource node. The ReferenceTransformer uses the GraphNodeReferenceable and GraphNodeSubPath interfaces to add nodes to the reference map, so we need to re-add the relevant methods. Since there's no good entry point to test this ordering at the moment,
The change in #23696 removed the NodeAbstractResource methods from the NodeDestroyResource type, in order to prevent other resource behaviors, like requesting a provider. While this node type is not directly referenced, it was implicitly ordered against the module cleanup by virtue of being a resource node. The ReferenceTransformer uses the GraphNodeReferenceable and GraphNodeSubPath interfaces to add nodes to the reference map, so we need to re-add the relevant methods. Since there's no good entry point to test this ordering at the moment,
The change in #23696 removed the NodeAbstractResource methods from the NodeDestroyResource type, in order to prevent other resource behaviors, like requesting a provider. While this node type is not directly referenced, it was implicitly ordered against the module cleanup by virtue of being a resource node. Since there's no good entry point to test this ordering at the moment,
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
The resource cleanup node does not need a provider. We can't directly
remove the ProvidedBy method, but this node only needs to be eval-able so
we can remove all the NodeAbstractResource methods at once.
Fixes #23671
Fixes #22758