Skip to content
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

Loss of data configuration when updating branches on Supabase #23211

Closed
Pierre-Saigot opened this issue Apr 24, 2024 · 4 comments
Closed

Loss of data configuration when updating branches on Supabase #23211

Pierre-Saigot opened this issue Apr 24, 2024 · 4 comments
Labels
branching Issues related to the branching feature bug Something isn't working

Comments

@Pierre-Saigot
Copy link

Pierre-Saigot commented Apr 24, 2024

Bug report

Describe the bug

When updating branches (only in dev branch) on Supabase, configured data such as connection providers and the site URL lose their configuration and reset each time. Visually, the data appears to be present in Supabase, but their configuration is lost in the branch update process. For example, Google connection settings require deactivation and reactivation with each branch update to take effect. Additionally, the site URL reverts to "localhost" after each branch update, despite visually appearing correct in the interface.

Environnement

  • Supabase Hosted
  • Cloud provider : AWS | EU-CENTRAL-1
  • GoTrue Version : 2.148.0
  • PostgREST version : 12.0.2
  • Postgres version : 15.1.1.41

Ask

We agree that my local directory 'supabse' containing 'config.yaml' is not used in the hosted version and is not used to configure my branches such as 'dev,' correct? Because I haven't added it to my gitignore. If Supabase uses this configuration file to set the parameters of my branch, that might be the issue.
I haven't configured my information such as site_url or provider_google in this file at all.

@Pierre-Saigot Pierre-Saigot added the bug Something isn't working label Apr 24, 2024
@encima encima added the branching Issues related to the branching feature label Apr 24, 2024
@encima
Copy link
Contributor

encima commented Apr 24, 2024

Hello @Pierre-Saigot ,
The branching discussion is the best place for the ask question (correct, the config file is not used)

As for the issue, thanks for opening! To summarise:
when updating a branch, the settings may show correctly in the dashboard but they are reset

is that right?

@Pierre-Saigot
Copy link
Author

Hello @Pierre-Saigot , The branching discussion is the best place for the ask question (correct, the config file is not used)

As for the issue, thanks for opening! To summarise: when updating a branch, the settings may show correctly in the dashboard but they are reset

is that right?

Yes, that's correct. Let's take the example of the "Site URL" configuration. On my master branch and on my dev branch, I have set it to "app.mysite.com". After pushing to my dev branch, I notice that the API responses return "localhost" instead of "app.mysite.com". However, when I check the Supabase interface, it correctly shows "app.mysite.com". So, I manually update the input by pressing "save", and then it works. The API returns the correct site URL again.

@encima
Copy link
Contributor

encima commented Apr 25, 2024

Thanks! Will raise this to the branching team and feedback!

@sweatybridge
Copy link
Contributor

This has been fixed on the platform side. Feel free to reopen if the config still doesn't persist after push.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
branching Issues related to the branching feature bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants