-
Notifications
You must be signed in to change notification settings - Fork 309
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
NAS-132019 / 25.04 / Remove DST gaps from chart reports #11086
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## master #11086 +/- ##
==========================================
+ Coverage 82.30% 82.37% +0.06%
==========================================
Files 1631 1632 +1
Lines 57286 57325 +39
Branches 5917 5915 -2
==========================================
+ Hits 47152 47220 +68
+ Misses 10134 10105 -29 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
So if I understand the PR correctly, middleware returns timestamps that may jump from some value to another hour. If this is the case, then this is not a UI issue as timestamps don't care about DST. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
☝🏼
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Meant to request changes, not just comment.
Changes:
Screenshot attached to a ticket depicts the DST gap, which occurs when server's internal clock does a transition from time point
1:59
to time point3:00 GMT+0100
, and timezone info (GMT+0100
) is lost, resulting in representational 1:01 hour gapIn pseudocode:
Actual:
Expected:
This PR removes DST gaps from reporting time series.
Testing:
To simulate DST, you need to add the
addDstGaps
method in the src/app/pages/reports-dashboard/reports.service.ts file and apply it toreportingData.data
as shown below:Replace the constant
dstTimestamp
with the value of the DST change time (in seconds!).For example,
1732168676
<=>Thu Nov 21 2024 08:57:56 GMT+0300
.A gap of one hour should appear on the chart:
Using the
removeDstGaps
method should remove this gap.addDstGaps
method code: