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

fix(template): use stricter context for disabled flag resolution #6295

Merged
merged 1 commit into from
Jul 17, 2024

Conversation

vvagaytsev
Copy link
Collaborator

What this PR does / why we need it:

Do not allow this.* context for disabled field, just to avoid unnecessary complexity in passing action mode to the scanAndAddConfigs().

Now an error is thrown if disabled: flag has a reference to ${this.mode}.

Which issue(s) this PR fixes:

Fixes the incorrectly defined action mode introduced in #6293.

Special notes for your reviewer:

We can support ${this.*} context as a separate feature PR if necessary.

Do not allow `this.*` context for `disabled` field.
To avoid unnecessary complexity in passing action mode to the `scanAndAddConfigs()`.
@vvagaytsev vvagaytsev requested a review from stefreak July 17, 2024 09:26
@vvagaytsev vvagaytsev enabled auto-merge July 17, 2024 09:26
@vvagaytsev vvagaytsev requested a review from 10ko July 17, 2024 10:36
Copy link
Member

@stefreak stefreak left a comment

Choose a reason for hiding this comment

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

👍 Nice, that is safer!

@vvagaytsev vvagaytsev added this pull request to the merge queue Jul 17, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 17, 2024
@vvagaytsev vvagaytsev added this pull request to the merge queue Jul 17, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 17, 2024
@vvagaytsev vvagaytsev added this pull request to the merge queue Jul 17, 2024
Merged via the queue into main with commit e8e0b86 Jul 17, 2024
40 checks passed
@vvagaytsev vvagaytsev deleted the fix/proper-context-for-disaled-flag-resolution branch July 17, 2024 13:45
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.

2 participants