-
Notifications
You must be signed in to change notification settings - Fork 2.8k
console: add button to cancel one-off scheduled events and cron-trigger events (close #5161) #5236
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
console: add button to cancel one-off scheduled events and cron-trigger events (close #5161) #5236
Conversation
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.
@beerose could you also give it a quick view and provide some comments?
console/src/components/Services/Events/Common/Components/EventsTable.tsx
Outdated
Show resolved
Hide resolved
console/src/components/Services/Events/Common/Components/EventsTable.tsx
Outdated
Show resolved
Hide resolved
console/src/components/Services/Events/Common/Components/CancelEventButton.tsx
Outdated
Show resolved
Hide resolved
|
Review app for commit 834f9e5 deployed to Heroku: https://hge-ci-pull-5236.herokuapp.com |
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 the one small change. But otherwise, the code looks fine.
console/src/components/Services/Events/Common/Components/CancelEventButton.tsx
Outdated
Show resolved
Hide resolved
|
Review app for commit f68e15b deployed to Heroku: https://hge-ci-pull-5236.herokuapp.com |
|
Review app for commit 5abe9f0 deployed to Heroku: https://hge-ci-pull-5236.herokuapp.com |
|
Review app for commit df232c9 deployed to Heroku: https://hge-ci-pull-5236.herokuapp.com |
beerose
left a comment
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.
Leaving some laconic comments, as it was discussed in more details over a call.
Key points:
- Don't pass
dispatchto every component — pass single actions. - Don't mix Redux with UI components.
- Use
requestAction.
console/src/components/Services/Events/Common/Components/EventsTable.tsx
Outdated
Show resolved
Hide resolved
console/src/components/Services/Events/Common/Components/EventsTable.tsx
Outdated
Show resolved
Hide resolved
console/src/components/Services/Events/EventTriggers/ProcessedEvents/ProcessedEvents.tsx
Outdated
Show resolved
Hide resolved
console/src/components/Services/Events/Common/Components/makeCancelRequest.ts
Outdated
Show resolved
Hide resolved
console/src/components/Services/Events/Common/Components/makeCancelRequest.ts
Outdated
Show resolved
Hide resolved
console/src/components/Services/Events/Common/Components/EventsTable.tsx
Outdated
Show resolved
Hide resolved
console/src/components/Services/Events/CronTriggers/PendingEvents/PendingEvents.tsx
Outdated
Show resolved
Hide resolved
console/src/components/Services/Events/EventTriggers/PendingEvents/PendingEvents.tsx
Outdated
Show resolved
Hide resolved
console/src/components/Services/Events/CronTriggers/ProcessedEvents/ProcessedEvents.tsx
Outdated
Show resolved
Hide resolved
tirumaraiselvan
left a comment
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.
changelog
|
/heroku deploy |
|
Review app for commit 5d57723 deployed to Heroku: https://hge-ci-pull-5236.herokuapp.com |
rikinsk
left a comment
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.
Looks good to me overall. Just a small update to the confirmation msgs would be nice:
For cron events: This will delete the "<triggerName>" cron event "<event_id>" scheduled for "<time>"
For one-off events: This will delete the one-off event "<event_id>" scheduled for "<time>"
|
Review app for commit 6b3bdce deployed to Heroku: https://hge-ci-pull-5236.herokuapp.com |
console/src/components/Services/Events/Common/Components/EventsTable.tsx
Outdated
Show resolved
Hide resolved
console/src/components/Services/Events/AdhocEvents/PendingEvents/PendingEvents.tsx
Outdated
Show resolved
Hide resolved
console/src/components/Services/Events/CronTriggers/PendingEvents/PendingEvents.tsx
Outdated
Show resolved
Hide resolved
|
Review app for commit 6b3a58a deployed to Heroku: https://hge-ci-pull-5236.herokuapp.com |
beerose
left a comment
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.
Console changes.
|
Review app for commit 2efb867 deployed to Heroku: https://hge-ci-pull-5236.herokuapp.com |
|
Review app for commit 595fb44 deployed to Heroku: https://hge-ci-pull-5236.herokuapp.com |
|
Review app for commit 5015fac deployed to Heroku: https://hge-ci-pull-5236.herokuapp.com |
|
Review app https://hge-ci-pull-5236.herokuapp.com is deleted |
resolves #5161
Description
The pending events on
Cron TriggersandOne-off Scheduled Eventscan now be cancelled using the cancel button situated in the newly addedactionscolumn.Changelog
CHANGELOG.mdis updated with user-facing content relevant to this PR. If no changelog is required, then add theno-changelog-requiredlabel.Affected components