{"action":"created","issue":{"url":"https://api.github.com/repos/codegram/decidim/issues/36","repository_url":"https://api.github.com/repos/codegram/decidim","labels_url":"https://api.github.com/repos/codegram/decidim/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/codegram/decidim/issues/36/comments","events_url":"https://api.github.com/repos/codegram/decidim/issues/36/events","html_url":"https://github.com/codegram/decidim/issues/36","id":180581473,"number":36,"title":"Add seeds","user":{"login":"josepjaume","id":111746,"avatar_url":"https://avatars.githubusercontent.com/u/111746?v=3","gravatar_id":"","url":"https://api.github.com/users/josepjaume","html_url":"https://github.com/josepjaume","followers_url":"https://api.github.com/users/josepjaume/followers","following_url":"https://api.github.com/users/josepjaume/following{/other_user}","gists_url":"https://api.github.com/users/josepjaume/gists{/gist_id}","starred_url":"https://api.github.com/users/josepjaume/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josepjaume/subscriptions","organizations_url":"https://api.github.com/users/josepjaume/orgs","repos_url":"https://api.github.com/users/josepjaume/repos","events_url":"https://api.github.com/users/josepjaume/events{/privacy}","received_events_url":"https://api.github.com/users/josepjaume/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"oriolgual","id":5254,"avatar_url":"https://avatars.githubusercontent.com/u/5254?v=3","gravatar_id":"","url":"https://api.github.com/users/oriolgual","html_url":"https://github.com/oriolgual","followers_url":"https://api.github.com/users/oriolgual/followers","following_url":"https://api.github.com/users/oriolgual/following{/other_user}","gists_url":"https://api.github.com/users/oriolgual/gists{/gist_id}","starred_url":"https://api.github.com/users/oriolgual/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oriolgual/subscriptions","organizations_url":"https://api.github.com/users/oriolgual/orgs","repos_url":"https://api.github.com/users/oriolgual/repos","events_url":"https://api.github.com/users/oriolgual/events{/privacy}","received_events_url":"https://api.github.com/users/oriolgual/received_events","type":"User","site_admin":false},"assignees":[{"login":"oriolgual","id":5254,"avatar_url":"https://avatars.githubusercontent.com/u/5254?v=3","gravatar_id":"","url":"https://api.github.com/users/oriolgual","html_url":"https://github.com/oriolgual","followers_url":"https://api.github.com/users/oriolgual/followers","following_url":"https://api.github.com/users/oriolgual/following{/other_user}","gists_url":"https://api.github.com/users/oriolgual/gists{/gist_id}","starred_url":"https://api.github.com/users/oriolgual/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oriolgual/subscriptions","organizations_url":"https://api.github.com/users/oriolgual/orgs","repos_url":"https://api.github.com/users/oriolgual/repos","events_url":"https://api.github.com/users/oriolgual/events{/privacy}","received_events_url":"https://api.github.com/users/oriolgual/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2016-10-03T07:55:58Z","updated_at":"2016-10-03T14:04:53Z","closed_at":null,"body":"We should add two kinds of seeds:\r\n\r\n* **Development seeds**: These seeds should contain example information and will also be used in staging environments as example data. Would be great to have them documented in the README, at least its login information.\r\n* **Production seeds**: Should contain the bare essentials to run a production environment; probably just a system admin. They should be documented as well.\r\n\r\nNote that each engine should contain its own seeds. We can sort of handle this in several ways:\r\n\r\n1. **Providing a single `Decidim.seed` method**, and have all engines register seeds via a `Decidim.register_seed` method somewhere\r\n1. We could **broadcast a `seed` signal** when the seeds are run and capture them via `ActiveSupport::Notifications`. That could also be the beginning of a broader-size pub-sub mechanism between engines.\r\n1. We could just **run all seeds separately** (`Decidim::Core.seed`, `Decidim::System.seed` and `Decidim::Admin.seed`) and put them into `seeds.rb` via the app generator, but that's sub-optimal and doesn't scale if we end up adding more engines.\r\n\r\nI personally prefer 1) or 2) but that's up to the implementer."},"comment":{"url":"https://api.github.com/repos/codegram/decidim/issues/comments/251114302","html_url":"https://github.com/codegram/decidim/issues/36#issuecomment-251114302","issue_url":"https://api.github.com/repos/codegram/decidim/issues/36","id":251114302,"user":{"login":"josepjaume","id":111746,"avatar_url":"https://avatars.githubusercontent.com/u/111746?v=3","gravatar_id":"","url":"https://api.github.com/users/josepjaume","html_url":"https://github.com/josepjaume","followers_url":"https://api.github.com/users/josepjaume/followers","following_url":"https://api.github.com/users/josepjaume/following{/other_user}","gists_url":"https://api.github.com/users/josepjaume/gists{/gist_id}","starred_url":"https://api.github.com/users/josepjaume/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josepjaume/subscriptions","organizations_url":"https://api.github.com/users/josepjaume/orgs","repos_url":"https://api.github.com/users/josepjaume/repos","events_url":"https://api.github.com/users/josepjaume/events{/privacy}","received_events_url":"https://api.github.com/users/josepjaume/received_events","type":"User","site_admin":false},"created_at":"2016-10-03T14:04:53Z","updated_at":"2016-10-03T14:04:53Z","body":"Okay then. Agree."}}
{"actor":{"display_login":"josepjaume"}}