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

🐛 fix errors on pipelineRange with null start_ts and end_ts #1184

Closed
wants to merge 1 commit into from

Conversation

JGreenlee
Copy link
Collaborator

@JGreenlee JGreenlee commented Oct 8, 2024

For a new user where the pipeline has not yet processed, pipelineRange will be { start_ts: null, end_ts: null }. We should handle this appropriately:
-in TimelineScrollList, pipelineEndDate should be undefined instead of trying to call DateTime.fromSeconds with null
-loadDateRange should return early and do nothing
-The early return from fetchTripsInRange should return empty arrays, not void

For a new user where the pipeline has not yet processed, pipelineRange will be `{ start_ts: null, end_ts: null }`.
We should handle this appropriately:
-in TimelineScrollList, pipelineEndDate should be undefined instead of trying to call DateTime.fromSeconds with null
-loadDateRange should return early and do nothing
-The early return from fetchTripsInRange should return empty arrays, not void
Copy link

codecov bot commented Oct 8, 2024

Codecov Report

Attention: Patch coverage is 16.66667% with 5 lines in your changes missing coverage. Please review.

Project coverage is 29.42%. Comparing base (039f647) to head (667a726).
Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
www/js/TimelineContext.ts 20.00% 4 Missing ⚠️
www/js/diary/list/TimelineScrollList.tsx 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1184      +/-   ##
==========================================
- Coverage   29.42%   29.42%   -0.01%     
==========================================
  Files         122      122              
  Lines        4910     4911       +1     
  Branches     1080     1124      +44     
==========================================
  Hits         1445     1445              
+ Misses       3465     3464       -1     
- Partials        0        2       +2     
Flag Coverage Δ
unit 29.42% <16.66%> (-0.01%) ⬇️

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

Files with missing lines Coverage Δ
www/js/diary/list/TimelineScrollList.tsx 0.00% <0.00%> (ø)
www/js/TimelineContext.ts 51.21% <20.00%> (-0.32%) ⬇️

... and 2 files with indirect coverage changes

@JGreenlee JGreenlee closed this Oct 8, 2024
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.

1 participant