Skip to content

fix: search users by ID + show member email in org lists#680

Merged
lakhansamani merged 2 commits into
mainfrom
fix/user-search-id-and-org-email
Jul 12, 2026
Merged

fix: search users by ID + show member email in org lists#680
lakhansamani merged 2 commits into
mainfrom
fix/user-search-id-and-org-email

Conversation

@lakhansamani

Copy link
Copy Markdown
Contributor

Two follow-up fixes to #678 (both reported broken from the dashboard).

1. Search users by ID

_users search matched email/name/nickname but not the user id, so admins couldn't find a user by ID. Added the id to the search on every backend (SQL/Mongo/Arango/Couchbase LIKE-or-regex with bound params/QuoteMeta; DynamoDB/Cassandra scan via MatchesSearch). Dashboard placeholder → "Search by email, name, or ID...". Search tests extended (id-prefix returns the user) across TEST_DBS.

2. Show member email in org member lists

The OrgMember type had only user_id, so the org detail member list showed opaque IDs. Added email/given_name/family_name (nullable) to OrgMember, resolved from the user in the _org_members service (one lookup per member per page; dangling user → blank, never errors). Dashboard member cell shows email (falls back to user_id). GraphQL-only; gen committed.

Testing

go build/vet/golangci-lint (0 issues), graphql codegen parity, SQLite integration + storage search tests green (id-search + member-email assertions added), dashboard tsc/build/prettier clean. Non-SQLite via CI make test-all-db (id-search mirrors the already-cross-DB-validated email search).

Admins could not locate a user by id from the _users search box; only
email/name/nickname matched.

- add id to MatchesSearch (dynamodb/cassandra scan path)
- add id column to the OR-search in sql/mongodb/arangodb/couchbase
- update dashboard search placeholder
Org member lists showed opaque user ids. Resolve each membership's user
identity for display.

- add email/given_name/family_name to OrgMember (GraphQL only; no proto
  mirror)
- populate via GetUserByID per member; blank on a dangling user, one
  lookup per member per paginated page
- dashboard shows email with user_id as secondary
@lakhansamani
lakhansamani merged commit 989edf1 into main Jul 12, 2026
4 checks passed
@lakhansamani
lakhansamani deleted the fix/user-search-id-and-org-email branch July 12, 2026 06:41
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