-
Notifications
You must be signed in to change notification settings - Fork 105
fix bug by keeping track of interval within the explorer #1266
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 bug by keeping track of interval within the explorer #1266
Conversation
Signed-off-by: Joshua Li <[email protected]>
Signed-off-by: Rupal Mahajan <[email protected]> (cherry picked from commit eef1979) Co-authored-by: Rupal Mahajan <[email protected]>
Signed-off-by: Derek Ho <[email protected]>
Signed-off-by: Derek Ho <[email protected]>
Signed-off-by: Derek Ho <[email protected]>
Signed-off-by: Derek Ho <[email protected]>
Signed-off-by: Derek Ho <[email protected]>
| } else { | ||
| findAutoInterval(startTime, endTime); | ||
| if (!selectedIntervalRef.current || selectedIntervalRef.current.text === 'Auto') { | ||
| findAutoInterval(startingTime, endingTime); |
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.
what's the difference between startingTime and startTime?
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.
I may need someone more familiar with this component/code (@mengweieric ?) - but from what I can tell this explorer is rendered by both Application analytics and event analytics - for event analytics startTime is undefined, resulting in auto interval not getting picked up. In either case startingTime should be already set above based on the query so I think(?) this is a more general implementation
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.
Yes confirmed. Event analytics previously does not use any passed in start/starting time, I think later there's live tail introduced with starting/ending time for differentiating existing start/end time just for reusing the exiting data fetching
dashboards-observability/public/components/event_analytics/explorer/explorer.tsx
Outdated
Show resolved
Hide resolved
dashboards-observability/public/components/event_analytics/explorer/explorer.tsx
Outdated
Show resolved
Hide resolved
dashboards-observability/public/components/event_analytics/explorer/explorer.tsx
Outdated
Show resolved
Hide resolved
dashboards-observability/public/components/event_analytics/explorer/explorer.tsx
Outdated
Show resolved
Hide resolved
Signed-off-by: Derek Ho <[email protected]>
Codecov ReportAttention: Patch coverage is
❌ Your project status has failed because the head coverage (41.70%) is below the target coverage (70.00%). You can increase the head coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## 2.4 #1266 +/- ##
=============================================
- Coverage 70.27% 41.70% -28.57%
Complexity 292 292
=============================================
Files 42 296 +254
Lines 2395 17747 +15352
Branches 248 4277 +4029
=============================================
+ Hits 1683 7401 +5718
- Misses 571 10174 +9603
- Partials 141 172 +31
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Derek Ho <[email protected]>
Signed-off-by: Derek Ho <[email protected]>
The base branch was changed.
Signed-off-by: Derek Ho <[email protected]>
|
CI failed, retrying. not sure why recently bootstrap often fails |
Signed-off-by: Derek Ho [email protected]
Description
Keeps track of interval selected in the explorer and timechart header so that the interval is not reset whenever the query changes
Issues Resolved
#1249
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.