-
Notifications
You must be signed in to change notification settings - Fork 189
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
Run Now UI Service Restoration #1234
Conversation
…ually find a task
Looks like the poller is working properly. |
this.props.runNow(data).then((response) => { | ||
if (response.error) { | ||
Messenger().post({ | ||
message: '<p>This request cannot be run now. This is likely because it is already running.</p>', | ||
type: 'error' | ||
}); | ||
} else if (_.contains([RunNowModal.AFTER_TRIGGER.SANDBOX.value, RunNowModal.AFTER_TRIGGER.TAIL.value], data.afterTrigger)) { | ||
const requestId = Utils.maybe(response, ['data', 'request', 'id']); |
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.
What happens when this maybe
returns undefined
?
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 poller still tries to find the task, but never will because it's requesting /api/history/request/undefined/run/${runId}
.
It might make sense to not even try to poll if that's undefined.
EDIT - This is implemented.
LGTM |
Fixes the following:
This brings that functionality back.
cc @tpetr @wolfd