{"action":"created","issue":{"url":"https://api.github.com/repos/DefectDojo/django-DefectDojo/issues/495","repository_url":"https://api.github.com/repos/DefectDojo/django-DefectDojo","labels_url":"https://api.github.com/repos/DefectDojo/django-DefectDojo/issues/495/labels{/name}","comments_url":"https://api.github.com/repos/DefectDojo/django-DefectDojo/issues/495/comments","events_url":"https://api.github.com/repos/DefectDojo/django-DefectDojo/issues/495/events","html_url":"https://github.com/DefectDojo/django-DefectDojo/issues/495","id":303421631,"number":495,"title":"Track Django migrations in GitHub","user":{"login":"maennel","id":1587013,"avatar_url":"https://avatars3.githubusercontent.com/u/1587013?v=4","gravatar_id":"","url":"https://api.github.com/users/maennel","html_url":"https://github.com/maennel","followers_url":"https://api.github.com/users/maennel/followers","following_url":"https://api.github.com/users/maennel/following{/other_user}","gists_url":"https://api.github.com/users/maennel/gists{/gist_id}","starred_url":"https://api.github.com/users/maennel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maennel/subscriptions","organizations_url":"https://api.github.com/users/maennel/orgs","repos_url":"https://api.github.com/users/maennel/repos","events_url":"https://api.github.com/users/maennel/events{/privacy}","received_events_url":"https://api.github.com/users/maennel/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-08T10:01:53Z","updated_at":"2018-03-15T20:41:44Z","closed_at":"2018-03-15T20:41:44Z","author_association":"CONTRIBUTOR","body":"### Issue Type \r\n- [ ] Bug\r\n- [x] Enhancement\r\n\r\n### Description\r\nIn order not to break existing installations and thus making the process of upgrading DefectDojo easier, I suggest to start keeping track of Django migration files in the GitHub repo. \r\n\r\nThe following scenario currently breaks the application and may keep people from upgrading DefectDojo:\r\n- Someone operates a DefectDojo instance\r\n- A new version of DefectDojo including a new killer feature but also with some model changes is released.\r\n- Someone deploys the new version of DefectDojo and generates a new 0001_initial_migration.py representing the new state of the models. The newly generated initial migration will be ignored, since Django keeps track, which migrations have been applied already (in the DB). So, the app will throw errors, telling some fields could not be found. The application will not be usable, unless the DefectDojo Admin figures out, which version they used previously and generates a 0002 migration based on the model changes.\r\n\r\nInstead of this scenario, I suggest to keep track of model changes via migration files, which are incremental and which should improve the upgrading experience for DefectDojo Admins. \r\n\r\nEDIT: Removed the actual mention of _at_Someone :D\r\n"},"comment":{"url":"https://api.github.com/repos/DefectDojo/django-DefectDojo/issues/comments/373516029","html_url":"https://github.com/DefectDojo/django-DefectDojo/issues/495#issuecomment-373516029","issue_url":"https://api.github.com/repos/DefectDojo/django-DefectDojo/issues/495","id":373516029,"user":{"login":"maennel","id":1587013,"avatar_url":"https://avatars3.githubusercontent.com/u/1587013?v=4","gravatar_id":"","url":"https://api.github.com/users/maennel","html_url":"https://github.com/maennel","followers_url":"https://api.github.com/users/maennel/followers","following_url":"https://api.github.com/users/maennel/following{/other_user}","gists_url":"https://api.github.com/users/maennel/gists{/gist_id}","starred_url":"https://api.github.com/users/maennel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maennel/subscriptions","organizations_url":"https://api.github.com/users/maennel/orgs","repos_url":"https://api.github.com/users/maennel/repos","events_url":"https://api.github.com/users/maennel/events{/privacy}","received_events_url":"https://api.github.com/users/maennel/received_events","type":"User","site_admin":false},"created_at":"2018-03-15T20:41:44Z","updated_at":"2018-03-15T20:41:44Z","author_association":"CONTRIBUTOR","body":"I'm thinking about a strategy to add migrations and I can think of the two approaches:\r\n- Simply add an initial mi"}}
{"actor":{"display_login":"maennel"}}