You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by gi...@git.apache.org on 2017/05/09 01:30:07 UTC

[GitHub] nickva commented on issue #509: Handle non-default _replicator dbs in _scheduler/docs endpoint

nickva commented on issue #509: Handle non-default _replicator dbs in _scheduler/docs endpoint
URL: https://github.com/apache/couchdb/pull/509#issuecomment-299997999
 
 
   @wohali 
   
   Argh! You're right. 
   
   Hmm, what if user wants to query a particular document they have to always specify the database?
   
   So `/docid` case should go away and it's always `/:db/:doc`. That remove the ambiguity between 
   `/other%2f_replicator` being a document in the default `_replicator` db or `other/_replicator` database.
   
   This would still be consistent with `_scheduler/docs` output in a way as there we always tell the user the database:
   
   ```
           {
               "docs": [
                   {
                       "database": "_replicator",
                       "doc_id": "cdyno-0000001-0000002",
                       ....
                  }
              ]
         }
   ```
   
   So they would also specify it the database when querying for a particular doc.
   
   `_scheduler/docs/_replicator/cdyno-0000001-0000002` in this case.
   
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services