Skip to content

Search admin users by id#144

Open
GHX5T-SOL wants to merge 1 commit into
shark-auth:mainfrom
GHX5T-SOL:fix/80-user-search-by-id
Open

Search admin users by id#144
GHX5T-SOL wants to merge 1 commit into
shark-auth:mainfrom
GHX5T-SOL:fix/80-user-search-by-id

Conversation

@GHX5T-SOL
Copy link
Copy Markdown

Title
Search admin users by id

Summary

  • include user ids in the existing admin user-list search predicate
  • keep the same parameterized query path for list results and totals
  • add an API regression for an id-only search term

Addresses #80.

Validation

  • go test ./internal/api -run TestAdminListUsers -count=1
  • go test ./internal/storage -count=1
  • git diff --check HEAD~1 HEAD
  • git show --format= --patch HEAD | gitleaks stdin --no-banner --redact --timeout 30

Notes

  • Before the source change, go test ./internal/api -run TestAdminListUsers_SearchMatchesUserID -count=1 failed with total: got 0, want 1.
  • I also tried go test ./internal/api -count=1; it failed in unrelated existing tests such as TestFirstbootKeyServedOnceGlobally, TestAdminConfigShape, TestListAPIKeys, and TestScenario_SwarmOrchestrator. The new user-search regression passed during that run.
  • I did not run an admin UI build; this PR changes the backend search predicate and Go API coverage only.

@Raulgooo
Copy link
Copy Markdown
Contributor

Thanks for the work. Will be reviewing it soon :)

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.

2 participants