Watch
0
0
Fork
You've already forked hyperhive
0

swarm UI: one request for every agent's linked accounts

GET /api/agents/linked-accounts returns one entry per agent that
/api/agents/status has a row for, as {hive, agent, accounts}, from one
store login. The agents page fetches it once (and again when a link dialog
closes) and hands each table row and the detail panel its agent's slice,
so the page makes no per-agent request. The per-agent route had no caller
left and is removed. The bao grant is unchanged: the same list on each
agent's matrix and forge metadata directories.

Refs #4855
This commit is contained in:
atlas 2026-10-02 20:41:35 +02:00
commit 7ccde4647b
5 changed files with 165 additions and 66 deletions

View file

@ -27,9 +27,9 @@ set/update actions: no route hands a token back.
The agent's detail panel lists its linked accounts under **accounts**, one row
per account: kind, name and host. The table view's matrix column lists the
matrix rows. Both come from
`GET /api/hives/{hive}/agents/{agent}/linked-accounts`, which returns names
and hosts and never a credential.
matrix rows. The page fills both from one request,
`GET /api/agents/linked-accounts`, which returns every agent's accounts as
names and hosts, grouped by hive and agent, and never a credential.
| kind | one row per | name | host |
| ------- | ------------------------------------------- | ----------- | ------------------------ |