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 Move resource generation helper to a common place 2018-04-20 18:10:41 -07:00
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 Migrate to the new resources properties for allocs and nodes 2020-10-15 02:54:16 -07:00
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 UI: Change Mirage data to be stable in development (#6389) 2019-10-03 09:13:08 -05:00