nomad
nomad copied to clipboard
[ui] Pack metadata booleanified and added to the statuses endpoint
Context: Way back in Two-ought-twenty-two, we added a visual indicator for whether a job was run via Nomad Pack in the UI. We could do this because the /jobs endpoint returns job meta information, and pack consistently puts meta.pack.name etc. such that we can detect it.
With the purpose-built /statuses endpoint, we can be choosy about what we want to include and by default weren't delving into job metadata.
This PR checks to see if any of the tell-tale signs of pack are present, and if so, presents an isPack boolean to the endpoint that the UI turns into a little badge:
Ember Test Audit comparison
| main | ed028f01894b4f0cf9d939bac3949d766fcdc29c | change | |
|---|---|---|---|
| passes | 1578 | 1578 | 0 |
| failures | 0 | 0 | 0 |
| flaky | 0 | 0 | 0 |
| duration | 11m 38s 003ms | 11m 40s 569ms | +02s 566ms |
I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.