-
Notifications
You must be signed in to change notification settings - Fork 148
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
Ensure unique ID for dynamic variable replacement. #1866
Conversation
This pull request does not have a backport label. Could you fix it @blakerouse? 🙏
NOTE: |
SonarCloud Quality Gate failed. 0 Bugs No Coverage information |
🌐 Coverage report
|
* Ensure unique ID for dynamic variable replacement. * Add changelog. (cherry picked from commit c3f216c)
The changes here themselves look good, but I don't see any new tests added. Did the existing tests reproduce this problem with the additional ID field? How did we verify this? Do we need to follow up and add a regression test for this? |
* Ensure unique ID for dynamic variable replacement. * Add changelog. (cherry picked from commit c3f216c) Co-authored-by: Blake Rouse <[email protected]>
@cmacknz The existing tests where modified to cover it. So it's fully covered and if a regression happens the tests would catch it. |
What does this PR do?
This updates the ID of an input to concat the current ID with the unique ID of the variable context from the dynamic provided that provided the replacement.
The original ID is moved to
original_id
and the new id is placed on the input.Why is it important?
Ensures that when a variable substitution is performed for an input definition duplicate of that input results in a unique ID for that newly defined input.
Checklist
[ ] I have made corresponding changes to the documentation[ ] I have made corresponding change to the default configuration filesCHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Related issues