-
Notifications
You must be signed in to change notification settings - Fork 271
feat(dashboard-api): supabase auth users sync background runner #2247
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
Open
ben-fornefeld
wants to merge
23
commits into
main
Choose a base branch
from
feature/supabase-users-sync-worker
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 6 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
c50d248
feat: supabase auth users sync background runner in dashboard api
ben-fornefeld 68a6265
chore: auto-commit generated changes
github-actions[bot] 9d8fe63
feat(db): enhance auth user sync triggers to retain direct operations…
ben-fornefeld 1e5f28b
Merge branch 'feature/supabase-users-sync-worker' of https://github.c…
ben-fornefeld 56154df
feat(sync): implement user sync queue with enhanced error handling an…
ben-fornefeld 3a431aa
feat(sync): add supabase auth user sync configuration and secrets man…
ben-fornefeld eb69678
chore: remove smoke test
ben-fornefeld bb9fa39
add: e2e runner test
ben-fornefeld 461d2ec
chore: change dashboard-api env variable management
ben-fornefeld ce0cbd1
refactor(sync): update user sync logic to utilize new database structure
ben-fornefeld 4d622ce
fix: lint
ben-fornefeld 84ecd06
test: apply database migrations in end-to-end test setup
ben-fornefeld 3f56979
Merge origin/main into feature/supabase-users-sync-worker
ben-fornefeld 386d0c6
feat(sync): enhance user sync processing and acknowledgment
ben-fornefeld 3e3fa3c
refactor(gcp): remove auth_db_connection_string resources and update …
ben-fornefeld 5e0972b
chore(dashboard-api): refactor environment variable management
ben-fornefeld 6b5a5c8
refactor: use river for queue worker
ben-fornefeld 1113654
chore: auto-commit generated changes
github-actions[bot] fb0afd4
chore: auto-commit generated changes
github-actions[bot] bd4dd80
chore: update pgx dependency to v5.9.1 and golang.org/x/mod to v0.34.…
ben-fornefeld 97e305a
Merge branch 'feature/supabase-users-sync-worker' of https://github.c…
ben-fornefeld c98878f
chore: fix lint
ben-fornefeld e314b96
chore: auto-commit generated changes
github-actions[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
28 changes: 28 additions & 0 deletions
28
packages/dashboard-api/internal/supabaseauthusersync/config.go
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| package supabaseauthusersync | ||
|
|
||
| import "time" | ||
|
|
||
| const ( | ||
| defaultBatchSize int32 = 50 | ||
| defaultPollInterval time.Duration = 2 * time.Second | ||
| defaultLockTimeout time.Duration = 2 * time.Minute | ||
| defaultMaxAttempts int32 = 20 | ||
| ) | ||
|
|
||
| type Config struct { | ||
| Enabled bool | ||
cursor[bot] marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| BatchSize int32 | ||
| PollInterval time.Duration | ||
| LockTimeout time.Duration | ||
| MaxAttempts int32 | ||
| } | ||
|
|
||
| func DefaultConfig() Config { | ||
| return Config{ | ||
| Enabled: false, | ||
| BatchSize: defaultBatchSize, | ||
| PollInterval: defaultPollInterval, | ||
| LockTimeout: defaultLockTimeout, | ||
| MaxAttempts: defaultMaxAttempts, | ||
| } | ||
| } | ||
cursor[bot] marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.