Skip to content

Add option to also bounce when scaling#795

Merged
tpetr merged 9 commits into
masterfrom
bounce_and_scale
Dec 18, 2015
Merged

Add option to also bounce when scaling#795
tpetr merged 9 commits into
masterfrom
bounce_and_scale

Conversation

@ssalinas

Copy link
Copy Markdown
Contributor

screen shot 2015-12-10 at 10 12 58 am
(extra options for incremental bounce only appear when bounce is checked)

Comment thread SingularityUI/app/models/Request.coffee Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

how come you're passing bounce and incremental to @scale()?

@ssalinas

Copy link
Copy Markdown
Contributor Author

@tpetr updated form your comments, also the checkbox label just says "Bounce after scaling" now

@ssalinas

Copy link
Copy Markdown
Contributor Author

Added a field in the request so that you can default that box to checked if you want

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You need one that is the Json getter that just returns the actual value.

If you want to add a helper, you should @JsonIGnore it.

@wsorenson

Copy link
Copy Markdown
Contributor

Is the request option only used by the UI?

@ssalinas

Copy link
Copy Markdown
Contributor Author

Yes, only used by the ui. Developers wanted a way to have the checkbox default to checked for some requests but not others

@tpetr

tpetr commented Dec 17, 2015

Copy link
Copy Markdown
Contributor

This could be addressed in a subsequent PR, but I think it'd be worth packing the bounce + scale functionality into the backend. The "dumber" the UI is, the better.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'd consider moving the bounce checkbox to after the scale input to fit in with the "bounce after scaling" wording.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

bonus points for indenting the incremental bounce option + greying it out if the bounce checkmark is unchecked

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

right now the incremental option isn't show if bounce checkmark is unchecked and appears when you check it. would you rather see it greyed out instead of having it hidden?

@ssalinas

Copy link
Copy Markdown
Contributor Author

New look of the prompt (radio buttons are hidden when bounce isn't checked):
screen shot 2015-12-18 at 8 49 07 am

tpetr pushed a commit that referenced this pull request Dec 18, 2015
Add option to also bounce when scaling
@tpetr tpetr merged commit 896444e into master Dec 18, 2015
@tpetr tpetr removed hs_qa labels Dec 18, 2015
@tpetr tpetr added this to the 0.4.6 milestone Dec 18, 2015
@ssalinas ssalinas deleted the bounce_and_scale branch December 21, 2015 16:57
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.

3 participants