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

refactor: rename action to actions in template context #4194

Merged
merged 9 commits into from
May 9, 2023

Conversation

vvagaytsev
Copy link
Collaborator

@vvagaytsev vvagaytsev commented May 8, 2023

What this PR does / why we need it:
See individual commits for details.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:
The action-types.hbs template
has already had actions key in the template strings.

@vvagaytsev vvagaytsev mentioned this pull request May 8, 2023
17 tasks
@vvagaytsev vvagaytsev force-pushed the 0.13-template-context-rename-action-to-actions branch from dd22144 to 35e2ed6 Compare May 8, 2023 14:11
@vvagaytsev vvagaytsev force-pushed the 0.13-template-context-rename-action-to-actions branch from 35e2ed6 to ba9876a Compare May 8, 2023 14:29
@vvagaytsev vvagaytsev marked this pull request as ready for review May 8, 2023 15:09
@vvagaytsev
Copy link
Collaborator Author

This is ready for review now. All tests are green!
The changes are pretty straightforward :)

@vvagaytsev vvagaytsev changed the title 0.13 template context rename action to actions refactor: rename action to actions in template context May 8, 2023
const { action, garden, partialRuntimeResolution, variables, inputs, resolvedDependencies, executedDependencies } =
params
const {
action,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just double checking: we're intentionally passing in a singular action here to the constructor?

Copy link
Collaborator Author

@vvagaytsev vvagaytsev May 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think so. The assignment looks like this:

this.actions = new ActionReferencesContext(this, partialRuntimeResolution, [
      ...resolvedDependencies,
      ...executedDependencies,
    ])

The action is not used directly there. And the original TODO comment was about changing the template context syntax for better clarity.

@vvagaytsev vvagaytsev requested a review from Walther May 9, 2023 10:42
Copy link
Contributor

@Orzelius Orzelius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

Copy link
Collaborator

@edvald edvald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@vvagaytsev vvagaytsev merged commit 2282338 into 0.13 May 9, 2023
@vvagaytsev vvagaytsev deleted the 0.13-template-context-rename-action-to-actions branch May 9, 2023 12:32
This was referenced May 11, 2023
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.

4 participants