Skip to content

desktops: people and classes picked, and the one thing missing named - #554

Merged
epheo merged 10 commits into
mainfrom
feat/desktops-people
Nov 30, 2026
Merged

epheo merged 10 commits into
mainfrom
feat/desktops-people

Conversation

@epheo

@epheo epheo commented Nov 30, 2026

Copy link
Copy Markdown
Owner

The desktop forms pick people and classes instead of typing them, and say the one thing still missing.

  • People: "Who may claim one" on a pool (users and groups) and "Owner" on a desktop (one user) are a picker.
    • In this project: whom the project's namespaces already grant, read from the platform repo's rendered bindings in git, per namespace to whoever may list role bindings there; service accounts left out.
    • Elsewhere on the cluster: searched on typing, under the caller's own token, only where the cluster serves OpenShift Users and Groups and the caller may list them; capped, debounced, cached per token.
    • Not found: "Use anyway" on a click, marked "not found on this cluster: they may not have signed in yet"; its syntax is checked.
    • Free entry where the cluster offers no user API, with "dotvirt cannot check this name here."
  • Class: a desktop is made of a class; the image option is gone from the form (Edit manifest still sets one). Classes are a picker where the caller may list them, a named field otherwise. With none, a class author adds the first one in one click: DeskuBe's desktop image, pinned by digest, with nested sandboxes, which its browser needs.
  • An image whose needs its desktop does not meet (DeskuBe's ImageNeedsUnmet) says so on its row and page, with "Edit class" or "Edit its manifest" for whoever may.
  • Stage names one reason when blocked, in order: the guard (with the console's install for who may), desktops off or held back, no class, no one to claim or no owner, then field errors.

Added request load:

  • Opening a form: 1 GET /api/people, answered from git plus cached reviews.
  • On OpenShift: user.openshift.io joins the shared discovery index (at most one more discovery GET a minute).
  • Search: at most 1 LIST of users and 1 of groups per token per 30 s, single-flighted, after a 250 ms debounce; group member counts at most 1 LIST per token per 30 s.
  • First class: 1 POST to the existing class route per click.
  • The frame and stream paths: nothing.

@epheo
epheo merged commit 5482769 into main Nov 30, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant