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

adds associated deployment and pods in sidebar for event sources #4779

Merged

Conversation

invincibleJai
Copy link
Member

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

Analysis / Root cause:
Currently, Event Sources sidebar just show knative serving it's syncing to and it should show associated deployments/pods if any.

Solution Description:
Event Sources sidebar will list knative serving it's syncing to and associated deployments/pods if any.

Screen shots / Gifs for design review:
Mar-20-2020 01-29-58

Screenshot 2020-03-19 at 8 01 18 PM

Unit test coverage report:
Screenshot 2020-03-20 at 1 32 30 AM

Browser conformance:

  • Chrome
  • Firefox
  • Safari
  • Edge

cc @serenamarie125 @openshift/team-devconsole-ux

@openshift-ci-robot openshift-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. component/dev-console Related to dev-console component/knative Related to knative-plugin labels Mar 19, 2020
Copy link
Contributor

@serenamarie125 serenamarie125 left a comment

Choose a reason for hiding this comment

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

This looks great, thanks @invincibleJai

expect(findSidebarSectionHeading.at(1).props().text).toEqual('Deployment');
});

it('should not show pods if not present', () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Test does have pods. Wrong name?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes , have updated

const sink = _.get(obj, 'spec.sink.ref') || _.get(obj, 'spec.sink');
const sinkUri = _.get(obj, 'status.sinkUri', null);
const namespace = _.get(obj, 'metadata.namespace', null);
const deploymentData = _.get(current, 'obj.metadata.ownerReferences[0]', {});
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's move away from using lodash get.

@christianvogt
Copy link
Contributor

/lgtm

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

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: christianvogt, invincibleJai, serenamarie125

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.

@openshift-merge-robot openshift-merge-robot merged commit c7e27ee into openshift:master Mar 23, 2020
@spadgett spadgett added this to the v4.5 milestone Mar 23, 2020
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 component/knative Related to knative-plugin 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