{"action":"opened","issue":{"url":"https://api.github.com/repos/concourse/concourse/issues/1897","repository_url":"https://api.github.com/repos/concourse/concourse","labels_url":"https://api.github.com/repos/concourse/concourse/issues/1897/labels{/name}","comments_url":"https://api.github.com/repos/concourse/concourse/issues/1897/comments","events_url":"https://api.github.com/repos/concourse/concourse/issues/1897/events","html_url":"https://github.com/concourse/concourse/issues/1897","id":281868515,"number":1897,"title":"Migrating existing jobs to spaces enabled Concourse","user":{"login":"mhuangpivotal","id":1919762,"avatar_url":"https://avatars2.githubusercontent.com/u/1919762?v=4","gravatar_id":"","url":"https://api.github.com/users/mhuangpivotal","html_url":"https://github.com/mhuangpivotal","followers_url":"https://api.github.com/users/mhuangpivotal/followers","following_url":"https://api.github.com/users/mhuangpivotal/following{/other_user}","gists_url":"https://api.github.com/users/mhuangpivotal/gists{/gist_id}","starred_url":"https://api.github.com/users/mhuangpivotal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhuangpivotal/subscriptions","organizations_url":"https://api.github.com/users/mhuangpivotal/orgs","repos_url":"https://api.github.com/users/mhuangpivotal/repos","events_url":"https://api.github.com/users/mhuangpivotal/events{/privacy}","received_events_url":"https://api.github.com/users/mhuangpivotal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-12-13T19:30:42Z","updated_at":"2017-12-13T19:30:42Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Epic: #1707\r\n\r\n## Background\r\n\r\nWith #1765, we want the scheduler to operate on job combinations. After this change, the scheduler will no longer work with existing jobs. This is not ideal since we would like the change to be backward compatible and users be able to choose not to use `spaces`. We should have a migration that generates a default combination for every existing job.\r\n\r\n## Challenges\r\n\r\nJob combinations are identified by a hash made up of their resource spaces, and to generate this hash we use a go library called `hashstructure`. Our current migration scheme only supports raw SQL and does not allow us to use `hashstructure` to generate the hashes. \r\n\r\n## Solutions\r\n\r\n- Support Go migrations\r\n- Use md5 for job combination hashes and write SQL to generate them"}}
{"actor":{"display_login":"mhuangpivotal"}}