Skip to content

Fix assignee-picker 500, add user profile edit, fix flaky gate creation - #18

Merged
NubeDev merged 1 commit into
mainfrom
fix/issues-14-15-17-user-crud-assignee-picker-gate-views
Jul 16, 2026
Merged

Fix assignee-picker 500, add user profile edit, fix flaky gate creation#18
NubeDev merged 1 commit into
mainfrom
fix/issues-14-15-17-user-crud-assignee-picker-gate-views

Conversation

@NubeDev

@NubeDev NubeDev commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator
  • cant assign a user to an issue/project even though there is user you cant select it #15: list_users_for_org_impl omitted role from its SELECT, which crashed the shared row_to_user mapper and 500'd GET /users?org_id=, leaving the issue/project assignee picker with zero options. Add the missing column plus a regression test.

  • no way to CRUD users #14: add PUT /admin/users/{id} to edit name/email (store method, pg impl, audit verb, admin-gated route, OpenAPI registration, frontend client + schema + an Edit dialog on the admin users page).

  • move create views/gates to backend #17: batch gate-view (G1-G8) creation fired 8 concurrent fire-and-forget mutations and closed the dialog before any resolved, dropping ~half the tabs. Creation is now sequential, awaited, retried on failure, and surfaces errors instead of silently continuing.

- #15: list_users_for_org_impl omitted `role` from its SELECT, which
  crashed the shared row_to_user mapper and 500'd GET /users?org_id=,
  leaving the issue/project assignee picker with zero options. Add
  the missing column plus a regression test.

- #14: add PUT /admin/users/{id} to edit name/email (store method,
  pg impl, audit verb, admin-gated route, OpenAPI registration,
  frontend client + schema + an Edit dialog on the admin users page).

- #17: batch gate-view (G1-G8) creation fired 8 concurrent
  fire-and-forget mutations and closed the dialog before any
  resolved, dropping ~half the tabs. Creation is now sequential,
  awaited, retried on failure, and surfaces errors instead of
  silently continuing.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@NubeDev
NubeDev merged commit c41aaf3 into main Jul 16, 2026
1 of 4 checks passed
@NubeDev
NubeDev deleted the fix/issues-14-15-17-user-crud-assignee-picker-gate-views branch July 16, 2026 02:59
NubeDev added a commit that referenced this pull request Jul 16, 2026
Both sides independently fixed two bugs. Resolution:

- orgs.rs (missing `role` in list_users_for_org_impl SELECT):
  identical on both sides, resolved itself.

- G1-G8 gate race (#17): both sides fixed it differently. Kept the
  reconciling `onSubmitBatch` / `useCreateProjectViewBatch` path
  (re-lists and re-POSTs until every view exists) over #18's
  sequential-awaited loop. Batch doesn't route through
  `onCreateView`, so it has no per-view redirect to suppress.

- Kept #18's `createWithRetry`, `creating` in-flight guard, and
  error toasts on the single/custom paths — unrelated to the batch
  design and not covered by our version.

All non-overlapping #18 work (PUT /admin/users/{id}, users-page
edit dialog, openapi snapshot, regression tests) taken as-is.

Verified: cargo check + pnpm typecheck both clean.
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