OU-1040: feat: fix misaligned start dates by always loading 15 days#702
OU-1040: feat: fix misaligned start dates by always loading 15 days#702rioloc wants to merge 2 commits intoopenshift:mainfrom
Conversation
|
@rioloc: This pull request references OU-1040 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.22.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
Skipping CI for Draft Pull Request. |
|
@rioloc: This pull request references OU-1040 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.22.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
911057c to
c8240bd
Compare
|
@rioloc: This pull request references OU-1040 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.22.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
@rioloc: This pull request references OU-1040 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.22.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
@rioloc: This pull request references OU-1040 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.22.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
c8240bd to
0f5095a
Compare
|
/lgtm |
|
/cc @DavidRajnoha |
|
/hold |
|
/test-incidents |
|
/lgtm cancel |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: rioloc The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/test e2e-incidents |
| : incidentsData; | ||
|
|
||
| const filteredIncidents = groupFilteredIncidents.filter((incident) => { | ||
| const lastTimestamp = incident.values[incident.values.length - 1][0]; |
There was a problem hiding this comment.
Can the incident.values.length be equal to 0 (similar with alerts)? Should we check that?
There was a problem hiding this comment.
incident.values.length equal to 0 would mean having some incidents with no datapoints?
There was a problem hiding this comment.
yes probably yes. So it's probably an edge case right? Not sure how likely it is though.
0f5095a to
2385dcc
Compare
|
@rioloc: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
Closed due to alternative implementation in #749 |
This PR introduces the following change for the Incident component:
query_rangecall per dayIncidentsChartandAlertsCharthave been updated to filter out, from the 15 days data, the datapoints which are not incurrentTime - Last N DaysBefore
By downloading only datapoints for "Last N Days" the displayed
Startdate would be relative to N daysAfter
Startdisplays an absolute date, even when Last N Days is far in the future rather than the start dateLimit
Startwill always be limited to at max 15 days, because it is the max range we currently support. So if a metric is older than 15 days theStarttime will always be set to 15 days ago, and will change/increase as the time goes on.Video recording
recording.1.webm