Skip to content

A registered data source is usable at once - #294

Merged
WaylandYang merged 2 commits into
devfrom
fix/a-registered-source-is-usable-at-once
Sep 4, 2026
Merged

WaylandYang merged 2 commits into
devfrom
fix/a-registered-source-is-usable-at-once

Conversation

@WaylandYang

Copy link
Copy Markdown
Contributor

Registering a data source created it but granted it to nobody, so mounting it into a base answered "not authorised" until someone clicked "grant to workspace" on the card. Workspaces are invisible in the UI (a single-tenant deployment has exactly one), so that step asked people to authorise something they had never seen.

POST /datasources now grants the new source to every workspace the registering user belongs to, right after the insert. The explicit grant/revoke endpoints are unchanged, so narrowing is still possible from the card.

cargo fmt, cargo clippy -D warnings pass.

🤖 Generated with Claude Code

WaylandYang and others added 2 commits September 4, 2026 10:32
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: Wayland Yang <wayland0916@gmail.com>
@WaylandYang
WaylandYang merged commit 90d8af4 into dev Sep 4, 2026
@WaylandYang
WaylandYang deleted the fix/a-registered-source-is-usable-at-once branch September 4, 2026 02:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant