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

Use 🌱 for adding/updating seed files #144

Closed
epilande opened this issue Sep 6, 2017 · 10 comments · Fixed by #353
Closed

Use 🌱 for adding/updating seed files #144

epilande opened this issue Sep 6, 2017 · 10 comments · Fixed by #353
Labels
emoji Gitmoji proposals.

Comments

@epilande
Copy link
Contributor

epilande commented Sep 6, 2017

Hello @carloscuesta 😎!

  • Emoji: 🌱
  • Code: :seedling:
  • Description: Adding or updating seed files
@carloscuesta carloscuesta added the emoji Gitmoji proposals. label Oct 2, 2017
@smolijar
Copy link

smolijar commented Oct 8, 2019

Hi @epilande ,
sorry for late reply. I think it is a briliant idea. Can you make a PR?

@epilande
Copy link
Contributor Author

Hey @grissius, submitted PR #353

@KaKi87
Copy link
Contributor

KaKi87 commented Sep 17, 2020

Excuse me but what's a seed file ? I tried Googling but I can't find any relevant answer. Thanks

@smolijar
Copy link

@KaKi87
Copy link
Contributor

KaKi87 commented Sep 22, 2020

I understand, then how is it different from 🤡 Mock things ?

@smolijar
Copy link

In object-oriented programming, mock objects are simulated objects that mimic the behavior of real objects in controlled ways, most often as part of a software testing initiative.

Mocks mimic behavior (possibly along with data) for testing purposes, seeds are just about the data and usually not for testing, in contrast to fixtures. See Rails fixtures vs seeds.

@KaKi87
Copy link
Contributor

KaKi87 commented Sep 23, 2020

Seed data is to populate the database with prerequisite data needed to allow the app to be usable from the beginning, like to add a default admin account

Regarding this matter, shouldn't instead the program ask the user at first setup to fill the admin info ?

WordPress, NextCloud, Sentry, GitLab, etc. do that

@johannchopin
Copy link
Collaborator

Seeds file are not for user but for developer 👍 do you think that a gmail developer always create his account at the start of the day ? 😂

@KaKi87
Copy link
Contributor

KaKi87 commented Sep 23, 2020

Ah, I see 😅 Thanks for the explanation.

@smolijar
Copy link

Seeds file are not for user but for developer

  1. Citation needed
  2. If you have dynamic countries for example, but want to start with a preset, it is reasonable to start with default data set from seeds that you run on fresh environment.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
emoji Gitmoji proposals.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants