-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(ui): Use back-end queries for ORT run statistics cards
As the endpoint `...runs/${runId}/statistics` now returns, not only item counts, but also their distribution (across severities, ecosystems, and vulnerability ratings), switch to using the API endpoint for the statistics cards, to render the ORT run main page faster. Note that as the run statistics endpoint uses different data structures for the item distributions (ecosystems is an array, while the others are maps), data must be mapped differently for each statistics card. Signed-off-by: Jyrki Keisala <jyrki.keisala@doubleopen.org>
- Loading branch information
Showing
4 changed files
with
57 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters