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(ui): Fix multi-app refresh and sync in the UI #10421
Conversation
Signed-off-by: jannfis <jann@mistrust.net>
Codecov Report
@@ Coverage Diff @@
## master #10421 +/- ##
=======================================
Coverage 45.78% 45.78%
=======================================
Files 233 233
Lines 28383 28383
=======================================
Hits 12995 12995
Misses 13614 13614
Partials 1774 1774 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
@jannfis looks like this is missing the namespace, Does this need to fix as well? argo-cd/ui/src/app/applications/components/application-node-info/application-node-info.tsx Line 123 in 82746b6
|
Good catch, @ashutosh16. I think there may be even more places throughout the UI's code where this is missing. I'm trying to play catch 'em all, but unfortunately, the UI linter is not very helpful so I need to go full manual :\ Happy for suggestions. |
Signed-off-by: jannfis <jann@mistrust.net>
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.
One small comment, otherwise LGTM
@@ -120,7 +120,9 @@ export const ApplicationNodeInfo = (props: { | |||
<YamlEditor | |||
input={live} | |||
hideModeButtons={!live} | |||
onSave={(patch, patchType) => services.applications.patchResource(props.application.metadata.name, props.node, patch, patchType)} | |||
onSave={(patch, patchType) => | |||
services.applications.patchResource(props.application.metadata.name, props.application.metadata.name, props.node, patch, patchType) |
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.
Should second argument to this fxn call be props.application.metadata.namespace
?
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.
Good catch! Fixed.
Signed-off-by: jannfis <jann@mistrust.net>
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.
LGTM!
I missed this in the Applications in any namespaces PR.
Signed-off-by: jannfis jann@mistrust.net
Note on DCO:
If the DCO action in the integration test fails, one or more of your commits are not signed off. Please click on the Details link next to the DCO action for instructions on how to resolve this.
Checklist: