Skip to content

Show and copy the SQL for a selected package version - #551

Open
mangeshraut712 wants to merge 2 commits into
supabase:masterfrom
mangeshraut712:feat/version-sql-on-demand
Open

mangeshraut712 wants to merge 2 commits into
supabase:masterfrom
mangeshraut712:feat/version-sql-on-demand

Conversation

@mangeshraut712

Copy link
Copy Markdown

Fixes #204. On the Versions tab, expand View SQL for the desired package version to inspect its source or copy the exact text into a migration. SQL is fetched only when expanded.

The integration test renders two versions, checks that there is no initial SQL fetch, expands the second and verifies both the selected ID and clipboard contents (including the final newline). With the registry mocked, all 25 website tests passed under TZ=UTC and TypeScript passed after generating the documentation types. In the local timezone the existing timestamp search test failed; the new regression passed in both runs.

@vercel

vercel Bot commented Nov 29, 2026

Copy link
Copy Markdown

@mangeshraut712 is attempting to deploy a commit to the Supabase Team on Vercel.

A member of the Team first needs to authorize it.

@mangeshraut712

Copy link
Copy Markdown
Author

Follow-up at 7af4d69: I reproduced a denied clipboard write locally. The previous button marked the operation as successful immediately. The shared button now waits for the clipboard write and reports a failure if it is rejected.

The new regression failed before the fix. After the fix, all 26 website tests passed with TZ=UTC, and TypeScript passed with tsc --noEmit. The existing SQL-copy test still verifies exact clipboard content. These checks ran locally without a live registry.

This branch has not been deployed

No deployments
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.

make it easy to copy the contents of a TLE into a migration file

1 participant