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

UI: Stop job button #4189

Merged
merged 11 commits into from
Apr 21, 2018
Merged

UI: Stop job button #4189

merged 11 commits into from
Apr 21, 2018

Conversation

DingoEatingFuzz
Copy link
Contributor

Introduces a stop button on all job detail pages.

stop-job-pr

The stop button is a new two-step confirmation button.

@@ -0,0 +1,19 @@
{{#if isIdle}}
<button class="button is-warning is-small is-inline" onclick={{action "promptForConfirmation"}}>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this needs type="button"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Updated it.

</button>
{{else if isPendingConfirmation}}
<span class="confirmation-text">{{confirmationMessage}}</span>
<button class="button is-dark is-outlined is-small is-inline" onclick={{action (queue
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

type here too please!

Copy link
Contributor

@meirish meirish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Good stuff with the tests and extracting common bits too.

@DingoEatingFuzz DingoEatingFuzz merged commit fb7e0c1 into master Apr 21, 2018
@DingoEatingFuzz DingoEatingFuzz deleted the f-ui-stop-job-button branch April 21, 2018 01:12
@danlsgiga
Copy link
Contributor

Super nice job! But now I'm wondering if there will be an "start" button to resubmit stopped jobs. :)

@DingoEatingFuzz
Copy link
Contributor Author

@danlsgiga we're being super cautious with introducing write features to the UI. We don't want to conflict with our own philosophy of infrastructure as code, but we also understand that submitting and resubmitting jobs via the web ui would be really nice and convenient.

Stay tuned!

@danlsgiga
Copy link
Contributor

Thanks for the quick feedback @DingoEatingFuzz.
From my perspective, it does not make much sense to have an stop button in the UI if there are no plans to have a start button.

I understand the fears around deviating from infrastructure as code and I truly endorse this vision.
The stop button does not change code, just the state of the job and that's fine!! But having the same behaviour on a start button (changing state, not code) would not hurt the infrastructure as code philosophy since we'll be basically resubmitting the same job that is already in nomad but just instructing it to run.

Anyhow, just my .2 on the subject! Keep up the amazing work!!

@github-actions
Copy link

github-actions bot commented Mar 5, 2023

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants