Skip to content

Conversation

jmthomas
Copy link
Member

closes #571

@jmthomas jmthomas requested a review from ryanmelt April 21, 2023 22:37
@codecov
Copy link

codecov bot commented Apr 21, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.12 🎉

Comparison is base (86a8498) 74.31% compared to head (aa00ad3) 74.44%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #631      +/-   ##
==========================================
+ Coverage   74.31%   74.44%   +0.12%     
==========================================
  Files         460      462       +2     
  Lines       28545    28652     +107     
  Branches      588      588              
==========================================
+ Hits        21214    21330     +116     
+ Misses       7237     7229       -8     
+ Partials       94       93       -1     
Flag Coverage Δ
ruby-api 50.96% <ø> (ø)
ruby-backend 78.56% <100.00%> (+0.11%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...ool-tlmgrapher/src/tools/TlmGrapher/TlmGrapher.vue 43.08% <ø> (ø)
openc3/lib/openc3/version.rb 100.00% <100.00%> (ø)

... and 5 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Member

@ryanmelt ryanmelt left a comment

Choose a reason for hiding this comment

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

Doesn't this break graphs on screens? It should only really pause if you click drag a selection.

setSelect: [
(chart) => {
// Pause the graph while selecting a range to zoom
if (this.state == 'start' && chart.select.width > 0) {
Copy link
Member

Choose a reason for hiding this comment

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

triple equals

@@ -819,6 +839,10 @@ export default {
setSelect: [
(chart) => {
if (!this.zoomChart) {
// Pause the graph while selecting an overview range to zoom
if (this.state == 'start' && chart.select.width > 0) {
Copy link
Member

Choose a reason for hiding this comment

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

triple equals

@@ -641,7 +641,7 @@ export default {
if (typeof rawValue === 'string' || isNaN(rawValue)) {
return 'NaN'
} else {
return rawValue == null ? '--' : rawValue.toFixed(2)
Copy link
Member

Choose a reason for hiding this comment

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

Comparing against null is the one place where you should use double equals. That will catch both null and undefined. Probably need to change those back.

@jmthomas jmthomas merged commit ab741f3 into main Apr 23, 2023
@jmthomas jmthomas deleted the pause_graph branch April 23, 2023 23:09
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.

Pause graph when selection
2 participants