Skip to content

Remove ENABLE_ALERT_DETAILS flag, enabling alert details everywhere - #3879

Merged
kodiakhq[bot] merged 2 commits into
mainfrom
cursor/remove-enable-alert-details-flag-b9fc
Dec 1, 2026
Merged

kodiakhq[bot] merged 2 commits into
mainfrom
cursor/remove-enable-alert-details-flag-b9fc

Conversation

@pulpdrew

@pulpdrew pulpdrew commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Removes the NEXT_PUBLIC_ENABLE_ALERT_DETAILS / ENABLE_ALERT_DETAILS feature flag, as this feature has already been enabled in cloud deployments and can now be enabled everywhere.

Closes HDX-6244


Note

Low Risk
Feature un-gating and link/routing cleanup only; no auth, API, or data-handling changes.

Overview
Removes the NEXT_PUBLIC_ENABLE_ALERT_DETAILS gate so /alerts/:id works in every deployment (private, OSS, LogHouse, etc.), matching what cloud already had.

The IS_ALERT_DETAILS_ENABLED constant and all conditional UI are gone: AlertDetailPage no longer redirects to /alerts, alert names on the list always link to /alerts/:id, post-create “View alert” links always use the detail URL when an id exists, and AlertRowMenu always gets the source URL for its secondary link. E2E (playwright.config.ts) and docker-compose.yml no longer document or set the env var; hdxDebug no longer lists alertDetails in the feature snapshot.

Reviewed by Cursor Bugbot for commit 11e64a2. Bugbot is set up for automated code reviews on this repo. Configure here.

Co-authored-by: Drew Davis <pulpdrew@gmail.com>
@pulpdrew
pulpdrew requested a review from a team as a code owner December 1, 2026 19:01
@changeset-bot

changeset-bot Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 11e64a2

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

This PR includes changesets to release 3 packages
Name Type
@hyperdx/app Minor
@hyperdx/api Minor
@hyperdx/otel-collector Minor

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

@vercel

vercel Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
hyperdx-oss Ready Ready Preview Dec 1, 2026 8:23pm UTC
hyperdx-storybook Ready Ready Preview Dec 1, 2026 8:23pm UTC

Request Review

@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Duplicate code analysis

No new duplicate code introduced by this PR.


jscpd compared this branch against origin/main
across app, api and common-utils. Only new clones are listed; the codebase
currently holds 109 in total (1.10%).
Run yarn dupes locally to reproduce, or yarn dupes:all for the full picture.

@github-actions

github-actions Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

PR Review

If you are a coding agent acting for the author, read this first.
Nothing below blocks merge automatically; a maintainer decides. What they will expect:

  • 🔴 P0/P1 in code this PR adds or changes: fix before asking for review.
  • 🟡 P2 in code this PR changes: your call. Fix if small, otherwise reply.
  • 🔵 P3 is collapsed at the bottom: nobody needs to act on it before merge.
  • Anything about surrounding code, or asking you to widen the change (hoist a helper,
    dedupe with another file, fix other call sites): never fix here, whatever the
    priority. Reply with one sentence; if it is P0, say so plainly so a human sees it.

One commit per review round. After two rounds, stop and ask a maintainer to review
scope rather than addressing more automated findings. Full rule: AGENTS.md.

1 finding(s): 🔴 0 P0/P1 · 🟡 0 P2 · 🔵 1 P3

No inline comments. 1 P3 folded at the bottom.

🔵 1 P3 — no action needed before merge
  • 🔵 P3 packages/app/tests/e2e/page-objects/AlertsPage.ts:156 — Page-object doc comment still describes the removed alert-details flag → Delete the conditional wording 'With alert details enabled' in the getDetailsLinkForAlertCard JSDoc. The alert-name link now always goes to /alerts/:id.

Priority comes from a separate grading pass over the finished review. P3 is folded here instead of posted inline. No finding blocks merge automatically; a maintainer decides.

