{"action":"created","issue":{"url":"https://api.github.com/repos/medic/medic-webapp/issues/2934","repository_url":"https://api.github.com/repos/medic/medic-webapp","labels_url":"https://api.github.com/repos/medic/medic-webapp/issues/2934/labels{/name}","comments_url":"https://api.github.com/repos/medic/medic-webapp/issues/2934/comments","events_url":"https://api.github.com/repos/medic/medic-webapp/issues/2934/events","html_url":"https://github.com/medic/medic-webapp/issues/2934","id":190052526,"number":2934,"title":"Determine and document CouchDB 1.6 -> 2.0 migration strategy","user":{"login":"SCdF","id":583851,"avatar_url":"https://avatars.githubusercontent.com/u/583851?v=3","gravatar_id":"","url":"https://api.github.com/users/SCdF","html_url":"https://github.com/SCdF","followers_url":"https://api.github.com/users/SCdF/followers","following_url":"https://api.github.com/users/SCdF/following{/other_user}","gists_url":"https://api.github.com/users/SCdF/gists{/gist_id}","starred_url":"https://api.github.com/users/SCdF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SCdF/subscriptions","organizations_url":"https://api.github.com/users/SCdF/orgs","repos_url":"https://api.github.com/users/SCdF/repos","events_url":"https://api.github.com/users/SCdF/events{/privacy}","received_events_url":"https://api.github.com/users/SCdF/received_events","type":"User","site_admin":false},"labels":[{"id":267430013,"url":"https://api.github.com/repos/medic/medic-webapp/labels/2%20-%20Active%20Work","name":"2 - Active Work","color":"bfd4f2","default":false}],"state":"open","locked":false,"assignee":{"login":"SCdF","id":583851,"avatar_url":"https://avatars.githubusercontent.com/u/583851?v=3","gravatar_id":"","url":"https://api.github.com/users/SCdF","html_url":"https://github.com/SCdF","followers_url":"https://api.github.com/users/SCdF/followers","following_url":"https://api.github.com/users/SCdF/following{/other_user}","gists_url":"https://api.github.com/users/SCdF/gists{/gist_id}","starred_url":"https://api.github.com/users/SCdF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SCdF/subscriptions","organizations_url":"https://api.github.com/users/SCdF/orgs","repos_url":"https://api.github.com/users/SCdF/repos","events_url":"https://api.github.com/users/SCdF/events{/privacy}","received_events_url":"https://api.github.com/users/SCdF/received_events","type":"User","site_admin":false},"assignees":[{"login":"SCdF","id":583851,"avatar_url":"https://avatars.githubusercontent.com/u/583851?v=3","gravatar_id":"","url":"https://api.github.com/users/SCdF","html_url":"https://github.com/SCdF","followers_url":"https://api.github.com/users/SCdF/followers","following_url":"https://api.github.com/users/SCdF/following{/other_user}","gists_url":"https://api.github.com/users/SCdF/gists{/gist_id}","starred_url":"https://api.github.com/users/SCdF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SCdF/subscriptions","organizations_url":"https://api.github.com/users/SCdF/orgs","repos_url":"https://api.github.com/users/SCdF/repos","events_url":"https://api.github.com/users/SCdF/events{/privacy}","received_events_url":"https://api.github.com/users/SCdF/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/medic/medic-webapp/milestones/68","html_url":"https://github.com/medic/medic-webapp/milestones/November%2028th%20-%20December%2012th","labels_url":"https://api.github.com/repos/medic/medic-webapp/milestones/68/labels","id":2159527,"number":68,"title":"November 28th - December 12th","description":"","creator":{"login":"garethbowen","id":2064938,"avatar_url":"https://avatars.githubusercontent.com/u/2064938?v=3","gravatar_id":"","url":"https://api.github.com/users/garethbowen","html_url":"https://github.com/garethbowen","followers_url":"https://api.github.com/users/garethbowen/followers","following_url":"https://api.github.com/users/garethbowen/following{/other_user}","gists_url":"https://api.github.com/users/garethbowen/gists{/gist_id}","starred_url":"https://api.github.com/users/garethbowen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garethbowen/subscriptions","organizations_url":"https://api.github.com/users/garethbowen/orgs","repos_url":"https://api.github.com/users/garethbowen/repos","events_url":"https://api.github.com/users/garethbowen/events{/privacy}","received_events_url":"https://api.github.com/users/garethbowen/received_events","type":"User","site_admin":false},"open_issues":19,"closed_issues":2,"state":"open","created_at":"2016-11-27T20:08:48Z","updated_at":"2016-11-29T11:20:00Z","due_on":"2016-12-12T00:00:00Z","closed_at":null},"comments":7,"created_at":"2016-11-17T13:52:50Z","updated_at":"2016-11-29T12:43:32Z","closed_at":null,"body":"It looks like we can just turn off 1.6 and copy its DB files to the new install location. We should check that this works as expected.\r\n\r\nIf we have to use replication to migrate, work out what happens when seq numbers change from PouchDB's perspective, does it:\r\n - Completely not realise the server has changed and lose data\r\n - Realise the server has changed and start from 0 again, which means all of our phones are going to pull their entire changes feed again (thankfully they won't pull docs they already have, they'll just process the changes feed)"},"comment":{"url":"https://api.github.com/repos/medic/medic-webapp/issues/comments/263560644","html_url":"https://github.com/medic/medic-webapp/issues/2934#issuecomment-263560644","issue_url":"https://api.github.com/repos/medic/medic-webapp/issues/2934","id":263560644,"user":{"login":"SCdF","id":583851,"avatar_url":"https://avatars.githubusercontent.com/u/583851?v=3","gravatar_id":"","url":"https://api.github.com/users/SCdF","html_url":"https://github.com/SCdF","followers_url":"https://api.github.com/users/SCdF/followers","following_url":"https://api.github.com/users/SCdF/following{/other_user}","gists_url":"https://api.github.com/users/SCdF/gists{/gist_id}","starred_url":"https://api.github.com/users/SCdF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SCdF/subscriptions","organizations_url":"https://api.github.com/users/SCdF/orgs","repos_url":"https://api.github.com/users/SCdF/repos","events_url":"https://api.github.com/users/SCdF/events{/privacy}","received_events_url":"https://api.github.com/users/SCdF/received_events","type":"User","site_admin":false},"created_at":"2016-11-29T12:43:32Z","updated_at":"2016-11-29T12:43:32Z","body":"So here is the migration guide I'm using: https://blog.couchdb.org/2016/08/17/migrating-to-couchdb-2-0/\r\n\r\nTheir \"copy the files\" migration is actually still replication: you copy the files to your local node, and then replicate them into the \"clustered\" setup (with shards and all that jazz), so AFAICT it will present the same. It does work as advertised though, but it's basically the same as running both couch's at the same time.\r\n\r\n**ALSO, one thing I missed but is made clear this time: migrating from CouchDB 1.6 to 2.0 **logs users out**.\r\n\r\nThis is a royal pain in the arse, but it makes sense: we rely on the CouchDB instance for auth, and that instance is changing. Would be good to understand this more and see if we can avoid it."}}
{"actor":{"display_login":"SCdF"}}