Skip to content

fix: Respect date range URL params on Services dashboard#1594

Merged
kodiakhq[bot] merged 1 commit into
mainfrom
drew/fix-services-dashboard-timestamps
Jan 12, 2026
Merged

fix: Respect date range URL params on Services dashboard#1594
kodiakhq[bot] merged 1 commit into
mainfrom
drew/fix-services-dashboard-timestamps

Conversation

@pulpdrew
Copy link
Copy Markdown
Contributor

@pulpdrew pulpdrew commented Jan 12, 2026

Closes HDX-3189

Summary

This PR fixes a bug that caused the services dashboard to reset to the default time range on each page load, rather than respecting the URL date range params.

The cause was that a couple of useEffects were firing at page load, and submitting a new date range.

@vercel
Copy link
Copy Markdown

vercel Bot commented Jan 12, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
hyperdx-v2-oss-app Ready Ready Preview, Comment Jan 12, 2026 5:07pm

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jan 12, 2026

🦋 Changeset detected

Latest commit: 563625d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@hyperdx/app Patch
@hyperdx/api Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@claude
Copy link
Copy Markdown

claude Bot commented Jan 12, 2026

Code Review

No critical issues found.

The fix correctly addresses the bug where Services dashboard was resetting to default time range on page load. The implementation:

  • ✅ Properly preserves URL time range params when auto-submitting on sourceId/service changes
  • ✅ Still updates time range on manual form submissions (via TimePicker, search inputs)
  • ✅ Type-safe with default parameter value
  • ✅ Clean, maintainable pattern
  • ✅ Changeset properly documented

The logic is sound: useNewTimeQuery reads time params from URL (timeQuery.ts:469-493), and this PR ensures those params aren't overridden during auto-submits.

@github-actions
Copy link
Copy Markdown
Contributor

E2E Test Results

All tests passed • 60 passed • 4 skipped • 744s

Status Count
✅ Passed 60
❌ Failed 0
⚠️ Flaky 0
⏭️ Skipped 4

Tests ran across 4 shards in parallel.

View full report →

@pulpdrew pulpdrew requested review from a team and brandon-pereira and removed request for a team January 12, 2026 17:12
Copy link
Copy Markdown
Member

@brandon-pereira brandon-pereira left a comment

Choose a reason for hiding this comment

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

LGTM!

@kodiakhq kodiakhq Bot merged commit 5b25221 into main Jan 12, 2026
14 checks passed
@kodiakhq kodiakhq Bot deleted the drew/fix-services-dashboard-timestamps branch January 12, 2026 17:48
knudtty pushed a commit that referenced this pull request Apr 16, 2026
Closes HDX-3189

# Summary

This PR fixes a bug that caused the services dashboard to reset to the default time range on each page load, rather than respecting the URL date range params.

The cause was that a couple of `useEffects` were firing at page load, and submitting a new date range.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants