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/08 16:00:04 UTC

[GitHub] nickva opened a new pull request #509: Handle non-default _replicator dbs in _scheduler/docs endpoint

nickva opened a new pull request #509: Handle non-default _replicator dbs in _scheduler/docs endpoint
URL: https://github.com/apache/couchdb/pull/509
 
 
   ## Overview
   
   Previously _scheduler/docs assumed only the default _replicator db.
   
   Now these kinds of paths are accepted after `_scheduler/docs`:
   
    * `/` : all docs from default _replicator db
    * `/_replicator` : all docs from default replicator db
    * `/docid` : a specific doc from the default replicator db
    * `/other%2f_replicator` : non-default replicator db, urlencoded
    * `/other/_replicator` : non-default replicator db, unencoded
    * `/other%2f_replicator/docid` : doc from a non-default db, urlencoded
    * `/other/_replicator/docid` : doc from a non-default db, db is unencoded
   
   Because `_replicator` is not a valid document ID, it's possible to unambiguously
   parse unescaped db paths.
   
   ## Testing recommendations
   
   Try all the above URL patterns using a default and a non-default `_replicator` db.
   
   ## JIRA issue number
   
   Issue: #506
   
   ## Checklist
   
   - [x] Code is written and works correctly;
   - [x] Changes are covered by tests;
   - [ ] Documentation reflects the changes; (will make a separate PR for this)
   
 
----------------------------------------------------------------
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