Repository navigation
refactor: migrate Supabase.Storage into the monorepo under packages/Storage - #305
Merged
Merged
Conversation
…torage Move the Supabase.Storage package from the standalone storage-csharp repo into packages/Storage, and convert its Supabase.Core dependency from a NuGet PackageReference to a ProjectReference on the in-repo Core. Rename the test project StorageTests -> Storage.Tests (folder, assembly name, root namespace, namespaces) and update the InternalsVisibleTo in Helpers.cs to match. Drop the legacy StorageTests/db and prepare-infra.sh path (the E2E tests target the local `supabase start` storage API, which CI already uses). Keep the per-package README and icon; rely on the single root .editorconfig and LICENSE. Register both projects in Supabase.sln. Fold Storage's E2E fixtures into a new supabase/ seed migration (1751173700_storage_dummy_data.sql): the buckets, objects and RLS policies only, reusing the inian+*@supabase.io owners already seeded by 1751173629_dummy_data.sql and the storage schema the local stack provides.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Monorepo migration — PR 4 (Supabase.Storage)
Moves Supabase.Storage into
packages/Storage/, converts itsSupabase.Coredependency to a ProjectReference, and folds Storage's E2E fixtures into the shared stack. No production API, namespace, or NuGet-id changes.What changed
storage-csharpintopackages/Storage/(Storage/+Storage.Tests/).PackageReference Supabase.Core 1.2.0→ProjectReference ..\..\Core\Core\Core.csproj.StorageTests→Storage.Tests(folder, assembly name, root namespace,namespaces);[assembly: InternalsVisibleTo]inHelpers.csupdated to match.StorageTests/db/(duplicated schema SQL) and theprepare-infra.shserver-clone path are not carried over — the E2E tests target the localsupabase startstorage API (:54321/storage/v1), which is exactly what Storage CI already uses (itsprepare-infrastep is commented out).supabase/migrations/1751173700_storage_dummy_data.sqlseeds only the storage buckets, objects, and RLS policies, reusing theinian+*@supabase.ioowners already seeded by1751173629_dummy_data.sql(so no duplicateauth.usersinsert) and the storage schema the local stack provides. Noconfig.tomlchange needed.README.md+icon.pngkept; root.editorconfig/LICENSEreused. Both projects registered inSupabase.sln.Verification (local stack up, after
supabase db reset)dotnet build→ 0 errors (116 pre-existing CS1591 doc-comment warnings from Storage'sGenerateDocumentationFile, unchanged from source).Storage.Tests(Unit + Contract + E2E) → 156/156 passing; 5 buckets seeded.Deferred (unchanged)
.gitmodulescleanup, CI/release plumbing. Umbrella still consumesSupabase.Storage/Supabase.Corevia NuGet until the umbrella PR.