Story
As a Galasa service user, I want the users/tokens views from CouchDB to only emit the whole document if its required, so that view queries do not use up unnecessary disk space and cause performance issues.
Background
This story comes from a suggestion in a review comment in PR. The existing views had been emitting the whole document as does the new view introduced in the PR. All views should be updated to not emit the whole view and if needed, pass in the include_docs query parameter in the request.
Tasks
Story
As a Galasa service user, I want the users/tokens views from CouchDB to only emit the whole document if its required, so that view queries do not use up unnecessary disk space and cause performance issues.
Background
This story comes from a suggestion in a review comment in PR. The existing views had been emitting the whole document as does the new view introduced in the PR. All views should be updated to not emit the whole view and if needed, pass in the
include_docsquery parameter in the request.Tasks
include_docsquery parameter in the request