-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
feat: Add link to get the list of applications of a cluster/project #21561
base: master
Are you sure you want to change the base?
Conversation
🔴 Preview Environment stopped on BunnyshellSee: Environment Details | Pipeline Logs Available commands (reply to this comment):
|
2f911b5
to
e35b614
Compare
…r summary page and applications link in project summary page Signed-off-by: Almo Elda <[email protected]>
Signed-off-by: Almo Elda <[email protected]>
968b057
to
6e801c5
Compare
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.
Thanks for the PR!
Could you attach a screenshot?
Sure. @reggie-k |
apps.items.filter(app => app.spec.destination.name === cluster.name || app.spec.destination.server === cluster.server) | ||
.length |
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.
Thanks for the PR! It looks great in the UI!
Why do we have to filter the results here?
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.
Please correct me if I am wrong, I believe that the query options does not provide any way to filter by cluster, by taking a look at this https://github.com/argoproj/argo-cd/blob/master/pkg/apiclient/application/application.pb.go#L44-L64 I learned from this file which is filtering apps with the filter function as well https://github.com/argoproj/argo-cd/blob/master/ui/src/app/applications/components/application-details/application-details-app-dropdown.tsx#L38-L43
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, I wonder whether we can filter inside list
in ApplicationService
instead?
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.
Do you mean altering the QueryOptions or adding another callback to filter?
Closes #21454
Checklist: