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 1881356: fixes add page notification if dynamic channel/sources or broker exists #6703
Bug 1881356: fixes add page notification if dynamic channel/sources or broker exists #6703
Conversation
@invincibleJai: This pull request references Bugzilla bug 1881356, 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. 3 validation(s) were run on this bug
In response to this:
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. |
@@ -44,12 +53,22 @@ const EmptyStateLoader: React.FC<EmptyStateLoaderProps> = ({ resources, loaded, | |||
_.isEmpty(deploymentConfigs) && | |||
_.isEmpty(deployments) && | |||
_.isEmpty(statefulSets) && | |||
_.isEmpty(knativeService), | |||
_.isEmpty(knativeService) && |
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.
nit:
_.isEmpty(knativeService) && | |
_.isEmpty(knativeServices) && |
}); | ||
|
||
it('should not return limit if not passed to getDynamicChannelResourceList', async () => { | ||
await fetchChannelsCrd(); |
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.
can we move this to beforeEach instead of having it in all the cases, WDYT?
daemonSets?: K8sResourceKind; | ||
statefulSets?: K8sResourceKind; | ||
knativeService?: K8sResourceKind; | ||
[x: string]: K8sResourceKind & { data?: K8sResourceKind[] }; | ||
} | ||
interface EmptyStateLoaderProps { | ||
resources?: ResourcesType; |
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.
how about using the below type and remove the ResourceType
altogether?
resources?: ResourcesType; | |
resources?: TopologyDataResources; |
resources: | ||
| TopologyDataResources | ||
| { [key: string]: K8sResourceKind & { data?: K8sResourceKind[] } }, |
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.
wrt to my previous comment on having TopologyDataResources
type in AddPage, we can revert this changes.
1921e3c
to
ad48cf4
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.
Tested locally, works fine
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: invincibleJai, karthikjeeyar 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 |
@invincibleJai: All pull requests linked via external trackers have merged: Bugzilla bug 1881356 has been moved to the MODIFIED state. In response to this:
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. |
Fixes:
https://issues.redhat.com/browse/ODC-4878
Analysis / Root cause:
On add page notification is Shown "No workloads found" even if nameSpace has EventSource, Channel, Broker
Solution Description:
Add check for dynamic Sources/Channels/Brokers if they exists
Screen shots / Gifs for design review:
Unit test coverage report:
Browser conformance: