Repository navigation
fix(users): directory role exclusions, session ctx refresh, full_name validation, profile headings, and inline 422 errors - #1342
Merged
Conversation
Deploying simple-module-python with
|
| Latest commit: |
2933256
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://7e46b441.simple-module-python.pages.dev |
| Branch Preview URL: | https://feat-users-directory-profile.simple-module-python.pages.dev |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Owner
Author
|
/ship passed on 3958e1b Pipeline Summary (Round 1 — Converged Clean)
|
antosubash
force-pushed
the
feat/users-directory-profile-fixes
branch
from
November 30, 2026 18:02
3958e1b to
2933256
Compare
Owner
Author
|
/ship passed on 2933256 Post-rebase verification summary (rebased onto
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
exclude_rolesSQL filtering (UserDirectory.search(..., exclude_roles=...)): excludes users holding specified role names via SQLNOT EXISTSinUsersDirectory.searchbeforeLIMITis applied; accepted (and ignored) byNullUserDirectoryandCacheDirectory, and documented indocs/framework/user-directory.md. Closes users: user directory search cannot exclude users by role (results filtered after the limit) #1313user_ctxinvalidation: invalidates cachedsession["user_ctx"]onPATCH /api/users/meand onPATCH /api/users/admin/{user_id}when editing the signed-in user so sharedauth.userprops immediately reflect updated name and email on the next request. Closes users: auth.user.name stays stale after PATCH /api/users/me (session user_ctx never refreshed) #1314full_namevalidation & trimming: unifiesMAX_FULL_NAME_LENGTHto200across server schemas (FullNameStr) and client inputs (maxLength={200}), trims leading/trailing whitespace, rejects blank/whitespace-only/over-limit values with 422 field errors, preserves explicitnullclearing vs omitted fields on PATCH, and keeps pre-filled names on blankAcceptInviteRequest. Closes users: PATCH /api/users/me stores a blank full_name instead of rejecting it or storing NULL #1315, Closes users: profile 'Save details' accepts blank names and 500s on names over 255 chars #1335Details,Password,Sessions,Preferences) as<h2>headings under the<h1>page title. Closes Users Profile page skips a heading level (h1 then h3 card titles) #1316FieldErrormessages (role="alert",aria-invalid,aria-describedby) foremailandfull_nameon/admin/users/<id>instead of collapsing them into a generic error banner, clears each field error on edit, disables inputs while saving, and reconciles form/baseline with server-trimmed responses. Closes users admin: Details card shows only 'Failed to update details' for a 422; field errors are dropped #1337Verification
make gen,make lint,PYTEST_WORKERS=8 make test-py,make test-js,make ci-doctor— all passed./users/meheading hierarchy (h1"Your profile" +h2"Details", "Password", "Sessions", "Preferences") andmaxlength="200".full_namereturns 422 inline field error on/users/me, and saving" Admin QA Name "trims to"Admin QA Name"and refreshesauth.user.nameon reload./admin/users/<id>Details card displays inline 422role="alert"errors for both blankfull_nameand invalidemail(no generic failure banner), clears each field error independently on edit, and updatesauth.user.nameto"Admin Updated"on reload after saving" Admin Updated ".