-
Notifications
You must be signed in to change notification settings - Fork 4
Conversation
…ixed sample, removed acl-example.js
Reviewed 16 of 16 files at r1. .gitignore, line 42 [r1] (raw file):
gitkeep is a made up convention as far as I'm aware. If we need a particular directory to exist than rather than shoving it into the repo can't we just create it as part of an install script? sample/server.js, line 18 [r1] (raw file):
If we are using psk then we don't need the public key certs anymore. They were required in the old days because of a bug. So we can pull out the PEM and files, the code to load them, the assigns, etc. test/test-trailing-slash.js, line 118 [r1] (raw file):
I would throw in a test using a URL encoded / just to be paranoid and make sure we don't treat it as part of the path segment. Comments from Reviewable |
@andrew-aladev - It would be good if we could the areas of the code that aren't being tested (e.g. https://coveralls.io/builds/7100824/source?filename=lib%2Findex.js) covered with the obvious exception of line 60. Reviewed 4 of 5 files at r2, 2 of 2 files at r3. sample/server.js, line 25 [r3] (raw file):
This code shouldn't be necessary. PouchDB should create the directory for the DB. sample/server.js, line 28 [r3] (raw file):
Prefix is supposed to identify the directory where the file can be found, not the file name itself. PouchDB will handle creating any directories it needs to hold the database. Prefix is just to tell it where to put that directory if you don't want it to use the current directory. Comments from Reviewable |
Pouch DB will create dir for its db. But it will throw an exception If its prefix dir does not exist. |
I think the prefix directory is fine. Reviewed 1 of 3 files at r4, 1 of 3 files at r5, 2 of 3 files at r6, 3 of 3 files at r7. Comments from Reviewable |
fixes #4
Fixed sample, fixed acl schema, added strip slashes option and its test.
This change is