Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(eng-analytics): repair stale detail-page links (#72002)

Raúl Negrón-Otero163a68720f17
diff --git a/.github/scripts/ci-alerts-devex.js b/.github/scripts/ci-alerts-devex.js
index 680f257cec04..c2fa02a17e69 100644
--- a/.github/scripts/ci-alerts-devex.js
+++ b/.github/scripts/ci-alerts-devex.js
@@ -299,8 +299,10 @@ const slackEscape = (text) => String(text).replace(/&/g, '&amp;').replace(/</g,
// A workflow's run history on master, in engineering analytics — where you can see all of its
// runs at a glance. The path key is the workflow's GitHub display name (e.g. "Backend CI").
+// Detail pages live under a `repos/` prefix, mirroring GitHub's REST shape — see that product's
+// manifest `urls.engineeringAnalyticsWorkflowRuns`, which this must stay in step with.
function runsUrlFor(owner, repo, workflowName) {
- return `${ENG_ANALYTICS_BASE}/${owner}/${repo}/actions/workflows/${encodeURIComponent(workflowName)}?q=master`
+ return `${ENG_ANALYTICS_BASE}/repos/${owner}/${repo}/actions/workflows/${encodeURIComponent(workflowName)}?q=master`
}
// Read-boundary normalizer for persisted incident workflows: tolerate an older
diff --git a/.github/scripts/ci-alerts-devex.test.js b/.github/scripts/ci-alerts-devex.test.js
index fd2be563c1d1..d1767f77b333 100644
--- a/.github/scripts/ci-alerts-devex.test.js
+++ b/.github/scripts/ci-alerts-devex.test.js
@@ -180,7 +180,7 @@ describe('ci-alerts-devex', () => {
assert.match(body, /Backend CI/)
assert.match(body, /5 failed runs in a row/)
// per-workflow link → engineering analytics workflow detail, scoped to master
- assert.match(body, /engineering-analytics\/PostHog\/posthog\/actions\/workflows\/Backend%20CI\?q=master/)
+ assert.match(body, /engineering-analytics\/repos\/PostHog\/posthog\/actions\/workflows\/Backend%20CI\?q=master/)
assert.equal(anchor.metadata.event_type, 'master_ci_incident')
assert.equal(anchor.metadata.event_payload.status, 'active')
assert.deepEqual(
@@ -224,7 +224,7 @@ describe('ci-alerts-devex', () => {
const thread = slack.postMessage.calls[0][0].text
assert.match(thread, /now also failing/)
assert.match(thread, /Frontend CI/)
- assert.match(thread, /engineering-analytics\/PostHog\/posthog\/actions\/workflows\/Frontend%20CI\?q=master/)
+ assert.match(thread, /engineering-analytics\/repos\/PostHog\/posthog\/actions\/workflows\/Frontend%20CI\?q=master/)
})
it('strikes through the anchor and threads recovery on resolve', async () => {
diff --git a/products/engineering_analytics/backend/management/commands/seed_engineering_analytics.py b/products/engineering_analytics/backend/management/commands/seed_engineering_analytics.py
index 2178fe65b4a2..35ff2c01a940 100644
--- a/products/engineering_analytics/backend/management/commands/seed_engineering_analytics.py
+++ b/products/engineering_analytics/backend/management/commands/seed_engineering_analytics.py
@@ -832,7 +832,7 @@ class Command(BaseCommand):
)
)
self.stdout.write(
- f"Multi-push demo PR: /project/{team.pk}/engineering-analytics/PostHog/posthog/pull/{_DEMO_PR_NUMBER}"
+ f"Multi-push demo PR: /project/{team.pk}/engineering-analytics/repos/{SEED_REPOSITORY}/pull-requests/{_DEMO_PR_NUMBER}"
)
def _load_fixture(self, fixture_dir: Path, filename: str) -> list[dict[str, Any]]: