open-nomad/ui/mirage/serializers
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
..
allocation.js Migrate to the new resources properties for allocs and nodes 2020-10-15 02:54:16 -07:00
application.js Clean up erroneous and redundant mirage things 2020-08-27 17:58:24 -07:00
csi-plugin.js UI: Support for CSI (#7446) 2020-03-25 07:51:26 -05:00
csi-volume.js Fix allocation count in CSI volumes table (#9515) 2020-12-07 08:51:41 -06:00
deployment.js sync 2017-09-19 10:08:23 -05:00
job-scale.js Make scale event properties more conditional and serialized correctly 2020-07-29 19:07:24 -07:00
job-version.js Use the JobID as the Version ID for mirage job versions 2018-07-27 16:32:43 -07:00
job.js Clean up erroneous and redundant mirage things 2020-08-27 17:58:24 -07:00
node.js NodeEvent and NodeDriver modeling in Mirage 2018-05-25 10:15:24 -07:00
recommendation.js Add DAS UI code from enterprise (#9192) 2020-10-29 07:46:42 -05:00
region.js Properly model regions in Mirage 2018-08-09 19:57:21 -07:00
task-group-scale.js Model job scaling and events in Mirage 2020-07-29 19:07:24 -07:00
task-group.js UI: add Consul Connect features (#6108) 2019-09-04 09:39:56 -05:00
task-state.js sync 2017-09-19 10:08:23 -05:00
token.js Mirage factories for tokens and policies 2017-10-16 13:27:51 -07:00