oliver-zehentleitner / maity

web: edit a runner's projects in one place on the Runners page

Sign in to report

tsk-8s2je4hdksx6 Open

The maintainer, 2026-11-17 (chat 149243): "wenn ich 20 projekte habe möchte ich das an einem ort machen können statt an 20".

Today a runner's projects can only be changed project by project (Project → Settings → Runners → Detach). The global Runners page (web/js/runners.js) only renames, revokes and re-pairs, and lists the projects read-only.

Build on the Runners page, per runner of one's own, an Edit projects view:

  • It lists the projects the owner may attach it to (members:admin) with a checkbox each, ticked where it is attached now.
  • Saving attaches the newly ticked ones (POST /projects/{owner}/{slug}/runners) and detaches the unticked ones (DELETE …/runners/{runner_id}), using the routes that exist.
  • Before detaching, say how many agents it closes per project, the same as the per-project confirm does today (prunners.detach.confirm), in one confirm.
  • Partial failure: show which projects changed and which didn't, and why.
  • Remind the user that the runner's own runner.toml [limits] projects must also allow a project (link to docs/runners.md), and show where the hub knows it doesn't (from the runner's advertised capabilities.projects).
  • No new hub route unless the reviewers find one is needed for atomicity; if so, contract first.
  • Tests: web unit and smoke; user docs in docs/runners.md, the same PR.