Skip to content

[Studio] Load live preview column headers in resolver & processing steps#639

Merged
markus-moser merged 2 commits into
2.4from
fix/resolver-step-live-column-headers
Jun 15, 2026
Merged

[Studio] Load live preview column headers in resolver & processing steps#639
markus-moser merged 2 commits into
2.4from
fix/resolver-step-live-column-headers

Conversation

@markus-moser

@markus-moser markus-moser commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Changes in this pull request

The "Data Source Index" selects in the resolver and processing steps read their columns from configData.columnHeaders, which only reflects the persisted config — running a preview doesn't invalidate that query, so the selects stayed empty until a save/reload.

Add a shared useColumnHeaderOptions hook that loads the columns live from the current loader/interpreter config (the same endpoint the mapping step uses), and use it for both steps. Also removes the duplicated header-mapping that lived in both components.

Additional info

Related to #637

@markus-moser markus-moser force-pushed the fix/resolver-step-live-column-headers branch from 2e28e68 to 9283ff8 Compare June 15, 2026 11:05
The resolver and processing steps' Data Source Index selects read columns
from configData.columnHeaders, which reflects only the persisted config —
running a preview does not invalidate that query, so the selects stayed
empty until a save/reload.

Add a shared useColumnHeaderOptions hook that loads the columns live from
the current loader/interpreter config (the endpoint the mapping step uses).
data-setup-tab owns a previewVersion counter that the preview step bumps on
copy-from-source and upload; the hook refetches when it changes, so columns
stay in sync with the preview data without refetching on every visit.
Config changes refetch on their own via the query key.
@markus-moser markus-moser force-pushed the fix/resolver-step-live-column-headers branch from 8294b20 to 6e47349 Compare June 15, 2026 11:59
@sonarqubecloud

Copy link
Copy Markdown

@markus-moser markus-moser added this to the 2.4.5 milestone Jun 15, 2026
@markus-moser markus-moser marked this pull request as ready for review June 15, 2026 12:03
@markus-moser markus-moser merged commit e6dea20 into 2.4 Jun 15, 2026
1 check passed
@markus-moser markus-moser deleted the fix/resolver-step-live-column-headers branch June 15, 2026 12:04
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 15, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant