Skip to content

Opt out of even number across racks. - #949

Merged
ssalinas merged 4 commits into
even_number_across_racksfrom
opt-out-of-even-number-across-racks
Mar 21, 2016
Merged

Opt out of even number across racks.#949
ssalinas merged 4 commits into
even_number_across_racksfrom
opt-out-of-even-number-across-racks

Conversation

@Calvinp

@Calvinp Calvinp commented Mar 14, 2016

Copy link
Copy Markdown
Contributor

Adds a parameter to SingularityRequest to opt out of suggesting even numbers across racks, and the UI listens to this.
Also when creating or updating requests through the UI, there is a checkbox to toggle this.

Adds a parameter to SingularityRequest to opt out of suggesting even numbers across racks, and the UI listens to this.
Also when creating or updating requests through the UI, there is a checkbox to toggle this
@Calvinp

Calvinp commented Mar 14, 2016

Copy link
Copy Markdown
Contributor Author

Possible improvements in future iterations:

  • Add a configuration for whether requests will have the hint on or off by default (when the param isn't supplied)
  • Make the checkbox not exist when 'rack sensitive' isn't checked
  • Add a checkbox to the hint box to disable future hints for this request

@ssalinas

Copy link
Copy Markdown
Contributor

I think the last of those nice to haves (checkbox to ignore in the future) we should implement in this PR. Should just have to get the current request json, add the field, and POST it

@Calvinp

Calvinp commented Mar 14, 2016

Copy link
Copy Markdown
Contributor Author

Working on the functionality, but how's this wording?

screenshot 2016-03-14 15 54 44

Note the fact that there are two '3' options is not a bug, it's because I cheated to get it to work with the one rack I have locally.


requestObject.rackAffinity = @getSelect2Val "#rackAffinity-#{ type }"

debugger

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.

this shouldn't be committed

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.

You are right, editing that out.

@ssalinas

Copy link
Copy Markdown
Contributor

Maybe just a simpler 'Don't show this prompt again for {requestId}' in terms of messaging

@Calvinp

Calvinp commented Mar 14, 2016

Copy link
Copy Markdown
Contributor Author

Hmm I feel like it's important to specify that this applies to all users, not just the person who's clicking the button.

@ssalinas

Copy link
Copy Markdown
Contributor

That's fair, can add a 'for any user' to the end of the messaging, should also see if we can separate it just a bit more so it doesn't look like part of the radio buttons, the difference between the circle/square is pretty slight.

@Calvinp

Calvinp commented Mar 14, 2016

Copy link
Copy Markdown
Contributor Author

I can get the text onto one line if I don't include the specific request id (keeping it as 'this request'). Which seems fairly reasonable because the request id is in the background on this screen:

screenshot 2016-03-14 16 15 36

@Calvinp

Calvinp commented Mar 14, 2016

Copy link
Copy Markdown
Contributor Author

More separation:

screenshot 2016-03-14 16 18 12

@ssalinas

Copy link
Copy Markdown
Contributor

👍

Calvin Pomerantz added 2 commits March 15, 2016 13:10
…veryone for this request forever, and made the checkbox for this in the edit form field remember current state
@Calvinp

Calvinp commented Mar 15, 2016

Copy link
Copy Markdown
Contributor Author

This is now implemented. Sending this request, plus the scale request, plus the bounce request (when scaling with bounce), and ensuring none of them conflicted caused a bit of trouble, but this is resolved now.

@ssalinas ssalinas modified the milestone: 0.4.12 Mar 18, 2016
@ssalinas

Copy link
Copy Markdown
Contributor

Thanks for this @Calvinp , going to merge it into the the other PR branch since they go together

ssalinas added a commit that referenced this pull request Mar 21, 2016
@ssalinas
ssalinas merged commit 20a68bf into even_number_across_racks Mar 21, 2016
@ssalinas
ssalinas deleted the opt-out-of-even-number-across-racks branch March 21, 2016 14:47
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