Opt out of even number across racks. #949

Merged
merged 4 commits into from Mar 21, 2016

Conversation

Projects
None yet
3 participants
@Calvinp
Contributor

Calvinp commented Mar 14, 2016

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.

Enable opt out of even number across racks.
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

This comment has been minimized.

Show comment
Hide comment
@Calvinp

Calvinp Mar 14, 2016

Contributor

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
Contributor

Calvinp commented Mar 14, 2016

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

This comment has been minimized.

Show comment
Hide comment
@ssalinas

ssalinas Mar 14, 2016

Member

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

Member

ssalinas commented Mar 14, 2016

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

This comment has been minimized.

Show comment
Hide comment
@Calvinp

Calvinp Mar 14, 2016

Contributor

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.

Contributor

Calvinp commented Mar 14, 2016

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

This comment has been minimized.

@tpetr

tpetr Mar 14, 2016

Member

this shouldn't be committed

@tpetr

tpetr Mar 14, 2016

Member

this shouldn't be committed

This comment has been minimized.

@Calvinp

Calvinp Mar 14, 2016

Contributor

You are right, editing that out.

@Calvinp

Calvinp Mar 14, 2016

Contributor

You are right, editing that out.

@ssalinas

This comment has been minimized.

Show comment
Hide comment
@ssalinas

ssalinas Mar 14, 2016

Member

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

Member

ssalinas commented Mar 14, 2016

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

@Calvinp

This comment has been minimized.

Show comment
Hide comment
@Calvinp

Calvinp Mar 14, 2016

Contributor

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

Contributor

Calvinp commented Mar 14, 2016

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

This comment has been minimized.

Show comment
Hide comment
@ssalinas

ssalinas Mar 14, 2016

Member

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.

Member

ssalinas commented Mar 14, 2016

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

This comment has been minimized.

Show comment
Hide comment
@Calvinp

Calvinp Mar 14, 2016

Contributor

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

Contributor

Calvinp commented Mar 14, 2016

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

This comment has been minimized.

Show comment
Hide comment
@Calvinp

Calvinp Mar 14, 2016

Contributor

More separation:

screenshot 2016-03-14 16 18 12

Contributor

Calvinp commented Mar 14, 2016

More separation:

screenshot 2016-03-14 16 18 12

@ssalinas

This comment has been minimized.

Show comment
Hide comment
@ssalinas

ssalinas Mar 14, 2016

Member

👍

Member

ssalinas commented Mar 14, 2016

👍

Calvinp added some commits Mar 15, 2016

Added checkbox to even number of tasks hint to disable the hint for e…
…veryone for this request forever, and made the checkbox for this in the edit form field remember current state
@Calvinp

This comment has been minimized.

Show comment
Hide comment
@Calvinp

Calvinp Mar 15, 2016

Contributor

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.

Contributor

Calvinp commented Mar 15, 2016

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

@Calvinp Calvinp added the hs_stable label Mar 21, 2016

@ssalinas

This comment has been minimized.

Show comment
Hide comment
@ssalinas

ssalinas Mar 21, 2016

Member

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

Member

ssalinas commented Mar 21, 2016

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

2 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details

@ssalinas ssalinas deleted the opt-out-of-even-number-across-racks branch Mar 21, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment