open-nomad/ui/tests/unit
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
..
abilities Fix job detail crash when recommendations off (#9269) 2020-11-06 08:21:38 -06:00
adapters Test coverage for the deployment adapter action 2020-07-21 09:02:39 -07:00
components Unit and integration tests for TopoViz component 2020-10-15 02:54:16 -07:00
helpers Unit test for for GiB in format-bytes 2020-10-15 02:54:16 -07:00
mixins Improve global search UX (#8249) 2020-06-25 08:51:52 -05:00
models Add embedded task group to allocation to reference when allocation is historical 2020-05-01 14:30:02 -07:00
serializers Add DAS UI code from enterprise (#9192) 2020-10-29 07:46:42 -05:00
services Fix a bunch of snowflake situations the codemod missed 2019-04-10 14:54:31 -07:00
utils Add handling for allocation-less exec URL (#8856) 2020-09-15 14:48:29 -05:00
.gitkeep sync 2017-09-19 10:08:23 -05:00