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

add min/max javascript functionality #1441

Merged
merged 9 commits into from
Oct 12, 2021
Merged

add min/max javascript functionality #1441

merged 9 commits into from
Oct 12, 2021

Conversation

johrstrom
Copy link
Contributor

@johrstrom johrstrom commented Oct 7, 2021

Fixes #1431

In draft right now because it doesn't really read well and besides needs these other things:

  • test
  • more readable
  • handles edge cases

@johrstrom johrstrom marked this pull request as ready for review October 11, 2021 16:06
@johrstrom johrstrom changed the title first pass at adding min/max javascript functionality add min/max javascript functionality Oct 11, 2021
@johrstrom
Copy link
Contributor Author

I think this is ready for review now. The table implementation is a much better way to reason about how these configs tied to one element (node_type) can be associated with other elements (num_cores and cluster).

"any",
data-minnn-bc-not-found-for-cluster-mistype: 30,
data-max-bc-not-found-for-cluster-mistype: 30,
data-maximum-bc-not-found-for-cluster-mistype: 30
Copy link
Contributor Author

Choose a reason for hiding this comment

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

probably need to add test cases for 'any' to be sure these aren't parsed.

assert_equal 40, find_max('bc_num_slots')
end

test 'using same node sets min/max' do
Copy link
Contributor Author

Choose a reason for hiding this comment

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

seems like this test should also change node type. I guess just to be sure that you change the node type and the same min/maxes are set.

Copy link
Contributor

@Oglopf Oglopf left a comment

Choose a reason for hiding this comment

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

LGTM.

@Oglopf Oglopf merged commit a47865b into master Oct 12, 2021
@Oglopf Oglopf deleted the feature/min-max-js branch October 12, 2021 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

automatic js handlers for min & max
3 participants