-
Notifications
You must be signed in to change notification settings - Fork 605
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
Conditional link #2399
Conditional link #2399
Conversation
Hi @bipuladh. Thanks for your PR. I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
@rawagner please review. |
/assign @rawagner |
/ok-to-test |
@@ -110,6 +121,7 @@ export const ResourceInventoryItem: React.FC<ResourceInventoryItemProps> = React | |||
count={groups[key].count} | |||
statusIDs={groups[key].statusIDs} | |||
filterType={groups[key].filterType} | |||
showLink={showLink} |
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.
if you dont want to show link, then you should use Status
component instead of StatusLink
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.
Well in that case I think I should just make use of that component than making changes to StatusLink. Sorry for the trouble.
}); | ||
|
||
export const ResourceInventoryItem: React.FC<ResourceInventoryItemProps> = React.memo( | ||
({ kind, useAbbr, resources, additionalResources, isLoading, mapper, namespace, error }) => { | ||
({ kind, useAbbr, resources, additionalResources, isLoading, mapper, namespace, error,showLink=true }) => { |
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.
({ kind, useAbbr, resources, additionalResources, isLoading, mapper, namespace, error,showLink=true }) => { | |
({ kind, useAbbr, resources, additionalResources, isLoading, mapper, namespace, error, showLink = true }) => { |
325dce4
to
8ea505a
Compare
/test e2e-aws |
1 similar comment
/test e2e-aws |
/retest |
/approve |
statusIDs={groups[key].statusIDs} | ||
filterType={groups[key].filterType} | ||
/> | ||
{ Object.keys(groups).filter(key => groups[key].count > 0).map(key => ( |
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.
just a nit but i'd prefer slightly different formatting such as
{Object.keys(groups).filter(key => groups[key].count > 0).map(key => showLink ?
(
<StatusLink
key={key}
kind={kind}
namespace={namespace}
groupID={key}
count={groups[key].count}
statusIDs={groups[key].statusIDs}
filterType={groups[key].filterType}
/>
) : (
<Status groupID={key} count={groups[key].count} />
)
)}
/retest |
frontend/public/components/dashboard/inventory-card/inventory-item.tsx
Outdated
Show resolved
Hide resolved
frontend/public/components/dashboard/inventory-card/inventory-item.tsx
Outdated
Show resolved
Hide resolved
/test images |
aad6991
to
f80dd99
Compare
/test images |
f80dd99
to
2fceb18
Compare
/test e2e-aws-console |
/test e2e-aws-console |
/test e2e-aws-console |
/test e2e-aws-console-olm |
@rawagner |
/lgtm |
/approve |
1 similar comment
/approve |
Co-Authored-By: Rastislav Wagner <rawagner@redhat.com>
2fceb18
to
ef64728
Compare
/approve |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bipuladh, cloudbehl, rawagner, vojtechszocs 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. |
3 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/test e2e-aws-console-olm |
/retest Please review the full test history for this PR and help us cut down flakes. |
1 similar comment
/retest Please review the full test history for this PR and help us cut down flakes. |
/test e2e-aws |
Changes made to make it possible to generate inventory resources without the links.