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

Bug 1800689: Identify Operator backed services on sidebar in listview topology #4253

Merged
merged 1 commit into from Feb 18, 2020

Conversation

sahil143
Copy link
Contributor

@sahil143 sahil143 commented Feb 7, 2020

fixes: https://issues.redhat.com/browse/ODC-2907

Analysis / Root cause:
Sidebar in topology and list show doesn't identify workloads owned by Operator backed service.

Solution description
added operator-backed link to sidebar.

Browser conformance:

  • Chrome
  • Firefox
  • Safari
  • Edge

Screenshot from 2020-02-07 21-43-29

@openshift-ci-robot openshift-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Feb 7, 2020
@openshift-ci-robot openshift-ci-robot added component/core Related to console core functionality component/dev-console Related to dev-console component/knative Related to knative-plugin component/shared Related to console-shared labels Feb 7, 2020
@andrewballantyne
Copy link
Contributor

/kind bug

@openshift-ci-robot openshift-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Feb 10, 2020
@openshift-ci-robot openshift-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Feb 11, 2020
@sahil143 sahil143 changed the title [WIP] Identify Operator backed services on sidebar in listview topology Bug 1800689: Identify Operator backed services on sidebar in listview topology Feb 11, 2020
@openshift-ci-robot openshift-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 11, 2020
@openshift-ci-robot
Copy link
Contributor

@sahil143: This pull request references Bugzilla bug 1800689, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

Bug 1800689: Identify Operator backed services on sidebar in listview topology

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci-robot openshift-ci-robot added the bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. label Feb 11, 2020
@openshift-ci-robot
Copy link
Contributor

@sahil143: This pull request references Bugzilla bug 1800689, which is valid.

In response to this:

Bug 1800689: Identify Operator backed services on sidebar in listview topology

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

2 similar comments
@openshift-ci-robot
Copy link
Contributor

@sahil143: This pull request references Bugzilla bug 1800689, which is valid.

In response to this:

Bug 1800689: Identify Operator backed services on sidebar in listview topology

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci-robot
Copy link
Contributor

@sahil143: This pull request references Bugzilla bug 1800689, which is valid.

In response to this:

Bug 1800689: Identify Operator backed services on sidebar in listview topology

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@@ -430,10 +440,17 @@ const isReplicationControllerVisible = (resource: K8sResourceKind): boolean => {
export class TransformResourceData {
private resources: any;

constructor(resources: any, public utils?: Function[]) {
constructor(
resources: any,
Copy link
Contributor

Choose a reason for hiding this comment

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

add type here

@debsmita1
Copy link
Contributor

@sahil143 I pulled in you PR to test it locally by couldn't see the operator-backed link in the side panel of the list view

Screenshot from 2020-02-13 00-42-28
Screenshot from 2020-02-13 00-42-17

@openshift-ci-robot openshift-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Feb 13, 2020
@sahil143
Copy link
Contributor Author

@sahil143 I pulled in you PR to test it locally by couldn't see the operator-backed link in the side panel of the list view

@debsmita1 Fixed. Please review again.

const operatorResource: K8sResourceKind = _.find(this.installedOperators, {
metadata: { uid: ownerUid },
}) as K8sResourceKind;
console.log(
Copy link
Contributor

Choose a reason for hiding this comment

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

please remove the log statement

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed

@debsmita1
Copy link
Contributor

tested it locally, works fine

…ebar resources for operator backed services

finish up

 check for uid while setting isOperatorBacked

remove console.log
@@ -1,6 +1,7 @@
import { K8sResourceKind, PodKind, RouteKind, EventKind } from '@console/internal/module/k8s';
import { DEPLOYMENT_STRATEGY } from '../constants';
import { OverviewItemAlerts, PodControllerOverviewItem } from './pod';
import { ClusterServiceVersionKind } from '@console/operator-lifecycle-manager';
Copy link
Contributor

Choose a reason for hiding this comment

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

argh, this is a bad dependency for console-shared

These sections should be contributed via extensions and not hard coded.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@christianvogt As discussed, logged a bug for this https://issues.redhat.com/browse/ODC-3075.

@christianvogt
Copy link
Contributor

/lgtm
/approve

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 18, 2020
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: christianvogt, sahil143

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-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 18, 2020
@openshift-bot
Copy link
Contributor

/retest

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

1 similar comment
@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 6d30782 into openshift:master Feb 18, 2020
@openshift-ci-robot
Copy link
Contributor

@sahil143: All pull requests linked via external trackers have merged. Bugzilla bug 1800689 has been moved to the MODIFIED state.

In response to this:

Bug 1800689: Identify Operator backed services on sidebar in listview topology

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

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. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. component/core Related to console core functionality component/dev-console Related to dev-console component/knative Related to knative-plugin component/shared Related to console-shared kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants