Skip to content

Run the Data Contract Editor behind the Jupyter proxy - #164

Merged
tmetzl merged 2 commits into
devfrom
fix/prefect-datacontract-ui
Nov 16, 2026
Merged

tmetzl merged 2 commits into
devfrom
fix/prefect-datacontract-ui

Conversation

@tmetzl

@tmetzl tmetzl commented Nov 16, 2026

Copy link
Copy Markdown
Member

datacontract edit doesn't work on the hub: the editor page loads its assets and API from root paths (/editor/…, /api/files/…, /test), which miss the proxy prefix (/user/<name>/proxy/4243/).

  • Adds start-datacontract-editor to the prefect-notebook image. It rewrites those paths on the editor page to relative ones, then runs the normal datacontract edit, and prints the URL to open.
  • Fails with a clear error if a future datacontract-cli changes the page (written against 1.2.10).

Usage: start-datacontract-editor mein-contract.odcs.yaml --language de

@tmetzl tmetzl added bug Something isn't working notebook image labels Nov 16, 2026
@tmetzl
tmetzl merged commit c419311 into dev Nov 16, 2026
2 checks passed
@tmetzl
tmetzl deleted the fix/prefect-datacontract-ui branch November 17, 2026 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working image notebook

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant