-
-
Notifications
You must be signed in to change notification settings - Fork 202
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
feat: add seed command to generate test users #2132
base: develop
Are you sure you want to change the base?
Conversation
Pull Request Test Coverage Report for Build 8597529949Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
seedCmd = &cobra.Command{ | ||
GroupID: groupLocalDev, | ||
Use: "seed", | ||
Short: "Generate seed data", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shall we move this under supabase gen seed
instead since it generates a seed file?
If we continue using supabase seed
, my expectation would be to actually seed the local / remote database.
}, | ||
}, | ||
container.HostConfig{ | ||
PortBindings: nat.PortMap{"9999/tcp": []nat.PortBinding{{HostPort: "54325"}}}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This port is currently reserved as smtp port for inbucket.
} | ||
|
||
// use awk to remove unnecessary sections from the dump | ||
awkCmd := exec.Command("awk", ` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can't expect awk
to always be installed on user's system, ie. windows?
We can either process the docker output in go or make a shell script that runs inside gotrue container.
What kind of change does this PR introduce?
supabase seed auth
command that generates sql examples to add testusers and saves them in a
seed.example.sql
fileWhat is the current behavior?
Please link any relevant issues here.
What is the new behavior?
Feel free to include screenshots if it includes visual changes.
Additional context
Add any other context or screenshots.