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
OCPBUGS-28967: 'Oh no somthing went wrong' shown on Image Manifest Vulnerability page after create IMV via CL #13578
Conversation
@cyril-ui-developer: This pull request references Jira Issue OCPBUGS-28967, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. 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 openshift-eng/jira-lifecycle-plugin repository. |
/jira refresh |
@cyril-ui-developer: This pull request references Jira Issue OCPBUGS-28967, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
Requesting review from QA contact: 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 openshift-eng/jira-lifecycle-plugin repository. |
/retest |
.split('/') | ||
.reduce((url, part, i) => [...url, part, ...(i === 0 ? ['repository'] : [])], []) | ||
.join('/')}/manifest/${vuln.spec?.manifest}?tab=vulnerabilities` | ||
: ''; |
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 we are returning an empty string then we should check the usage and not render the link if the URL is empty
@cyril-ui-developer: This pull request references Jira Issue OCPBUGS-28967, which is valid. 3 validation(s) were run on this bug
Requesting review from QA contact: 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 openshift-eng/jira-lifecycle-plugin repository. |
26f7cec
to
7f654f1
Compare
/retest |
1 similar comment
/retest |
@jhadvig Updated, PTAL. |
/retest |
text={shortenHash(props.obj.spec.manifest)} | ||
href={quayURLFor(props.obj)} | ||
/> | ||
{queryURL ? ( |
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.
The behaviour should be to render the DetailsItem only if there is value to render
{queryURL ? ( | |
{queryURL && ( | |
<ExternalLink text={shortenHash(props.obj.spec.manifest)} href={queryURL} /> | |
) |
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.
The behaviour should be to render the DetailsItem only if there is value to render
@jhadvig Hmm, not sure if that is doable without duplicating the label.
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.
@cyril-ui-developer which label do you mean ?
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.
DetailsItem
@jhadvig The DetailItem component provides the label for displaying the item. So if we don't render it, we'll have to duplicate the label some how for the default empty string to have a label caption when it is rendered.
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.
Sorry for the confusion, I mean we should be conditioning the DetailsItem
component with queryURL
.
7f654f1
to
bb85cdf
Compare
/retest |
bb85cdf
to
f401207
Compare
/retest |
5 similar comments
/retest |
/retest |
/retest |
/retest |
/retest |
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cyril-ui-developer, jhadvig 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 |
9b4800d
into
openshift:master
@cyril-ui-developer: Jira Issue OCPBUGS-28967: All pull requests linked via external trackers have merged: Jira Issue OCPBUGS-28967 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 openshift-eng/jira-lifecycle-plugin repository. |
Fix included in accepted release 4.16.0-0.nightly-2024-02-22-180402 |
Before:
After: