couchdb-documentation icon indicating copy to clipboard operation
couchdb-documentation copied to clipboard

rfc(per-doc-access): first draft

Open janl opened this issue 6 years ago • 7 comments

Addresses https://github.com/apache/couchdb/issues/1524

janl avatar Jul 07 '19 11:07 janl

Are skip and limit query params expected to work as in existing versions?

ermouth avatar Jul 07 '19 16:07 ermouth

@ermouth could you give an example?

janl avatar Jul 07 '19 17:07 janl

@janl I mean a protected bucket may have interleaving docs of users A and B, like:

{_id: '01', _access:['A']}, {_id:'02', _access:['B']}, {_id: '03', _access:['A']}

What exactly _all_docs?limit=1&skip=1 will return for user A?

ermouth avatar Jul 07 '19 19:07 ermouth

@ermouth empty result like if _id 02 didn’t exist. by-access-id is all docs in order of _access + _id and then any one authenticated users only gets their _access range, but can use that like regular by-id (_all_docs)

janl avatar Jul 07 '19 19:07 janl

Sorry @janl I meant to add another note here the other day. Could you add a section on the data model for the new changes and _all_doc indexes.

garrensmith avatar Jul 24 '19 07:07 garrensmith

@janl Can we get this merged please? Thanks. I'm merging all of the RFCs that don't have any other sort of blockers; @garrensmith 's requests haven't been dismissed/changed so I'm not going to robo-merge this one.

wohali avatar Aug 12 '20 01:08 wohali

@wohali this RFC isn’t fit to be merged. If you want the PR queue clean, we can close this and I’ll reopen once I addressed all the comments.

janl avatar Aug 22 '20 09:08 janl

closing this for now, I’ll open a new variant on the couchdb repo now that the docs repo is being retired.

janl avatar Sep 09 '22 14:09 janl