Repository navigation
Conversation
mofojed
commented
Nov 18, 2024
Member
- Partial holidays were not generating valid range breaks, as they did not account for business periods specified on the calendar
- Essentially we were adding another "closed" period that overlapped with time that was already outside of regular business hours
- Added a ticket to plotly.js to take into account range breaks which may overlap: Plot does not appear in some cases if rangebreaks overlap plotly/plotly.js#7270, as that would be nice to handle on their end, but this should be sufficient to resolve from our end
- Needed for DH-16016
- Added a bunch of test cases
- Partial holidays were not generating valid range breaks, as they did not account for business periods specified on the calendar - Added a bunch of test cases
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2297 +/- ##
==========================================
+ Coverage 46.60% 46.68% +0.07%
==========================================
Files 704 704
Lines 38963 39011 +48
Branches 9914 9926 +12
==========================================
+ Hits 18158 18211 +53
+ Misses 20794 20746 -48
- Partials 11 54 +43
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
vbabich
reviewed
Nov 25, 2024
| for (let i = 0; i < weekLength; i += 1) { | ||
| if ( | ||
| !businessDaysSet.has(i) && | ||
| businessDaysSet.has((i - 1) % weekLength) |
Collaborator
There was a problem hiding this comment.
Does this work when businessDaysSet has all days except 0?
(i - 1) % weekLength is out of bounds for i = 0.
Member
Author
There was a problem hiding this comment.
Ohhh great catch! No it does not, I'll fix up.
Co-authored-by: Vlad Babich <[email protected]>
- Had an off by 1 error when calculating the business days
vbabich
approved these changes
Nov 27, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.