refactor(taxonomic-filter): extract apmTaxonomicGroupsLogic#59823
Conversation
|
🎭 Playwright didn't run on this PR — your changes touch code that could affect E2E behavior, but Playwright is opt-in via label now to keep CI cost down. Add the Most PRs don't need this. Real regressions still get caught on master and fix-forward. |
|
Size Change: 0 B Total Size: 80 MB ℹ️ View Unchanged
|
2c4b3b7 to
60c0bf6
Compare
f7e45c0 to
4bb1804
Compare
|
👋 Visual changes detected for this PR. Review and approve in PostHog Visual Review If these changes are unexpected, they may be caused by a flaky test or a broken snapshot on master. Don't approve — rerun the job or wait for a fix. |
There was a problem hiding this comment.
There is an unresolved bot comment identifying a genuine copy-paste bug: the Spans localItemsSearch emits key: 'message' (copied from the Logs group) instead of key: 'name', which doesn't correspond to any span field and would silently produce wrong filter keys at runtime.
e493656 to
d9071cc
Compare
ba2589b to
4213f9e
Compare
New commits pushed (delta classified non_linear_history) — stamphog approval dismissed; re-review running automatically.
d9071cc to
6ee281a
Compare
4213f9e to
d8b59d5
Compare
New commits pushed (delta classified non_linear_history) — stamphog approval dismissed; re-review running automatically.
There was a problem hiding this comment.
Pure structural extract refactor — the new file is a verbatim lift of APM taxonomic group definitions from taxonomicFilterLogic.tsx, following the identical kea sub-logic pattern already used by cohortTaxonomicGroupsLogic, groupAnalyticsTaxonomicGroupsLogic, etc. No behavioral change is introduced; the flagged key: 'message' in the Spans group is demonstrably pre-existing, visible in the removed code of this same diff.
6ee281a to
559290c
Compare
d8b59d5 to
05180f3
Compare
New commits pushed (delta classified non_linear_history) — stamphog approval dismissed; re-review running automatically.
There was a problem hiding this comment.
Pure structural refactor — APM taxonomic group definitions are moved verbatim from taxonomicFilterLogic.tsx into a new sub-logic following the established kea pattern. No behavioral change; the flagged key: 'message' in Spans is demonstrably pre-existing in the removed code, and all inline bot comments were resolved.
559290c to
1297ec0
Compare
05180f3 to
1c9a1da
Compare
New commits pushed (delta classified non_linear_history) — stamphog approval dismissed; re-review running automatically.
There was a problem hiding this comment.
Pure structural refactor following the established kea sub-logic pattern identical to cohortTaxonomicGroupsLogic and peers. The flagged key: 'message' in the Spans group is a pre-existing bug confirmed by the removed code in this same diff (and also present in buildTaxonomicGroups.tsx), not introduced here. All inline bot comments were resolved with accurate explanations.
1c9a1da to
85ecedf
Compare
Eighth slice. The six OTel observability tabs — `Logs`, `Log
attributes`, `Resource attributes`, `Spans`, `Span attributes`,
`Span resource attributes` — were a cohesive cluster all using the
parent's `endpointFilters` selector. Moving them together also
retires that selector from the parent.
New `apmTaxonomicGroupsLogic.ts`:
- Connects to `projectLogic` for `currentProjectId`.
- Owns the `endpointFilters` selector (moved from parent) and a new
`apmTaxonomicGroups` selector returning the six-element array of
observability tabs.
Parent `taxonomicFilterLogic`:
- Connects to the new logic for `apmTaxonomicGroups`.
- Removes all six inline tab definitions, replaces with the spread.
- Drops `endpointFilters` selector and signature param. Net inputs
to `taxonomicGroups` stay at 15 (slot reused by the new connect
value).
No behaviour change.
Agent-written PR. Tests:
- `hogli test frontend/src/lib/components/TaxonomicFilter/` —
362/362 pass.
- TS check on touched files — clean.
Largest single block extracted so far (±140 lines pulled out of the
parent). All six tabs share the same `endpointFilters` and the same
`/api/environments/$projectId/{logs,tracing}/` URL family, so they
cluster naturally.
Generated-By: PostHog Code
Task-Id: 2649f7ae-c1f7-40ae-8866-be024f3f1285
Generated-By: PostHog Code Task-Id: 2649f7ae-c1f7-40ae-8866-be024f3f1285
85ecedf to
5b59b54
Compare
New commits pushed (delta classified non_linear_history) — stamphog approval dismissed; re-review running automatically.
There was a problem hiding this comment.
Pure structural extraction refactor — the new file is a verbatim lift of APM taxonomic group definitions following the exact same kea sub-logic pattern used by cohortTaxonomicGroupsLogic and peers. The key: 'message' in the Spans group is demonstrably pre-existing, visible in the removed code of this same diff, and not introduced here. No behavioral change.
Merge activity
|

Problem
Changes
How did you test this code?
👉 Stay up-to-date with PostHog coding conventions for a smoother review.
Publish to changelog?
Docs update
🤖 Agent context