open-nomad/ui/mirage/models
Tim Gross 4e79ddea45
csi/api: populate ReadAllocs/WriteAllocs fields (#9377)
The API is missing values for `ReadAllocs` and `WriteAllocs` fields, resulting
in allocation claims not being populated in the web UI. These fields mirror
the fields in `nomad/structs.CSIVolume`. Returning a separate list of stubs
for read and write would be ideal, but this can't be done without either
bloating the API response with repeated full `Allocation` data, or causing a
panic in previous versions of the CLI.

The `nomad/structs` fields are persisted with nil values and are populated
during RPC, so we'll do the same in the HTTP API and populate the `ReadAllocs`
and `WriteAllocs` fields with a map of allocation IDs, but with null
values. The web UI will then create its `ReadAllocations` and
`WriteAllocations` fields by mapping from those IDs to the values in
`Allocations`, instead of flattening the map into a list.
2020-11-25 16:44:06 -05:00
..
alloc-file.js Mirage factory for file system fixtures 2019-07-30 17:25:42 -07:00
allocation.js Clean up erroneous and redundant mirage things 2020-08-27 17:58:24 -07:00
client-allocation-stat.js Update everything to work with the mirage backwards incompat 2019-04-10 14:54:37 -07:00
client-stat.js Update everything to work with the mirage backwards incompat 2019-04-10 14:54:37 -07:00
csi-plugin.js UI: Support for CSI (#7446) 2020-03-25 07:51:26 -05:00
csi-volume.js csi/api: populate ReadAllocs/WriteAllocs fields (#9377) 2020-11-25 16:44:06 -05:00
deployment-task-group-summary.js
deployment.js
feature.js Fix job detail crash when recommendations off (#9269) 2020-11-06 08:21:38 -06:00
job-scale.js Model job scaling and events in Mirage 2020-07-29 19:07:24 -07:00
job.js Clean up erroneous and redundant mirage things 2020-08-27 17:58:24 -07:00
node.js
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
scale-event.js Model job scaling and events in Mirage 2020-07-29 19:07:24 -07:00
service.js Clean up erroneous and redundant mirage things 2020-08-27 17:58:24 -07:00
storage-controller.js Update storage controller mirage code to accommodate EDMF's lack of relationships 2020-05-06 17:21:46 -07:00
storage-node.js Update storage controller mirage code to accommodate EDMF's lack of relationships 2020-05-06 17:21:46 -07:00
task-event.js
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-resources.js
task-state.js
task.js Add DAS UI code from enterprise (#9192) 2020-10-29 07:46:42 -05:00