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

kodiakhq[bot] merged 1 commit into
mainfrom
drew/fix-services-dashboard-timestamps

Conversation

@pulpdrew

@pulpdrew pulpdrew commented Jan 12, 2026 •

Copy link
Copy Markdown
Contributor

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

vercel Bot commented Jan 12, 2026 •

Copy link
Copy Markdown

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

changeset-bot Bot commented Jan 12, 2026

Copy link
Copy Markdown

🦋 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

claude Bot commented Jan 12, 2026

Copy link
Copy Markdown

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

@brandon-pereira brandon-pereira left a comment

Copy link
Copy Markdown
Member

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.

This branch was successfully deployed

1 active deployment
Preview — 563625d3 Deployed Jan 12, 2026 by vercel[bot]
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