open-nomad/ui/mirage
Buck Doyle 543fb24764
Fix allocation count in CSI volumes table (#9515)
This closes #9495. As detailed in there, the collection query GET
/v1/volumes?type=csi doesn’t return ReadAllocs and WriteAllocs, so the #
Allocs cell was always showing 0 upon first load because it was derived
from the lengths of those arrays. This uses the heretofore-ignored
CurrentReaders and CurrentWriters values to calculate the total instead.

The single-resource query GET /v1/volume/csi%2F:id doesn’t return
CurrentReaders and CurrentWriters that absence doesn’t override the
stored values when visiting an individual item.

Thanks to @apollo13 for reporting this and to @tgross for the API logs
and suggestion.
2020-12-07 08:51:41 -06:00
..
data
factories Revert "Temporarily remove poststop from the UI" 2020-11-12 09:16:52 -08:00
models csi/api: populate ReadAllocs/WriteAllocs fields (#9377) 2020-11-25 16:44:06 -05:00
scenarios Add query parameter to override Mirage scenario (#9380) 2020-11-30 08:12:15 -06:00
serializers Fix allocation count in CSI volumes table (#9515) 2020-12-07 08:51:41 -06:00
common.js
config.js Fix job detail crash when recommendations off (#9269) 2020-11-06 08:21:38 -06:00
faker.js Add DAS UI code from enterprise (#9192) 2020-10-29 07:46:42 -05:00
utils.js