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

Sort dynamic dimension values in widget constructor #2654

Merged
merged 3 commits into from
May 7, 2018

Conversation

philippjfr
Copy link
Member

@philippjfr philippjfr commented May 4, 2018

Fixes two separate bugs caused by Dimension.values potentially being unsorted while the slider widget always expects sorted values.

@philippjfr philippjfr added type: bug Something isn't correct or isn't working status: WIP labels May 4, 2018
@philippjfr
Copy link
Member Author

Ready to review/merge when tests pass.

@jlstevens
Copy link
Contributor

Looks good. One comment is that values in Dimension acts more like a set than a list but it is probably too late to change that. Merging.

@jlstevens jlstevens merged commit 482e96c into master May 7, 2018
@philippjfr
Copy link
Member Author

Only when the values are numeric, the explicit ordering is respected for dropdowns.

@philippjfr philippjfr deleted the widget_key_sorting branch July 4, 2018 11:14
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug Something isn't correct or isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants