Constructor
new QualityReport()
- Source:
Extends
Methods
fetch()
- Source:
getAllOutputIdentifiers() → {Array}
For each result in the collection, check the outputs for identifiers
and return a list of all unique ids.
- Since:
- Source:
Returns:
An array of unique output identifiers.
-
Type
-
Array
getAllOutputNames() → {Promise.<object>}
For all result outputs in the collection that include identifiers, get
the names of those outputs from the Solr index. This is done in batches
to avoid exceeding maximum lengths of Solr queries.
- Since:
- Source:
Returns:
A promise that resolves to an object mapping
output identifiers to their names.
-
Type
-
Promise.<object>
getCountsPerGroup(groupedResults) → {object}
Get the number of results in each group, including a total count.
Parameters:
Name |
Type |
Description |
groupedResults |
object
|
An object with keys for each group and
an array of results for each group. If not provided, it will use the
results from this.models, grouped by color. |
- Since:
- Source:
Returns:
An object with keys for each group and the count of
results in that group, plus a total count.
-
Type
-
object
getOutputNames(ids) → {Promise.<object>}
Given a batch of output identifiers, fetch their names from the Solr
index. Call getAllOutputNames instead of calling this directly.
Parameters:
Name |
Type |
Description |
ids |
Array
|
An array of output identifiers. |
- Since:
- Source:
Returns:
A promise that resolves to an object mapping
output identifiers to their names.
-
Type
-
Promise.<object>
groupByType(results) → {object}
Groups the results by their type, excluding those that should not be
counted in the totals (ERROR, SKIP, and optional failures).
Parameters:
Name |
Type |
Description |
results |
Array
|
An array of QualityCheck models. |
- Source:
Returns:
An object with keys for each check type and an array
of results for each type.
-
Type
-
object
groupResults(results) → {object}
Returns a list of all the results in the collection, grouped by color.
Parameters:
Name |
Type |
Description |
results |
Array
|
An array of QualityCheck models. |
- Source:
Returns:
An object with keys for each color (BLUE, GREEN,
ORANGE, RED) and an array of results for each color.
-
Type
-
object
initialize()
- Source:
parse()
- Source: