-
Notifications
You must be signed in to change notification settings - Fork 3
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: Update the logic for prefix variable. #269
Conversation
/run pipeline |
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.
@arya-girish-k - I’ve added some comments —please take a look.
Also, have you tried running tests with prefix values set to both null
and ""
?
If not, I recommend doing so to ensure the logic handles these cases correctly. You can attach the test results for reference.
Modified the logic and description as per the review comments.Retriggering the pipeline . |
/run pipeline |
@imprateeksh -Tried running
if prefix as "",the output will be:
When an empty string is provided, all the variables using prefix starts with a hyphen. However, for cos_bucket_name the root module is checking the pattern |
/run pipeline |
I think this needs to be checked again. When And this might fail the |
/run pipeline |
Modified the local.prefix variable to handle the null and empty values .Reverted the changes for the variable cos_bucket_name. |
Please find the test references for |
/run pipeline |
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.
Looks good. Approved.
🎉 This PR is included in version 1.18.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Description
Refactored the code logic for prefix variable by adding default value for prefix and marked as required in catalog manifest.Also allowed prefix to be
""
(empty string) for advanced users.#11959
Release required?
x.x.X
)x.X.x
)X.x.x
)Release notes content
Add the default value for prefix variable and mark as required in catalog manifest. Also allowed prefix to be
""
(empty string ).Run the pipeline
If the CI pipeline doesn't run when you create the PR, the PR requires a user with GitHub collaborators access to run the pipeline.
Run the CI pipeline when the PR is ready for review and you expect tests to pass. Add a comment to the PR with the following text:
Checklist for reviewers
For mergers