Open
Conversation
… table of a project, replace nullish coalescing operator with logical OR operator in supabase syncing process to select branch Id or product Id
Collaborator
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
Contributor
Greptile OverviewGreptile SummaryThis PR adds support for Supabase project branches, enabling users with PRO subscriptions to sync secrets to specific branches instead of only the main branch. Key Changes:
Implementation Details:
Minor Issues Found:
Confidence Score: 4.5/5
Important Files Changed
|
backend/src/services/app-connection/supabase/supabase-connection-public-client.ts
Show resolved
Hide resolved
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
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.
Context
Discussion/feature request: #5139
Supabase projects allow the creation of branches for different environments with a subscription. Currently, when creating a secrets sync in Infisical with a Supabase integration, there is no option to select the branch of the project, if more than one exists. By default, all secrets are synced to the main branch. These changes add the functionality of selecting a project branch.
Current version
New Version
Steps to verify the change
A Supabase project with a PRO subscription and two or more branches is required to verify that secrets are synced.
Type
Checklist
type(scope): short description(scope is optional, e.g.,fix: prevent crash on syncorfix(api): handle null response).