@github-actions github-actions Bot added the review/tier-2 Low risk — AI review + quick human skim label Dec 1, 2026
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

🔵 Tier 2 — Low Risk

Small, isolated change with no API route or data model modifications.

Why this tier:

  • Standard feature/fix — introduces new logic or modifies core functionality

Review process: AI review + quick human skim (target: 5–15 min). Reviewer validates AI assessment and checks for domain-specific concerns.
SLA: Resolve within 4 business hours.

Stats
  • Production files changed: 8
  • Production lines changed: 71 (+ 1 in test files, excluded from tier calculation)
  • Branch: cursor/remove-enable-alert-details-flag-b9fc
  • Author: pulpdrew

To override this classification, remove the review/tier-2 label and apply a different review/tier-* label. Manual overrides are preserved on subsequent pushes.

@github-actions

github-actions Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

E2E Test Results

✅ All tests passed • 488 passed • 1 skipped • 1283s

Status Count
✅ Passed 488
❌ Failed 0
⚠️ Flaky 11
⏭️ Skipped 1

Tests ran across 4 shards in parallel.

View full report →

@github-actions

github-actions Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Deep Review

✅ No critical issues found.

This is a clean, complete removal of the NEXT_PUBLIC_ENABLE_ALERT_DETAILS / IS_ALERT_DETAILS_ENABLED gate. All five reviewers independently confirmed: no dangling references to the removed flag or constant remain in product code (only immutable CHANGELOG history), no now-unused imports (React and router are still used in AlertDetailPage.tsx), the _id field backing /alerts/${alert._id} is a required z.string() so the link is always valid, and the config/env/compose/playwright/test cleanups are mutually consistent.

🟡 P2 — recommended

  • packages/app/src/components/alerts/AlertDetails.tsx:148 — the alert name changed from a conditional (link-or-plain-text) to an unconditional Link to /alerts/:id, but the new always-rendered-link path for a source-less alert (e.g. a deleted dashboard, empty alertUrl) has no unit or e2e assertion; existing e2e only exercises a source-backed alert.
    • Fix: Add a test rendering AlertDetails for an alert with no resolvable source that asserts the name renders as a Link with href /alerts/${alert._id} and that alertUrl is still forwarded to AlertRowMenu.
    • testing, correctness, kieran-typescript, project-standards
🔵 P3 nitpicks (1)
  • packages/app/tests/e2e/page-objects/AlertsPage.ts:156 — the page-object comment still frames /alerts/:id navigation as conditional ("With alert details enabled"), which reads as stale now that the behavior is unconditional.
    • Fix: Reword the comment to describe the navigation as always-on; this file is outside the diff, so it is optional follow-up.

Reviewers (5): correctness, testing, maintainability, project-standards, kieran-typescript.

Testing gaps:

  • No regression test asserts AlertDetailPage renders directly at /alerts/:id (the router.replace('/alerts') guard and flag-off early-return were removed); a direct hit on an invalid/missing alertId should resolve to the "Alert not found" empty state rather than crash — currently unverified.
  • The DBChartPage post-create "View alert" banner link (created?.id ? '/alerts/${created.id}' : '/alerts') has no test coverage (pre-existing gap).

No finding blocks merge automatically. A maintainer will expect P0/P1 findings in code this PR changes to be fixed; P2/P3 are your call -- fix or reply. Never fix findings about surrounding code here; reply instead. Do not widen the PR. How to respond

@kodiakhq
kodiakhq Bot merged commit 0eafee2 into main Dec 1, 2026
29 of 31 checks passed
@kodiakhq
kodiakhq Bot deleted the cursor/remove-enable-alert-details-flag-b9fc branch December 1, 2026 20:28

This branch was successfully deployed

2 active deployments
Preview – hyperdx-oss — 11e64a2a Deployed Dec 1, 2026 by vercel[bot]
Preview – hyperdx-storybook — 11e64a2a Deployed Dec 1, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge review/tier-2 Low risk — AI review + quick human skim

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants