Total number of items in collection should not be ambiguous
Open
bug
good first issue
help wanted
- Dominant language
- JavaScript
- Stars
- 7
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
Both ChRIS API and Store API, transform the total count of items in any collection to an ambiguous value. If the total item count is greater than zero, it returns `totalCount: total`; But if it is zero, it returns `totalCount: -1` which is counter-intuitive and ambiguous.
If this value is meant to represent errors, those should be represented by the function throwing an error rather than returning a value.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.