Skip to content

fix: extraction rule executions route to mapping execution pages - #6718

Open
Prabal864 wants to merge 1 commit into
keephq:mainfrom
Prabal864:fix/extraction-execution-routing
Open

fix: extraction rule executions route to mapping execution pages#6718
Prabal864 wants to merge 1 commit into
keephq:mainfrom
Prabal864:fix/extraction-execution-routing

Conversation

@Prabal864

Copy link
Copy Markdown
Contributor

What

Fixes #6703.

Clicking an execution row on the extraction rule executions page opened the mapping rule execution detail page instead. Even navigating directly to the extraction execution URL fetched mapping data.

Root cause

  • ExecutionsTable's row click handler hard-coded /mapping/${row.rule_id}/executions/${row.id}, with no way for a caller to route elsewhere.
  • The extraction execution detail page called useEnrichmentEvent({ ruleId, executionId }) without type: "extraction", and that hook defaults type to "mapping", so it hit the /mapping/... API endpoint regardless of the URL.

Fix

  • Added an optional basePath prop to ExecutionsTable ("mapping" | "extraction", defaults to "mapping" so the existing mapping pages are unaffected) and used it in the row-click navigation instead of the hard-coded path.
  • Passed basePath="extraction" from the extraction executions list page.
  • Passed type: "extraction" explicitly from the extraction execution detail page so it fetches from the correct endpoint.

Testing

  • Added components/table/__tests__/ExecutionsTable.test.tsx covering both the default (mapping) and basePath="extraction" row-click routing.
  • npx jest — full suite: 52 suites / 468 tests pass.
  • npx eslint on all changed files — clean.
  • npx tsc --noEmit — no new errors (18 pre-existing errors on main, unrelated to these files, unchanged).

@dosubot dosubot Bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Aug 21, 2026
@CLAassistant

CLAassistant commented Aug 21, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

ExecutionsTable hard-coded /mapping/ in its row click handler, so
clicking an execution row on the extraction executions page opened
the mapping execution detail page instead. The extraction detail
page also omitted type: "extraction" when calling useEnrichmentEvent,
so even a direct visit fetched /mapping/... data.

Add a basePath prop to ExecutionsTable (default mapping, preserving
existing behavior) and pass it from the extraction executions page.
Pass type: "extraction" explicitly from the extraction detail page.

Fixes keephq#6703
@Prabal864
Prabal864 force-pushed the fix/extraction-execution-routing branch from d6d7ab4 to f424a0c Compare August 21, 2026 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[🐛 Bug]: Extraction rule execution page includes a mapping rule reference

2 participants