{"action":"created","issue":{"url":"https://api.github.com/repos/pculture/unisubs/issues/838","labels_url":"https://api.github.com/repos/pculture/unisubs/issues/838/labels{/name}","comments_url":"https://api.github.com/repos/pculture/unisubs/issues/838/comments","events_url":"https://api.github.com/repos/pculture/unisubs/issues/838/events","html_url":"https://github.com/pculture/unisubs/issues/838","id":17766514,"number":838,"title":"Combine VideoIndex and TeamVideoIndex into 1 search index","user":{"login":"bendk","id":1012809,"avatar_url":"https://avatars.githubusercontent.com/u/1012809?v=3","gravatar_id":"","url":"https://api.github.com/users/bendk","html_url":"https://github.com/bendk","followers_url":"https://api.github.com/users/bendk/followers","following_url":"https://api.github.com/users/bendk/following{/other_user}","gists_url":"https://api.github.com/users/bendk/gists{/gist_id}","starred_url":"https://api.github.com/users/bendk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bendk/subscriptions","organizations_url":"https://api.github.com/users/bendk/orgs","repos_url":"https://api.github.com/users/bendk/repos","events_url":"https://api.github.com/users/bendk/events{/privacy}","received_events_url":"https://api.github.com/users/bendk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pculture/unisubs/labels/fix-it%20friday","name":"fix-it friday","color":"d4c5f9"},{"url":"https://api.github.com/repos/pculture/unisubs/labels/search-index","name":"search-index","color":"fad8c7"}],"state":"open","locked":false,"assignee":{"login":"bendk","id":1012809,"avatar_url":"https://avatars.githubusercontent.com/u/1012809?v=3","gravatar_id":"","url":"https://api.github.com/users/bendk","html_url":"https://github.com/bendk","followers_url":"https://api.github.com/users/bendk/followers","following_url":"https://api.github.com/users/bendk/following{/other_user}","gists_url":"https://api.github.com/users/bendk/gists{/gist_id}","starred_url":"https://api.github.com/users/bendk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bendk/subscriptions","organizations_url":"https://api.github.com/users/bendk/orgs","repos_url":"https://api.github.com/users/bendk/repos","events_url":"https://api.github.com/users/bendk/events{/privacy}","received_events_url":"https://api.github.com/users/bendk/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/pculture/unisubs/milestones/13","html_url":"https://github.com/pculture/unisubs/milestones/Fall%202015%20Under%20the%20Hood","labels_url":"https://api.github.com/repos/pculture/unisubs/milestones/13/labels","id":1318790,"number":13,"title":"Fall 2015 Under the Hood","description":"","creator":{"login":"bendk","id":1012809,"avatar_url":"https://avatars.githubusercontent.com/u/1012809?v=3","gravatar_id":"","url":"https://api.github.com/users/bendk","html_url":"https://github.com/bendk","followers_url":"https://api.github.com/users/bendk/followers","following_url":"https://api.github.com/users/bendk/following{/other_user}","gists_url":"https://api.github.com/users/bendk/gists{/gist_id}","starred_url":"https://api.github.com/users/bendk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bendk/subscriptions","organizations_url":"https://api.github.com/users/bendk/orgs","repos_url":"https://api.github.com/users/bendk/repos","events_url":"https://api.github.com/users/bendk/events{/privacy}","received_events_url":"https://api.github.com/users/bendk/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":0,"state":"open","created_at":"2015-09-22T16:47:33Z","updated_at":"2015-11-10T18:04:53Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2013-08-07T18:52:29Z","updated_at":"2015-11-18T01:10:15Z","closed_at":null,"body":"They basically index exactly the same things, so we can save space and complexity by just having one index.\r\n\r\nI think this would mean adding the following fields to VideoIndex:\r\n* team_slug\r\n* team_project_slug\r\n\r\nThen we would need to change the Teams.models.get_videos_for_languages_haystack() method to use the video index instead of the TeamsVideoLanguageIndex."},"comment":{"url":"https://api.github.com/repos/pculture/unisubs/issues/comments/157565187","html_url":"https://github.com/pculture/unisubs/issues/838#issuecomment-157565187","issue_url":"https://api.github.com/repos/pculture/unisubs/issues/838","id":157565187,"user":{"login":"bendk","id":1012809,"avatar_url":"https://avatars.githubusercontent.com/u/1012809?v=3","gravatar_id":"","url":"https://api.github.com/users/bendk","html_url":"https://github.com/bendk","followers_url":"https://api.github.com/users/bendk/followers","following_url":"https://api.github.com/users/bendk/following{/other_user}","gists_url":"https://api.github.com/users/bendk/gists{/gist_id}","starred_url":"https://api.github.com/users/bendk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bendk/subscriptions","organizations_url":"https://api.github.com/users/bendk/orgs","repos_url":"https://api.github.com/users/bendk/repos","events_url":"https://api.github.com/users/bendk/events{/privacy}","received_events_url":"https://api.github.com/users/bendk/received_events","type":"User","site_admin":false},"created_at":"2015-11-18T01:10:15Z","updated_at":"2015-11-18T01:10:15Z","body":"To implement this I needed to update the docker container for used for the database on our dev environments.  This means you need to recreate that container when switching to this branch and when switching back to staging.  Recreating the container means deleting all the data stored.  I would recommend using dbdump/dbload to avoid data loss.\r\n\r\nHere's the commands I would use to switch branches:\r\n\r\n```\r\ndev dbdump backup.db\r\ndocker-compose stop\r\ndocker-compose rm db\r\ngit co gh-838 (or staging)\r\n[in other terminal window] dev up\r\ndev dbload backup.db \r\n```"}}