Add functions to count items on SM
Raise
Analysis
Raise
Analysis
Description
Activity
Show:

Pablo Pazos October 1, 2019 at 12:59 AM
I think this is done, if the changes are merged, you can close this one, thanks.

Pablo Pazos February 26, 2019 at 5:01 AM
Seen the added functions on the spec>
+ artefacts_count
+ archetypes_count
+ templates_count
+ opts_count
Looks goods for me!
Thomas Beale February 13, 2019 at 2:55 PM
I've added functions called xxx_count() (sounds more normal in English) to the Definition package interfaces.
Details
Details
Reporter

Components
Priority
Created December 19, 2018 at 12:37 AM
Updated October 1, 2019 at 12:59 AM
In the interfaces where we have has_, get_, list_all_*
Add a count_* function, that will be needed for testing conformance, also useful to test locally. And it is a minor addition to the interfaces.
For instance on tests we need to check we have 0 opts, instead of calling list_all_opts() and counting items in the result, we can use count_opts() directly. This simplifies test implementation (e.g. in cucumber, spock or whatever tool).