Branching - Early access | Feedback discussion #18937
Replies: 219 comments 549 replies
-
What is Supabase Branching? |
Beta Was this translation helpful? Give feedback.
-
Hope you're all doing great! I've been working with supabase on a project for 2 months and noticed something I wanted to share with you that would cause issues for supabase branching. As our projects grow, our seed file (you know, the trusty I've been sidestepping this by ditching the massive seed file and scripting my local database seeding instead. It's a lot like how migrations work: each file is timestamped and has a quick description, and they run in a set order. This means I have separate files for different seeding needs, like permission tables and location table inserts broken down into 1K-insert chunks – it’s pretty neat. Currently, Supabase runs whatever is in I reckon this could be something worth considering for your roadmap for seeding a branch. Thanks for all the hard work you've been putting into Supabase, and I'm excited to see how branching evolves! |
Beta Was this translation helpful? Give feedback.
-
if new branch is created, new Supabase url for client is reserved on new branch?? I maen if I use following url on main branch Can I use a different url for a new branch like staging? For example, |
Beta Was this translation helpful? Give feedback.
-
Can branching be used as a "dev" environment? |
Beta Was this translation helpful? Give feedback.
-
According to the docs: "The database is only seeded once, when the preview branch is created. To rerun seeding, delete the preview branch and recreate it." But when I deleted and recreated the branch ( |
Beta Was this translation helpful? Give feedback.
-
So far pretty good with supabase branching. Should I disable my existing github actions that migrate the production database when merging to the production branch? Is it expected that the migrations should be applied via this new Supabase branching integration? |
Beta Was this translation helpful? Give feedback.
-
@MildTomato does supabase branching support monorepos? Our |
Beta Was this translation helpful? Give feedback.
-
any advice on how to handle issues like this that require setting up things in the database (eg. webhooks)? ![]() |
Beta Was this translation helpful? Give feedback.
-
Hello! Loving the concept so far. After spending some time working around issues (seeding not being run and functions not being deployed), I realised you have a CLI for managing branches (which looks great btw!), and I think it could be highlighted more, as I was under the impression that only the "managed" workflows were supported (i.e only Github + Vercel), but atleast for me the feature set is complete enough that I could run this anywhere (and if i missed that that was possible, many others probably have too) |
Beta Was this translation helpful? Give feedback.
-
We are in dire need of selecting non root directories as the Supabase root. We are using a monorepo with TurboRepo. |
Beta Was this translation helpful? Give feedback.
-
Currently, we're testing each branch by setting up a local supabase instance in GH Actions for every run. But that setup takes a significant amount of time compared to the actual test run. The flow that we have in mind is:
Are there any blockers that we should be aware of? Moreover, once this is set up and the Vercel app is used, I'm assuming the preview instances will use the new branched supabase. We also don't want any changes in the preview branches going back into main (which I assume will not happen as we are not using supabase migrations in the preview branches). Can you please confirm this? |
Beta Was this translation helpful? Give feedback.
-
Feedback/idea: It'd be nice (or even crucial) for the preview branch to copy most local and/or production branch settings. Examples:
|
Beta Was this translation helpful? Give feedback.
-
For some reason I'm not seeing migrations running or seed data populated for a preview branch (feature or development). When I create a PR, it's spinning up the branch, just no tables or seed data. |
Beta Was this translation helpful? Give feedback.
-
We handle our migrations via Prisma migrate. Are there any plans to support the |
Beta Was this translation helpful? Give feedback.
-
Hey Folks I want to Setup a Supa Base Branching for the Automation Testing so the scenario is Below So how i can do it can anyone help me out in this Thanks in Advance. |
Beta Was this translation helpful? Give feedback.
-
Would it be possible to add something to |
Beta Was this translation helpful? Give feedback.
-
Hello everyone I am here new i want to know that here was for my project recently which was created based on Health care website so i want to know that how should we basically setup proper frontend and supabase properly i am here new and now for these project i am ooking for long term as business if there any issues come in future this is will be secure or not I want to know |
Beta Was this translation helpful? Give feedback.
-
While the branching idea is a great one, it fails for a variety of reasons:
|
Beta Was this translation helpful? Give feedback.
-
I am checking in on timing for SMTP settings being a part of the automated branch setup. Not sure where this ranks amongst all the other things going on here for this amazing Supabase feature. |
Beta Was this translation helpful? Give feedback.
-
use dashboard create branch, it shows
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Hello, I'm experiencing flakiness when creating branches w/ the CLI, The command
always creates a branch that, within a few minutes, is in But then, after waiting until it is ACTIVE_HEALTHY before executing The error is However for some branches, the I've tried instead not linking and directly using |
Beta Was this translation helpful? Give feedback.
-
Is it possible to have supabase branches point to a different git repo instead of branches within a single git repo? |
Beta Was this translation helpful? Give feedback.
-
Potential Bug When I create a branch on the dashboard, and make any changes to that branch, then open a merge request, that merge request always looks like -- ...
-- A BUNCH OF VALID MIGRATIONS ABOVE HERE
drop trigger if exists "enforce_bucket_name_length_trigger" on "storage"."buckets";
drop trigger if exists "objects_delete_delete_prefix" on "storage"."objects";
drop trigger if exists "objects_insert_create_prefix" on "storage"."objects";
drop trigger if exists "objects_update_create_prefix" on "storage"."objects";
drop trigger if exists "prefixes_create_hierarchy" on "storage"."prefixes";
drop trigger if exists "prefixes_delete_hierarchy" on "storage"."prefixes"; Essentially, a bunch of valid migrations followed by these random And when I attempt to merge it, the migrations fail with the following error
Anyone else having this issue or know how to resolve? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
@sweatybridge is branch creation down? multiple ci cd pr pipelines that were working started failing on branch creations or migrations. Nothing on supabase status. ![]() https://supabase.com/dashboard/project/utbqyoljckhpypteosjq |
Beta Was this translation helpful? Give feedback.
-
I'd really like to be able to create a database branch independent of a git branch. I was hoping to use it to test some potentially slow, complicated data transformations that are not ready to be committed or run on the production database. Instead I'll need to find a different approach. |
Beta Was this translation helpful? Give feedback.
-
This might be a silly question, and I have searched this page. We are playing with the Dashboard Branch preview feature without github attached right now for a new small project without local dev environments. We can not figure out how to create a Merge Request if there is no github integration in the UI.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This discussion is for tracking feedback and possible issues for Supabase Branching.
This will help us plan a roadmap for the feature going forward.
Vote for hosting provider integrations here and Git providers here.
Beta Was this translation helpful? Give feedback.
All reactions