-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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: Add namespace to sub-application link URLs (#11945) #11946
fix: Add namespace to sub-application link URLs (#11945) #11946
Conversation
fixes argoproj#11945 - ui: Add namespace to sub-application links in list and tree view - Add Patreon to USERS.md Signed-off-by: Ian Delahorne <ian@patreon.com>
👋 I'm new to submitting PRs to ArgoCD, and also not a frontend expert. This will add the namespace to the external link for all sub-applications, not just those in non-argocd namespaces. |
Codecov ReportBase: 47.38% // Head: 47.38% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## master #11946 +/- ##
=======================================
Coverage 47.38% 47.38%
=======================================
Files 245 245
Lines 41670 41670
=======================================
Hits 19745 19745
Misses 19937 19937
Partials 1988 1988 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
@iandelahorne Thanks for submitting the PR, would you be able to provide the screenshot of the UI changes? |
Thanks for the PR @iandelahorne! Have you confirmed that the change works fine for apps-of-apps when apps-in-any-namespace is disabled? |
@ashutosh16 Sure, I added screenshots to the description @crenshaw-dev It does indeed work well for app-of-apps when apps-in-any-namespace is disabled, I verified this on my test cluster and added a screenshot. |
This fixes #11518 |
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.
I see we also have appQualifiedName
in utils.tsx
, but that function seems to be for display purpose.
I cannot find other place where we generate the applications/
url.
I confirm the url WITH namespace also works when multiple namespaces are not enabled.
Thanks for the review @alexef! I'm not familiar with the devleopment flow - do I need to ping someone on slack or attend a contributor's meeting for this to get reviewed and merged? |
@iandelahorne no need, we're just a little behind on reviews. Folks keep contributing things. 🙂 |
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
Why it wasn't cherry-pick'ed to v2.5.8 but #12115 was? :( |
@mikeeq I think the other cherry-pick was actually in error. We had a code freeze for the CVE patch. I'll cherry-pick this so it goes out with 2.5.9. |
Signed-off-by: Ian Delahorne <ian@patreon.com> Co-authored-by: Remington Breeze <remington@breeze.software>
Signed-off-by: Ian Delahorne <ian@patreon.com> Co-authored-by: Remington Breeze <remington@breeze.software>
Cherry-picked onto release-2.5 for 2.5.9 and release-2.6 for 2.6.0-rc6. |
Signed-off-by: Ian Delahorne <ian@patreon.com> Co-authored-by: Remington Breeze <remington@breeze.software> Signed-off-by: emirot <emirot.nolan@gmail.com>
Signed-off-by: Ian Delahorne <ian@patreon.com> Co-authored-by: Remington Breeze <remington@breeze.software> Signed-off-by: schakrad <chakradari.sindhu@gmail.com>
Fixes #11518 and #11945
Screenshots:
Tree view with sub-applications in other namespaces
List view with sub-applications in other namespaces
With "apps in other namespaces" disabled, and using argocd-example-apps/apps from HEAD, this is the behavior - the links work as before, but now the namespace (
argocd
) is included before the application name.Tree view with sub-applications, "Apps in other namespaces" disabled
Signed-off-by: Ian Delahorne ian@patreon.com
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: