Closed ghost closed 4 years ago
I'm experimenting on my local couchdb and the replication selector doesn't seem to be trying to sync _design docs.
Eyeballing Home.vue, where it's creating _design/my_index, and it's definitely syncing. Trying some stuff...
Line 250 in Home.vue on obs-web:
private async buildDesignDoc() { try { await pouchService.db.query('my_index/by_type', { limit: 0 }).then( (res: any) => { console.log(res.rows.map( (row: any) => row.doc )); }); } catch (error) { console.log(error); const designDoc = { _id: '_design/my_index', views: { by_type: { // @ts-ignore map: function(doc) { emit(doc.type); }.toString() } } }; pouchService.db.put(designDoc).then( () => { pouchService.db.query('my_index/by_type', { limit: 0 }).then( (res: any) => { console.log(res.rows.map( (row: any) => row.doc )); }).catch( (err: any) => { console.log(err); }); }).catch ( (err: any) => { console.log(err); } ); } }
On Thu, Feb 6, 2020 at 12:53 PM Will Smith notifications@github.com wrote:
@sethgerou-noaa https://github.com/sethgerou-noaa could you point me to your code which is creating local _design docs that it's trying to sync? I haven't been able to repro on my configuration yet.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/nwfsc-fram/boatnet/issues/1244?email_source=notifications&email_token=AJC7LYISEKISDVIWWWPYN3TRBR2GHA5CNFSM4KHL37T2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELAXZCY#issuecomment-583105675, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJC7LYLUIYOLDPCQMAIOHBLRBR2GHANCNFSM4KHL37TQ .
This was trickier than I planned for, moved to next sprint
This will be an update to the replication doc that's currently inserted/updated by the auth server. ( @sethgerou-noaa @melinashak-noaa from what we discussed this afternoon)