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 repeated operator resources shown in dashboard (#3574) #3968

Merged
merged 1 commit into from
Dec 16, 2021

Conversation

castelblanque
Copy link
Collaborator

Signed-off-by: Rafa Castelblanque rcastelblanq@vmware.com

Description of the change

Fix for operators resources showing repeated times (as many as namespaces existing in cluster) when listing installed items with "Show apps in all namespaces" marked in Dashboard.
Also added the label with namespace to cards.

Issue affects only the Dashboard/FE.

Benefits

Realistic view of what operators resources are installed on each namespace.

Possible drawbacks

N/A

Applicable issues

Additional information

Signed-off-by: Rafa Castelblanque <rcastelblanq@vmware.com>
Copy link
Contributor

@antgamdia antgamdia left a comment

Choose a reason for hiding this comment

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

Great! Thanks, also, for the explanation in #3574 (comment)

@@ -321,7 +321,7 @@ export function getResources(
try {
const csvResources = await Operators.listResources(
cluster,
namespace,
csv.metadata.namespace,
Copy link
Contributor

Choose a reason for hiding this comment

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

So this is why the namespace wasn't being set? Interesting

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Exactly, when having selected "all namespaces" in the switch button, namespace value would be "".

@castelblanque castelblanque merged commit 59076ef into master Dec 16, 2021
@castelblanque castelblanque deleted the 3574-dashboard-operators branch December 16, 2021 15:18
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.

Dashboard shows multiple application for single operator
2 participants