You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
perf(platform): page the members table in settings #5294
Decision: the members table's new page answers owners and admins only, and tells them each member's two-factor state. Every other role is refused. This is narrower than both options asked about.
The question (asked on the task by the Coder): whom does the new page answer, and to whom does it give each member's two-factor state?
The ground. On feature-train at 947f90c38bb30be5034e7eb3ed68c8006f23b16f, under services/platform/:
The screen is the owners' and admins' only.members-page.tsx:33 shows Access denied to every role that may not readorgSettings. lib/permissions/ability.ts gives that read to Owner and Admin alone: Developer :72, Member :116, and Editor has none.
One use of the two-factor state. The app uses it only for the edit dialog's Reset two-factor (member-edit-dialog.tsx:335). That dialog opens only for a caller with canManageMembers (member-row-actions.tsx:75, :121).
The other members are served already. Every member pages through the people of the organization with the member search, and names them with the lookup. Neither answers a sign-in factor (MEMBER-R11, MEMBER-R12, backend/domains/members/spec.md:99-127).
The promise. The docs keep viewing a member's sign-in factors to owners and admins (docs/en/platform/admin/two-factor-authentication.md:82), and MEMBER-R6 says listing a member's passkeys follows that rule.
Options weighed.
(a) Every member, with the state. The page answers every member, each row with its two-factor state. That gives every role an answer no screen of theirs needs, against the docs above. Refused.
(b) The Coder's recommendation. The page answers every member, with twoFactorEnabled only for those who may manage members. That closes the field. It also gives every role a second directory beside the search, and an answer whose shape depends on who asks.
(c) Owners and admins only. The page answers owners and admins, each row with its two-factor state, and refuses every other role. It is the least access that serves the one screen reading it, it has one shape, and no one else loses anything: they have the search. Chosen.
Decided.
Who reads it. The page answers a caller whose role, as the org gate enforces it, is Owner or Admin. That role is c.get('orgMember').role, a trusted-headers session's role included, checked with isAdminRole as GET /user-id-by-email checks it in routes.ts. Every other role gets 403 in the shape of the module's other refusals ({ error: <code> }).
What a row holds. Each row carries the member's id, role, name, email, when they joined and twoFactorEnabled. It carries no passkey count: the dialog reads one member's passkeys when it opens (MEMBER-R6).
The route loader. It prefetches the first page only when the cached ability may readorgSettings, as app/lib/loader-preload.ts does for the admin-only pages (:133, :179). A member who opens the URL gets Access denied, not a refused request.
The spec. A rule says who reads the page and what it holds, with an example. Its number is yours: MEMBER-R13 is the next free one at 947f90c38.
What done means. The issue's points, plus the decision:
The table reads one page at a time, sorted on the server, and tests cover the paged table and its route.
A route test pins the gate: Member, Editor and Developer → 403; Admin and Owner → 200, with twoFactorEnabled on every row.
GET /api/app/members/ and useMembers. At 947f90c38, screens beyond TALE-385's pickers still read them: version-author.tsx, use-actor-label.ts, document-record-submit-dialog.tsx, audit-logs-page.tsx, competences-page.tsx and member-rights-dialog.tsx. Remove them only if nothing reads them at your base. Otherwise leave them, and name the readers left in the handover and on perf(platform): page the members table in settings #5294. Either way the message ends Closes #5294, whose done-means is the paged table and its tests.
Choices left to the Coder:
the route's path and name;
the refusal code;
the sort key and the cursor: a name sort needs a tie-breaker that the keyset helpers in backend/rest/shared.ts can carry;
the page size within pageLimit;
where the tests live.
Kind:perf (#5294 carries it). Priority: p3: its issue gives no priority:, and it unblocks no bug.
Line: feature
What would change this decision:
a screen a non-admin may open that needs the paged table. Then (b), with the field kept to owners and admins;
How this task lands now: branch from origin/<the train of its line> (train or feature-train) and record that commit as the base; open no pull request, and close one the task still has. Hand over on this task (train, branch, full head, base, the gate you ran, and the squash message ending with Closes #<n> or Refs #<n>), mentioning @Reviewer, then move it to In review and wake the Reviewer: task_start_agent with agentId13642abb-858d-5e1b-b1bd-fad0aa5b8210, moveToInProgress false, a feedback that names the task to review (TALE-<n>) and its head, and as taskId the review task for that task's number modulo 4 (0 ecd5f981-28a9-52d2-b777-5709ba608ab3, 1 1cc61d5a-14f7-5e87-8ebc-8c140ba87394, 2 99c3b59d-9d31-5563-8c14-c4790b001a69, 3 2ae0a313-280c-5288-91a7-a0138f3cdc60); when it answers already_running, wait a minute (sleep 60) and call once more, and when it refuses (paused: three starts within the hour; or another agent started your run, which may not start a third), say so on the task and in your receipt: the next wake or the 8-hourly sweep takes it up. A question for the Lead: comment Needs a decision: mentioning @Lead, move the task to Backlog and wake the Lead: task_start_agent with taskId3a4ce694-8041-507b-9d1d-e6db145fd2a7 (its role task Decide), agentIdbb96ec41-89a9-5c51-b719-ae65c70bddf7, moveToInProgress false and a feedback that names the task that asks (TALE-<n>) and the question in a line; when it answers already_running, wait a minute (sleep 60) and call once more, and when it refuses (paused: three starts within the hour; or another agent started your run, which may not start a third), say so on the task and in your receipt: the next wake or the 8-hourly sweep takes it up. The Lead's decision above settles what the task asked a person; a technical choice is yours to make and record in the plan (Development's "Who decides"). This replaces whatever an older copy of the instructions earlier in this task's conversation says.
Activity
tale-review-bot commentedon Nov 2, 2026
Decision: the members table's new page answers owners and admins only, and tells them each member's two-factor state. Every other role is refused. This is narrower than both options asked about.
The question (asked on the task by the Coder): whom does the new page answer, and to whom does it give each member's two-factor state?
The ground. On
feature-trainat947f90c38bb30be5034e7eb3ed68c8006f23b16f, underservices/platform/:members-page.tsx:33shows Access denied to every role that may notreadorgSettings.lib/permissions/ability.tsgives that read to Owner and Admin alone: Developer:72, Member:116, and Editor has none.member-edit-dialog.tsx:335). That dialog opens only for a caller withcanManageMembers(member-row-actions.tsx:75,:121).MEMBER-R11,MEMBER-R12,backend/domains/members/spec.md:99-127).docs/en/platform/admin/two-factor-authentication.md:82), andMEMBER-R6says listing a member's passkeys follows that rule.Options weighed.
twoFactorEnabledonly for those who may manage members. That closes the field. It also gives every role a second directory beside the search, and an answer whose shape depends on who asks.Decided.
c.get('orgMember').role, a trusted-headers session's role included, checked withisAdminRoleasGET /user-id-by-emailchecks it inroutes.ts. Every other role gets 403 in the shape of the module's other refusals ({ error: <code> }).twoFactorEnabled. It carries no passkey count: the dialog reads one member's passkeys when it opens (MEMBER-R6).readorgSettings, asapp/lib/loader-preload.tsdoes for the admin-only pages (:133,:179). A member who opens the URL gets Access denied, not a refused request.MEMBER-R13is the next free one at947f90c38.What done means. The issue's points, plus the decision:
twoFactorEnabledon every row.GET /api/app/members/anduseMembers. At947f90c38, screens beyond TALE-385's pickers still read them:version-author.tsx,use-actor-label.ts,document-record-submit-dialog.tsx,audit-logs-page.tsx,competences-page.tsxandmember-rights-dialog.tsx. Remove them only if nothing reads them at your base. Otherwise leave them, and name the readers left in the handover and on perf(platform): page the members table in settings #5294. Either way the message endsCloses #5294, whose done-means is the paged table and its tests.Choices left to the Coder:
backend/rest/shared.tscan carry;pageLimit;Kind:
perf(#5294 carries it). Priority: p3: its issue gives nopriority:, and it unblocks no bug.Line: feature
What would change this decision:
@Coder: yours. Dispatch starts it from To do.perf(platform): look up the people screens name, not every member
perf(platform): look up the people screens name, not every member
perf(platform): look up the people screens name, not every member
perf(platform): look up the people screens name, not every member
perf(platform): look up the people screens name, not every member
perf(platform): look up the people screens name, not every member
perf(platform): look up the people screens name, not every member
perf(platform): look up the people screens name, not every member
perf(platform): look up the people screens name, not every member
perf(platform): look up the people screens name, not every member
perf(platform): look up the people screens name, not every member
perf(platform): look up the people screens name, not every member
perf(platform): look up the people screens name, not every member
perf(platform): look up the people screens name, not every member
perf(platform): look up the people screens name, not every member
perf(platform): look up the people screens name, not every member
perf(platform): look up the people screens name, not every member