Private
Public Access
1
0

feat(jobs): add host_names to job list API and UI (#24)
All checks were successful
CI Pipeline / Rust Format Check (push) Successful in 5s
CI Pipeline / Clippy Lints (push) Successful in 51s
CI Pipeline / Rust Unit Tests (push) Successful in 1m7s
CI Pipeline / Security Audit (push) Successful in 5s
CI Pipeline / Frontend Lint & Type Check (push) Successful in 15s
CI Pipeline / Build .deb & Release (push) Has been skipped

* feat(jobs): add host_names to job list API and UI

Closes #23

* fix(jobs): add mut for host_names merge loop
This commit is contained in:
Draco-Lunaris-Echo
2026-06-04 12:49:53 -05:00
committed by GitHub
parent b9fb3427e0
commit fda70ecf9e
5 changed files with 61 additions and 4 deletions

View File

@ -70,12 +70,16 @@ Security: JWT Bearer Token (except Public Endpoints)
## 7. Jobs & Patch Deployment
| Method | Endpoint | Description |
|--------|----------|-------------|
| GET | `/jobs` | List patch jobs |
| GET | `/jobs` | List patch jobs (includes `host_names` per job) |
| POST | `/jobs` | Create new patch job |
| GET | `/jobs/{id}` | Get job status/details |
| POST | `/jobs/{id}/cancel` | Cancel running job |
| POST | `/jobs/{id}/rollback` | Rollback completed job |
### GET /jobs Response Fields
Each job summary object includes:
- `host_names`: Array of display names for hosts targeted by this job. Falls back to `fqdn` when `display_name` is empty. Single-host jobs show one name; multi-host jobs show all names sorted alphabetically.
## 8. Maintenance Windows
*Scoped to host.*
| Method | Endpoint | Description |