sync_gateway
sync_gateway copied to clipboard
CBG-3807: Diagnostic API - GET user/doc access endpoint
CBG-3807
Describe your PR here...
- Add an endpoint under the diagnostic API for getting a user's access spans for a document or number of documents
- the url is /{keyspace}/_user/(username}?docids={docid},{docid}
- added tests
- Fixed all user channels endpoint not getting a deleted role's channel history
Pre-review checklist
- [ ] Removed debug logging (
fmt.Print,log.Print, ...) - [ ] Logging sensitive data? Make sure it's tagged (e.g.
base.UD(docID),base.MD(dbName)) - [ ] Updated relevant information in the API specifications (such as endpoint descriptions, schemas, ...) in
docs/api
Dependencies (if applicable)
- [ ] Link upstream PRs
- [ ] Update Go module dependencies when merged
Integration Tests
- [ ]
GSI=true,xattrs=truehttps://jenkins.sgwdev.com/job/SyncGateway-Integration/2520/