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
added support for cancel and restart in export app #9916
added support for cancel and restart in export app #9916
Conversation
frontend/packages/topology/src/components/export-app/export-app-modal.tsx
Outdated
Show resolved
Hide resolved
startTime?: string; | ||
onCancelExport?: () => Promise<boolean>; | ||
onRestartExport?: () => Promise<boolean>; |
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.
Why are these props optional?
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.
as there is a scenario when export is triggered but res data is not present so her we just that export is started, to observe this double click on export app btn
frontend/packages/topology/src/components/export-app/ExportApplicationModal.tsx
Outdated
Show resolved
Hide resolved
|
||
const onCancel = async () => { | ||
try { | ||
await onCancelExport(); |
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.
since this is an optional prop
await onCancelExport(); | |
await onCancelExport?.(); |
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.
onCancel will be invoked only if onCancelExport
is present as btn is rendered then
frontend/packages/topology/src/components/export-app/ExportApplicationModal.tsx
Show resolved
Hide resolved
frontend/packages/topology/src/components/export-app/ExportApplicationModal.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/topology/src/components/export-app/ExportApplicationModal.tsx
Outdated
Show resolved
Hide resolved
f3285d2
to
1e2825d
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.
/lgtm
tested locally. works as expected
/hold |
fyi @serenamarie125 |
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 for getting this in so quickly!
1e2825d
to
77aac70
Compare
/label docs-approved added based on ack on the associated epic from px and docs |
77aac70
to
6cb011d
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: christianvogt, invincibleJai, sahil143, 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 |
/label qe-approved tested locally. works as expected |
Fixes:
https://issues.redhat.com/browse/ODC-6304
Solution Description:
Added support for cancel and restart in the export app.
Screen shots / Gifs for design review:
cc @openshift/team-devconsole-ux
Unit test coverage report:
Test setup:
Browser conformance: