Skip to content

feat(uptime-detector-ongoing-issues): Ignoring date selection for uptime ongoing issues#108144

Merged
Abdkhan14 merged 2 commits intomasterfrom
abdk/uptime-ongoing-issues
Feb 13, 2026
Merged

feat(uptime-detector-ongoing-issues): Ignoring date selection for uptime ongoing issues#108144
Abdkhan14 merged 2 commits intomasterfrom
abdk/uptime-ongoing-issues

Conversation

@Abdkhan14
Copy link
Contributor

Passing null leads to the consumers being a bit deliberate about their choice of time range.

@Abdkhan14 Abdkhan14 requested a review from a team as a code owner February 12, 2026 17:58
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Feb 12, 2026
@Abdkhan14 Abdkhan14 requested a review from jaydgoss February 12, 2026 18:21
Copy link
Member

@jaydgoss jaydgoss left a comment

Choose a reason for hiding this comment

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

Couple small nits

<DetectorDetailsOngoingIssues
detector={detector}
issueLinkExtraQuery={{includeUptime: '1'}}
dateTimeSelection={null}
Copy link
Member

@jaydgoss jaydgoss Feb 12, 2026

Choose a reason for hiding this comment

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

No test coverage for the null case. Would be nice to assert the issues request omits date params when dateTimeSelection={null}.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done, added some tests

const query = `is:unresolved detector:${detector.id}`;
const {selection} = usePageFilters();
const {start, end, period} = dateTimeSelection ?? {};
const queryParams = {
Copy link
Member

@jaydgoss jaydgoss Feb 12, 2026

Choose a reason for hiding this comment

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

nit: When dateTimeSelection is null, the "View All" link has no date params so the Issues page applies its own default (14d) — which differs from the backend's 90d default used for the inline list. Users might see fewer results after clicking through. (maybe not a problem)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done, used 90d as a default from the FE

@Abdkhan14 Abdkhan14 merged commit 8bc6fbd into master Feb 13, 2026
61 checks passed
@Abdkhan14 Abdkhan14 deleted the abdk/uptime-ongoing-issues branch February 13, 2026 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants