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 to show CRW icon when CRW operator is installed #7895

Merged
merged 1 commit into from Jan 22, 2021

Conversation

divyanshiGupta
Copy link
Contributor

@divyanshiGupta divyanshiGupta commented Jan 21, 2021

Fixes: https://issues.redhat.com/browse/ODC-4939

Analysis/Root cause:
CHE icon is shown instead of CRW icon even when CRW operator is installed because a static CHE icon was being returned in both the cases.

Solution:
Use ConsoleLink CR to get the correct icon.

Screenshot:
Screenshot from 2021-01-21 20-56-43

Unit test Coverage:
image

PR test setup:
Install CRW operator.
Go to CRW operator details page and create CRW cluster.
After all the pods are running check if the ConsoleLink CR has been created.
Once the CR is created, you should be able to see the icon.

/kind bug

@openshift-ci-robot openshift-ci-robot added kind/bug Categorizes issue or PR as related to a bug. component/dev-console Related to dev-console labels Jan 21, 2021
@divyanshiGupta divyanshiGupta changed the title show correct edit source code icon Fix to show CRW icon when CRW operator is installed Jan 21, 2021
@divyanshiGupta
Copy link
Contributor Author

/assign @rohitkrai03

Copy link
Contributor

@rohitkrai03 rohitkrai03 left a comment

Choose a reason for hiding this comment

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

/approve

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 22, 2021
Copy link
Member

@jerolimov jerolimov left a comment

Choose a reason for hiding this comment

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

Tested this on a cluster 4.7.0-0.nightly-2021-01-21-215614 with CodeReady Workspaces 2.5.1.

Needed to accept an insecure https connection to see the icon which is a test-cluster issue. Everything else works as expected and code looks also fine.

Great to see some additional tests here 👍

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jan 22, 2021
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: divyanshiGupta, jerolimov, rohitkrai03

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

2 similar comments
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot openshift-merge-robot merged commit af071ca into openshift:master Jan 22, 2021
@spadgett spadgett added this to the v4.7 milestone Jan 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. component/dev-console Related to dev-console kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants