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

Better validate canvas.line() coordinate lengths #1160

Merged
merged 2 commits into from
Jan 6, 2023
Merged

Better validate canvas.line() coordinate lengths #1160

merged 2 commits into from
Jan 6, 2023

Conversation

ianthomas23
Copy link
Member

Fixes #1159.

This adds extra checks in the validate() functions of the various line classes such as LinesAxis1XConstant to check that the supplied x and y coordinates have the same lengths.

@codecov
Copy link

codecov bot commented Jan 3, 2023

Codecov Report

Merging #1160 (bebd8ee) into main (a1d9513) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1160      +/-   ##
==========================================
+ Coverage   85.38%   85.39%   +0.01%     
==========================================
  Files          35       35              
  Lines        7812     7820       +8     
==========================================
+ Hits         6670     6678       +8     
  Misses       1142     1142              
Impacted Files Coverage Δ
datashader/glyphs/line.py 92.85% <100.00%> (+0.05%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Member

@jbednar jbednar left a comment

Choose a reason for hiding this comment

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

Thanks!

@ianthomas23
Copy link
Member Author

I am merging this following review approval. There is a CI problem with Python 3.7 on macos but that is affecting all PRs and I will address it as soon as possible.

@ianthomas23 ianthomas23 merged commit 8f66c5e into holoviz:main Jan 6, 2023
@ianthomas23 ianthomas23 deleted the 1159_better_validate_line_inputs branch January 6, 2023 11:34
@ianthomas23 ianthomas23 added this to the v0.14.4 milestone Jan 19, 2023
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.

Insufficient validation of Canvas.line input lengths
2 participants