FNNDSC / FNNDSC/fnndsc

Total number of items in collection should not be ambiguous

Open
#76 1 comment 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.