-
Notifications
You must be signed in to change notification settings - Fork 162
Fix MotherDuck connector creation from welcome screen #8546
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@ericokuma can you do PROD check here, since you know exact steps to replciate |
ericokuma
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works now! There is another UX issue filed here: https://linear.app/rilldata/issue/APP-662/hitting-500-error-after-adding-motherduck-live-connection
|
Let's try to cherry pick this into 0.78 if possible |
|
FWIW, I see this error message in my terminal when connecting to MotherDuck:
|
|
A few observations while reviewing this change: Rollback coverage for connector file creation failure If A single try-catch covering both the Inconsistent ordering between "Test and Connect" and "Save Anyway" This PR fixes the ordering for "Test and Connect" ( Test coverage The checklist indicates this isn't covered by tests. Given the subtle ordering requirements here (secrets must exist before connector reconciliation), an integration test that exercises the welcome flow for MotherDuck would help prevent regressions. Developed in collaboration with Claude Code |
Addressed them! |
7cb1cbd to
4b89db3
Compare
This PR fixes MotherDuck connector creation from the welcome screen by writing
.envfirst. In submitAddDataForm.ts, the .env secrets are now written (and reconciled) before the connector file is created, ensuring the MotherDuck token exists before the connector’s first reconciliation. This prevents the “map has no entry for key connector” error that was causing the rollback/deletion of the connector file in the uninitialized/welcome flow.Closes https://linear.app/rilldata/issue/APP-660/bugs-with-clickhouse-and-motherduck-connector-experiences
Checklist: