Skip to content

Conversation

@rioloc
Copy link
Member

@rioloc rioloc commented Dec 18, 2025

This PR introduces the following change for the Incident component:

  • The UI always load data for 15 days, still executing a query_range call per day
  • IncidentsChart and AlertsChart have been updated to filter out, from the 15 days data, the datapoints which are not in currentTime - Last N Days

Before

By downloading only datapoints for "Last N Days" the displayed Start date would be relative to N days

After

Start displays an absolute date, even when Last N Days is far in the future rather than the start date

Limit

Start will 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 the Start time will always be set to 15 days ago, and will change/increase as the time goes on.

Video recording

recording.1.webm

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Dec 18, 2025
@openshift-ci-robot
Copy link

openshift-ci-robot commented Dec 18, 2025

@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.

Details

In response to this:

This PR introduces the following change for the Incident component:

  • The UI always load data for 15 days with a single query_range call, instead of having a call per day. This is achieved by changing the getIncidentsTimeRanges function.
  • IncidentsChart and AlertsChart have been updated to filter out, from the 15 days data, the one which are not in currentTime - Last N Days

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.

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 18, 2025
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 18, 2025

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@openshift-ci-robot
Copy link

openshift-ci-robot commented Dec 18, 2025

@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.

Details

In response to this:

This PR introduces the following change for the Incident component:

  • The UI always load data for 15 days with a single query_range call, instead of having a call per day. This is achieved by changing the getIncidentsTimeRanges function.
  • IncidentsChart and AlertsChart have been updated to filter out, from the 15 days data, the one which are not in currentTime - Last N Days

Before

By downloading only datapoints for "Last N Days" the displayed Start date would be relative to N days

After

Start displays an absolute date, even when Last N Days is far in the future rather than the start date

Video recording

recording.1.webm

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 rioloc force-pushed the feat/align_start_dates branch 2 times, most recently from 911057c to c8240bd Compare January 2, 2026 15:48
@openshift-ci-robot
Copy link

openshift-ci-robot commented Jan 2, 2026

@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.

Details

In response to this:

This PR introduces the following change for the Incident component:

  • The UI always load data for 15 days, still executing a query_range call per day
  • IncidentsChart and AlertsChart have been updated to filter out, from the 15 days data, the one which are not in currentTime - Last N Days

Before

By downloading only datapoints for "Last N Days" the displayed Start date would be relative to N days

After

Start displays an absolute date, even when Last N Days is far in the future rather than the start date

Video recording

recording.1.webm

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.

@openshift-ci-robot
Copy link

openshift-ci-robot commented Jan 2, 2026

@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.

Details

In response to this:

This PR introduces the following change for the Incident component:

  • The UI always load data for 15 days, still executing a query_range call per day
  • IncidentsChart and AlertsChart have been updated to filter out, from the 15 days data, the datapoints which are not in currentTime - Last N Days

Before

By downloading only datapoints for "Last N Days" the displayed Start date would be relative to N days

After

Start displays an absolute date, even when Last N Days is far in the future rather than the start date

Video recording

recording.1.webm

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.

@openshift-ci-robot
Copy link

openshift-ci-robot commented Jan 2, 2026

@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.

Details

In response to this:

This PR introduces the following change for the Incident component:

  • The UI always load data for 15 days, still executing a query_range call per day
  • IncidentsChart and AlertsChart have been updated to filter out, from the 15 days data, the datapoints which are not in currentTime - Last N Days

Before

By downloading only datapoints for "Last N Days" the displayed Start date would be relative to N days

After

Start displays an absolute date, even when Last N Days is far in the future rather than the start date

Limit

Start will 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 the Start time will always be set to 15 days ago, and will change/increase as the time goes on.

Video recording

recording.1.webm

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 rioloc force-pushed the feat/align_start_dates branch from c8240bd to 0f5095a Compare January 2, 2026 17:15
@rioloc rioloc marked this pull request as ready for review January 2, 2026 17:15
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jan 2, 2026
@openshift-ci openshift-ci bot requested review from jgbernalp and zhuje January 2, 2026 17:15
@falox
Copy link
Contributor

falox commented Jan 5, 2026

/lgtm

@falox
Copy link
Contributor

falox commented Jan 5, 2026

/cc @DavidRajnoha

@openshift-ci openshift-ci bot requested a review from DavidRajnoha January 5, 2026 12:50
@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jan 5, 2026
@rioloc
Copy link
Member Author

rioloc commented Jan 5, 2026

/hold

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 5, 2026
@DavidRajnoha
Copy link
Contributor

/test-incidents

@falox
Copy link
Contributor

falox commented Jan 5, 2026

/lgtm cancel

@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Jan 5, 2026
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 5, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: rioloc
Once this PR has been reviewed and has the lgtm label, please assign zhuje for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@DavidRajnoha
Copy link
Contributor

/test e2e-incidents

: incidentsData;

const filteredIncidents = groupFilteredIncidents.filter((incident) => {
const lastTimestamp = incident.values[incident.values.length - 1][0];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can the incident.values.length be equal to 0 (similar with alerts)? Should we check that?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

incident.values.length equal to 0 would mean having some incidents with no datapoints?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes probably yes. So it's probably an edge case right? Not sure how likely it is though.

@rioloc rioloc force-pushed the feat/align_start_dates branch from 0f5095a to 2385dcc Compare January 8, 2026 17:06
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 8, 2026

@rioloc: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-monitoring 2385dcc link false /test e2e-monitoring
ci/prow/e2e-aws-ovn 2385dcc link true /test e2e-aws-ovn

Full PR test history. Your PR dashboard.

Details

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 kubernetes-sigs/prow repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants