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

Fixup parcoords constraintrange valType and validate parcoords mocks #5673

Merged
merged 5 commits into from
Jul 17, 2021

Conversation

archmoj
Copy link
Contributor

@archmoj archmoj commented May 20, 2021

It appears the constraintrange valType should be set to "any" instead of "number" so that one could use Plotly.validate on info_array type with "1-2" dimensions.

@plotly/plotly_js

@archmoj archmoj added bug something broken status: reviewable labels May 20, 2021
@archmoj archmoj modified the milestone: NEXT May 20, 2021
@archmoj archmoj force-pushed the parcoords-constraintrange-valtype branch from 4398996 to a3274c6 Compare July 7, 2021 18:42
Copy link
Collaborator

@alexcjohnson alexcjohnson left a comment

Choose a reason for hiding this comment

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

OK, this is fine. We could potentially do better if dimensions: '1-2' items with items would validate those items against the each inner array when it's 2D, or the whole array when it's 1D. This seems to be the only place we use dimensions: '1-2', so we can do whatever validation we want. But also, this is a pretty obscure spot (and generally set by GUI, not in code) so really not worth spending much time on.
💃

@archmoj archmoj added this to the NEXT milestone Jul 17, 2021
@archmoj archmoj merged commit 3725a47 into master Jul 17, 2021
@archmoj archmoj deleted the parcoords-constraintrange-valtype branch July 17, 2021 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants