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(ui): Fix multi-app refresh and sync in the UI #10421

Merged
merged 3 commits into from Aug 23, 2022

Conversation

jannfis
Copy link
Member

@jannfis jannfis commented Aug 22, 2022

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:

  • Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this does not need to be in the release notes.
  • The title of the PR states what changed and the related issues number (used for the release note).
  • I've included "Closes [ISSUE #]" or "Fixes [ISSUE #]" in the description to automatically close the associated issue.
  • I've updated both the CLI and UI to expose my feature, or I plan to submit a second PR with them.
  • Does this PR require documentation updates?
  • I've updated documentation as required by this PR.
  • Optional. My organization is added to USERS.md.
  • I have signed off all my commits as required by DCO
  • I have written unit and/or e2e tests for my change. PRs without these are unlikely to be merged.
  • My build is green (troubleshooting builds).

Signed-off-by: jannfis <jann@mistrust.net>
@jannfis jannfis requested review from alexmt and rbreeze August 22, 2022 13:41
@codecov
Copy link

codecov bot commented Aug 22, 2022

Codecov Report

Merging #10421 (bbac1cf) into master (506bd3b) will not change coverage.
The diff coverage is n/a.

@@           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 jannfis added this to the v2.5 milestone Aug 22, 2022
@ashutosh16
Copy link
Contributor

@jannfis looks like this is missing the namespace, Does this need to fix as well?

onSave={(patch, patchType) => services.applications.patchResource(props.application.metadata.name, props.node, patch, patchType)}

@jannfis
Copy link
Member Author

jannfis commented Aug 22, 2022

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>
Copy link
Member

@rbreeze rbreeze left a 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)
Copy link
Member

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?

Copy link
Member Author

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>
Copy link
Member

@rbreeze rbreeze left a comment

Choose a reason for hiding this comment

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

LGTM!

@leoluz leoluz merged commit 7d6077d into argoproj:master Aug 23, 2022
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.

None yet

4 participants