Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Fixes #7753: Fix regression in
run-operation
to not require the name of the package to run #7811Fixes #7753: Fix regression in
run-operation
to not require the name of the package to run #7811Changes from 4 commits
453cada
63f1d23
af002b9
6ed3c22
a9b92f8
7be72e1
97ee0b7
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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 section could be refactored as following to avoid the #type: ignore workarounds and make it more clear what's happening with the
macro.unique_id
access. Catching the error on theNone
value of the returned macro feels like an indirect way of checking whether the macro was found or not.Additionally, we could avoid making a breaking change to the
RunResult
unique id (fromoperation.
tomacro.
) if we use the attributes on the resolved macro: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.
FWIW - I believe this is new in v1.6 (#7655), so it's not a breaking change for existing functionality in prior versions. Whether this node is better considered a
macro
or anoperation
is a fair question. IIRC, we use theoperation
node type foron-run-*
hooks ("project-level" hooks). Whereas the resource run byrun-operation
is really just amacro
... but of course, the command is namedrun-operation
.