-
Notifications
You must be signed in to change notification settings - Fork 6.8k
fix(ui): Parameters tab should correctly show dry source parameters #26179
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
base: master
Are you sure you want to change the base?
fix(ui): Parameters tab should correctly show dry source parameters #26179
Conversation
Signed-off-by: Jonathan Winters <[email protected]>
Signed-off-by: Jonathan Winters <[email protected]>
Signed-off-by: Jonathan Winters <[email protected]>
Signed-off-by: Jonathan Winters <[email protected]>
Signed-off-by: Jonathan Winters <[email protected]>
Signed-off-by: Jonathan Winters <[email protected]>
Signed-off-by: Jonathan Winters <[email protected]>
Signed-off-by: Jonathan Winters <[email protected]>
❗ Preview Environment deployment failed on BunnyshellSee: Environment Details | Pipeline Logs Available commands (reply to this comment):
|
| func (spec *ApplicationSpec) GetSources() ApplicationSources { | ||
| if spec.SourceHydrator != nil { | ||
| return ApplicationSources{spec.SourceHydrator.GetSyncSource()} | ||
| return ApplicationSources{spec.SourceHydrator.GetDrySource(), spec.SourceHydrator.GetSyncSource()} |
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 drastically change the behaviour of the function. Usually, having multiple sources returned means it is a multi-source apps. In this case, we have a single source app, and a dry-source that only applies to the hydrator. Changing this function means you should validate the behaviour of every caller, and I think it is called a lot in the codebase.
Perhaps creating a new function to return all the source for the hydrator would have a smaller blast radius.
followup for #26152.
GetSourcesto also allow the dry sourcegetAppDetailsfrom the frontendnote: this PR is built on top of #26152, so that PR's changes are also in here.
Checklist: