yasithdev opened a new pull request, #185:
URL: https://github.com/apache/airavata-portals/pull/185

   ## Summary
   
   Repoints the last user/admin-management views off the Thrift profile-service 
/ airavata clients.
   
   ## Changes
   
   - **`UserProfileViewSet`** → 
`request.airavata.iam.get_all_user_profiles_in_gateway` / 
`get_user_profile_by_id` (+ `grpc_adapters.user_profile`).
   - **`IAMUserViewSet`**: `perform_update` group membership → 
`sharing.gm_get_group` / `gm_add_users_to_group` / `gm_remove_users_from_group` 
+ `iam.get_user_profile_by_id`; `_convert_user_profile` now adapts the protobuf 
`UserProfile` that `iam_admin_client` returns (via 
`grpc_adapters.user_profile`) so the field reads and `State` comparison stay 
unchanged, and checks existence / group membership via `iam.does_user_exist` / 
`sharing.gm_get_all_groups_user_belongs`. **This also fixes a latent 
regression:** once the IAM admin client moved to gRPC (#180) it returns 
protobuf profiles, which `_convert_user_profile` was still reading with Thrift 
attribute names.
   - **`APIServerStatusCheckView`** → `research.get_user_projects`.
   
   ## Testing
   
   - `manage.py check` — green.
   - Live, logged in:
     - `/api/user-profiles/` → **200**, returns the gateway user profile (26 
fields, rendered via the `user_profile` adapter).
     - `/api/api-status-check/` → **200** `{"apiServerUp": true}`.
     - `IAMUserViewSet` is admin-only; the `_convert_user_profile` path reuses 
the `user_profile` adapter already validated to render cleanly through 
`UserProfileSerializer`.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to