Add the Nomad version to the UI
- Dominant language
- Go
- Stars
- 17k
- Forks
- 2.1k
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 105
Description
To help debug, or at least quickly rule out caching issues, the Web UI should include the Nomad version number.
The only way to do this without hiding potential caching issues is to embed the Nomad version number into the [`index.html`](https://github.com/hashicorp/nomad/blob/master/ui/app/index.html) file.
If we don't do that and instead make an immediate request to [an agent endpoint](https://www.nomadproject.io/api/agent.html) (or look at the server tags on the existing servers page), then we run the risk of ruling out a caching issue when the UI assets could still be stale while the API request is current.
We could also potentially check the embedded version against the agent response to programmatically determine if the UI is stale.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reading ui/app/index.html, the file identified as the place where the version must be embedded. Trace the existing UI build or version inputs only as needed, and consider the work complete when the Web UI displays the Nomad version from the embedded value without relying on a live agent request.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100