yasithdev opened a new pull request, #204: URL: https://github.com/apache/airavata-portals/pull/204
Part of the Track D proto-native serializer rewrite (retire the interim Thrift-type adapter layer, family by family, REST contract byte-for-byte preserved). ## What `GroupSerializer` and `UserProfileSerializer` now read the gRPC `GroupModel` / `UserProfile` protobuf directly; the entity-sharing + IAM consumers are repointed. - **GroupSerializer**: proto-native read + write; the update diff lists the view needs (added/removed members/admins) are stashed on the serializer instance (a proto message can't carry the old Thrift `_added_*` attrs); GroupViewSet reads them from the serializer. - **UserProfileSerializer**: preserves the Thrift quirks byte-for-byte — `State` (capitalised, Thrift int), `orginationAffiliation` (the misspelling), and `labeledURI` (a Thrift *list* field fed the proto string → the old ListField iterated it char-by-char); nsfDemographics/customDashboard render null. - Repoint UserProfileViewSet, SharedEntityViewSet (_load_user_profile/_load_group + the update diff reading proto names and building proto UserProfile/GroupModel), IAMUserViewSet._convert_user_profile / _get_unverified_email_user_profiles, and the group write path. - Remove `grpc_adapters` group/user_profile + `grpc_requests.group` and the now-unused Thrift imports. ## Validation - Byte-for-byte (group incl. method flags; user profile incl. the labeledURI char-split + State int) vs the old adapter+serializer `.data`. - Group write produces an equivalent proto. - `manage.py check` green; api test failures unchanged vs `origin/main`. -- 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]
