Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Add simple partition support (get from partition view). Allow _delete… #62

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

davidnixon
Copy link

@davidnixon davidnixon commented May 21, 2021

…d for bulk_docs. Fix a flaw in get_uuids.

Just fixing up what I needed to try and use this for unit testing.

  • really simple partition view support
    http://localhost:5984/mydatabase/_partition/mypartition/_design/myviews/_view/someview/
  • added support for _deleted in the _bulk_docs POST
  • Also include ok: true for each bulk doc added/deleted since that is what my real couch db does
    https://docs.couchdb.org/en/stable/api/database/bulk-api.html#db-bulk-docs
  • Fix get_view that was crashing when trying to retrieve docs from a nonexistent view (now returns 404 - same error as real couch db)
  • Fixed get_uuids to return multiple uuids when requested. It was looking for req.params.count but it should have been req.query.count
    https://docs.couchdb.org/en/stable/api/server/common.html#uuids
  • Also get_uuids was returning duplicate uuids so I tweaked that as well.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant