open-nomad/ui/mirage
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
..
data Move resource generation helper to a common place 2018-04-20 18:10:41 -07:00
factories Add DAS UI code from enterprise (#9192) 2020-10-29 07:46:42 -05:00
models Fix job detail crash when recommendations off (#9269) 2020-11-06 08:21:38 -06:00
scenarios Add DAS UI code from enterprise (#9192) 2020-10-29 07:46:42 -05:00
serializers Add DAS UI code from enterprise (#9192) 2020-10-29 07:46:42 -05: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