Skip to content
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

Merged
merged 7 commits into from Aug 24, 2016
Merged

Conversation

Calvinp
Copy link
Contributor

@Calvinp Calvinp commented Aug 19, 2016

Fixes the following:

  • Run now modal wasn't able to find the task being run to browse to its sandbox or tail the file.
  • Run now modal used to save in local storage the file you chose to tail and the after-run setting.
  • Compared to using a multi-input, a tagsinput made it difficult to properly enter multiple command line arguments as separate arguments if there was a space in one of them.
    This brings that functionality back.

cc @tpetr @wolfd

@Calvinp Calvinp changed the title Run Now UI Service Restoration (WIP) Run Now UI Service Restoration Aug 19, 2016
@Calvinp
Copy link
Contributor Author

Calvinp commented Aug 19, 2016

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']);
Copy link
Contributor

@wolfd wolfd Aug 22, 2016

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?

Copy link
Contributor Author

@Calvinp Calvinp Aug 22, 2016

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.

@ssalinas ssalinas modified the milestone: 0.10.1 Aug 22, 2016
@Calvinp
Copy link
Contributor Author

Calvinp commented Aug 22, 2016

Brought back the multi-input for command line arguments.

screenshot 2016-08-22 12 49 09

@wolfd
Copy link
Contributor

wolfd commented Aug 22, 2016

LGTM

@ssalinas ssalinas merged commit 3f66506 into master Aug 24, 2016
0 of 2 checks passed
@ssalinas ssalinas deleted the run_now_ui_service_restoration branch Aug 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants