krinchai opened a new issue #167: Missing supports of local doc URL: https://github.com/apache/couchdb-nano/issues/167 Similar to design doc, local doc is another special type of document in CouchDB but it doesn't seem support by nano. ## Expected Behavior Able to get the local document from CouchDB instance. ## Current Behavior A local document could be created by calling PUT method with object with _id with the “_local/” prefix. However, the GET was failed due to the encodeURIComponent even though the document existed in the CouchDB. ## Possible Solution Modifying line 214 of nano.js from `if (!/^_design/.test(opts.doc)) {` to `if (!/^(_design|_local)\//.test(opts.doc)) { ` ## Steps to Reproduce (for bugs) 1. Insert a new local doc with "_local/" prefix 2. Get the local doc back and got 404 error. ## Context There are times when local docs needed. ## Your Environment Windows 10 Node 10.6 npm 6.9.0 I want to submit a pull request but having difficulty making sure all existing unit tests are passed. From Travis files (yml and sh), I was able to identify the node and CouchDB version. I spin up the CouchDB 2.0 docker with node 6.8.0 and ran “npm run unmocked && npm run mocked && npm run test”. It would be nice if there is a document how the development environment should be setup. Even better if there is a docker-compose file for this project.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
