open-nomad/ui/mirage/models
Buck Doyle 8b5b2116ec
Fix job detail crash when recommendations off (#9269)
Without this, visiting any job detail page on Nomad OSS would crash with
an error like this:

Error: Ember Data Request GET
/v1/recommendations?job=ping%F0%9F%A5%B3&namespace=default returned a
404 Payload (text/xml)

The problem was twofold.

1. The recommendation ability didn’t include anything about checking
whether the feature was present. This adds a request to
/v1/operator/license on application load to determine which features are
present and store them in the system service. The ability now looks for
'Dynamic Application Sizing' in that feature list.

2. Second, I didn’t check permissions at all in the job-fetching or job
detail templates.
2020-11-06 08:21:38 -06: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
client-stat.js
csi-plugin.js UI: Support for CSI (#7446) 2020-03-25 07:51:26 -05:00
csi-volume.js UI: Support for CSI (#7446) 2020-03-25 07:51:26 -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
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