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
ODC-7531: Added the ApprovalTask List Tabbed Page #13651
ODC-7531: Added the ApprovalTask List Tabbed Page #13651
Conversation
@Lucifergene: This pull request references ODC-7531 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.16.0" version, but no target version was set. 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. |
@Lucifergene: This pull request references ODC-7531 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.16.0" version, but no target version was set. 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. |
@Lucifergene: This pull request references ODC-7531 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.16.0" version, but no target version was set. 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. |
32ebfc2
to
77a172f
Compare
77a172f
to
6ec79f1
Compare
@Lucifergene: This pull request references ODC-7531 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.16.0" version, but no target version was set. 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. |
/cc @vikram-raj @lokanandaprabhu |
/retest |
@Lucifergene: This pull request references ODC-7531 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.16.0" version, but no target version was set. 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. |
This PR is dependent on #13613 |
c2c8818
to
1ac81eb
Compare
@Lucifergene looks good! One question regarding the design in the Approvers column: it looks like the task was approved by 1 out of 4 approvers, and yet it's overall status is 'Approved'. How can that be? |
@MariaLeonova, in the ApprovalTask resource YAML, we can specify the number of approvals required for the job. In this case, it was set to 1. Therefore, even on getting just one approval, it got approved. |
|
||
React.useEffect(() => { | ||
if (user.username === 'kube:admin') { | ||
user.username = 'kubernetes-admin'; |
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.
const ApprovalHeader = () => { | ||
return [ | ||
{ | ||
title: i18next.t('pipelines-plugin~PipelineRun 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.
title: i18next.t('pipelines-plugin~PipelineRun Name'), | |
title: i18next.t('pipelines-plugin~PipelineRun name'), |
id: 'approvers', | ||
}, | ||
{ | ||
title: i18next.t('pipelines-plugin~Task 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.
title: i18next.t('pipelines-plugin~Task Name'), | |
title: i18next.t('pipelines-plugin~Task name'), |
id: 'taskName', | ||
}, | ||
{ | ||
title: i18next.t('pipelines-plugin~Current Status'), |
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.
title: i18next.t('pipelines-plugin~Current Status'), | |
title: i18next.t('pipelines-plugin~Current status'), |
"Approval status": "Approval status", | ||
"ApprovalTasks": "ApprovalTasks", | ||
"An error occurred. Please try again": "An error occurred. Please try again", | ||
"<0>{type === 'approve'\n ? 'Are you sure you want to approve'\n : 'Please provide a reason for not approving'} <2></2><3>{name}</3> in <6></6><7></7><8>{pipelineRunName}</8>?</0>": "<0>{type === 'approve'\n ? 'Are you sure you want to approve'\n : 'Please provide a reason for not approving'} <2></2><3>{name}</3> in <6></6><7></7><8>{pipelineRunName}</8>?</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.
It doesn't look fine. The translation string contains conditions as well. Can you fix it.
return ( | ||
<> | ||
<Helmet> | ||
<title>{t('pipelines-plugin~ApprovalTasks')}</title> |
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.
<title>{t('pipelines-plugin~ApprovalTasks')}</title> | |
<title>{t('pipelines-plugin~Approval tasks')}</title> |
/label acknowledge-critical-fixes-only |
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.
Verified it. This feature works as expected. But there is some improvement suggested by UX and PM which can be done in the followup PR. As PR owner is on PTO.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Lucifergene, vikram-raj 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 |
/label doc-approved |
@vikram-raj: The label(s) 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. |
/label docs-approved |
Verified happy paths with admin and non-admin users. As edge cases will be dealt in another pr Screen.Recording.2024-03-21.at.8.34.18.PM.mov/label qe-approved |
@Lucifergene: This pull request references ODC-7531 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.16.0" version, but no target version was set. 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. |
@Lucifergene: all tests passed! Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
[ART PR BUILD NOTIFIER] This PR has been included in build openshift-enterprise-console-container-v4.16.0-202403221044.p0.g12e9fb5.assembly.stream.el8 for distgit openshift-enterprise-console. |
Fixes:
https://issues.redhat.com/browse/ODC-7531
Depends on:
https://issues.redhat.com/browse/ODC-7519
Screen shots / Gifs for design review:
Demo:
Tab-Pipelines.OKD.1.mp4
Unit test coverage report:
Fixed broken tests. New tests will be added as part of another story.
Test setup:
Browser conformance: