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
adds associated deployment and pods in sidebar for event sources #4779
Conversation
f6cd041
to
39a47fd
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.
This looks great, thanks @invincibleJai
expect(findSidebarSectionHeading.at(1).props().text).toEqual('Deployment'); | ||
}); | ||
|
||
it('should not show pods if not present', () => { |
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.
Test does have pods. Wrong name?
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.
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]', {}); |
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.
Let's move away from using lodash get
.
39a47fd
to
0ab1aac
Compare
/lgtm |
[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 |
/retest Please review the full test history for this PR and help us cut down flakes. |
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:
Unit test coverage report:
Browser conformance:
cc @serenamarie125 @openshift/team-devconsole-ux