{"action":"created","issue":{"url":"https://api.github.com/repos/SEED-platform/seed/issues/500","labels_url":"https://api.github.com/repos/SEED-platform/seed/issues/500/labels{/name}","comments_url":"https://api.github.com/repos/SEED-platform/seed/issues/500/comments","events_url":"https://api.github.com/repos/SEED-platform/seed/issues/500/events","html_url":"https://github.com/SEED-platform/seed/issues/500","id":119771706,"number":500,"title":"Label feature database migration","user":{"login":"RDmitchell","id":6314950,"avatar_url":"https://avatars.githubusercontent.com/u/6314950?v=3","gravatar_id":"","url":"https://api.github.com/users/RDmitchell","html_url":"https://github.com/RDmitchell","followers_url":"https://api.github.com/users/RDmitchell/followers","following_url":"https://api.github.com/users/RDmitchell/following{/other_user}","gists_url":"https://api.github.com/users/RDmitchell/gists{/gist_id}","starred_url":"https://api.github.com/users/RDmitchell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RDmitchell/subscriptions","organizations_url":"https://api.github.com/users/RDmitchell/orgs","repos_url":"https://api.github.com/users/RDmitchell/repos","events_url":"https://api.github.com/users/RDmitchell/events{/privacy}","received_events_url":"https://api.github.com/users/RDmitchell/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/SEED-platform/seed/labels/Label%20Feature","name":"Label Feature","color":"ff9fcd"}],"state":"open","locked":false,"assignee":{"login":"danielmcquillen","id":119496,"avatar_url":"https://avatars.githubusercontent.com/u/119496?v=3","gravatar_id":"","url":"https://api.github.com/users/danielmcquillen","html_url":"https://github.com/danielmcquillen","followers_url":"https://api.github.com/users/danielmcquillen/followers","following_url":"https://api.github.com/users/danielmcquillen/following{/other_user}","gists_url":"https://api.github.com/users/danielmcquillen/gists{/gist_id}","starred_url":"https://api.github.com/users/danielmcquillen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielmcquillen/subscriptions","organizations_url":"https://api.github.com/users/danielmcquillen/orgs","repos_url":"https://api.github.com/users/danielmcquillen/repos","events_url":"https://api.github.com/users/danielmcquillen/events{/privacy}","received_events_url":"https://api.github.com/users/danielmcquillen/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/SEED-platform/seed/milestones/30","html_url":"https://github.com/SEED-platform/seed/milestones/Feburary%202016%20Release","labels_url":"https://api.github.com/repos/SEED-platform/seed/milestones/30/labels","id":1409148,"number":30,"title":"Feburary 2016 Release","description":"","creator":{"login":"RDmitchell","id":6314950,"avatar_url":"https://avatars.githubusercontent.com/u/6314950?v=3","gravatar_id":"","url":"https://api.github.com/users/RDmitchell","html_url":"https://github.com/RDmitchell","followers_url":"https://api.github.com/users/RDmitchell/followers","following_url":"https://api.github.com/users/RDmitchell/following{/other_user}","gists_url":"https://api.github.com/users/RDmitchell/gists{/gist_id}","starred_url":"https://api.github.com/users/RDmitchell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RDmitchell/subscriptions","organizations_url":"https://api.github.com/users/RDmitchell/orgs","repos_url":"https://api.github.com/users/RDmitchell/repos","events_url":"https://api.github.com/users/RDmitchell/events{/privacy}","received_events_url":"https://api.github.com/users/RDmitchell/received_events","type":"User","site_admin":false},"open_issues":57,"closed_issues":18,"state":"open","created_at":"2015-11-12T20:05:28Z","updated_at":"2016-01-29T21:36:35Z","due_on":"2016-02-26T08:00:00Z","closed_at":null},"comments":5,"created_at":"2015-12-01T17:49:58Z","updated_at":"2016-01-31T23:12:27Z","closed_at":null,"body":"This issue is for migrating the current Project label structure into the new label structure"},"comment":{"url":"https://api.github.com/repos/SEED-platform/seed/issues/comments/177655787","html_url":"https://github.com/SEED-platform/seed/issues/500#issuecomment-177655787","issue_url":"https://api.github.com/repos/SEED-platform/seed/issues/500","id":177655787,"user":{"login":"danielmcquillen","id":119496,"avatar_url":"https://avatars.githubusercontent.com/u/119496?v=3","gravatar_id":"","url":"https://api.github.com/users/danielmcquillen","html_url":"https://github.com/danielmcquillen","followers_url":"https://api.github.com/users/danielmcquillen/followers","following_url":"https://api.github.com/users/danielmcquillen/following{/other_user}","gists_url":"https://api.github.com/users/danielmcquillen/gists{/gist_id}","starred_url":"https://api.github.com/users/danielmcquillen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielmcquillen/subscriptions","organizations_url":"https://api.github.com/users/danielmcquillen/orgs","repos_url":"https://api.github.com/users/danielmcquillen/repos","events_url":"https://api.github.com/users/danielmcquillen/events{/privacy}","received_events_url":"https://api.github.com/users/danielmcquillen/received_events","type":"User","site_admin":false},"created_at":"2016-01-31T23:12:27Z","updated_at":"2016-01-31T23:12:27Z","body":"Just coming back to this issue now. @StephenCzarnecki do you think this could be because somehow Robin applied labels to non-canonical buildings in her project view (if that's even possible), and therefore the labels weren't transferred during a migration?\r\n\r\nI think in your comments you mention that non-canonical project buildings won't have their labels passed forward during the migration (and that is evident in line #14 of the migration https://github.com/SEED-platform/seed/blob/5d55a4d9312818e3aa3ebe9a1b51f440cd3ae259/seed/migrations/0007_auto_20151201_1515.py#L14).\r\n\r\nOtherwise, if she did apply labels to canonical buildings in her project buildings view, I don't see how they would not have been created, since I would imagine 1) the label should have been created in status_labels when first applied to the project building and 2) Django would have shift that relationship directly to the canonical building on line 15 of the migration https://github.com/SEED-platform/seed/blob/5d55a4d9312818e3aa3ebe9a1b51f440cd3ae259/seed/migrations/0007_auto_20151201_1515.py#L15)\r\n\r\n\r\n"}}