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

   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
   `StoragePreferenceSerializer`, `GatewayResourceProfileSerializer`, and the 
nested `ComputeResourcePreferenceSerializer` now read the gRPC protobuf 
directly.
   
   - New `ProtoEnumIntField` (+ `proto_enum_int_field` factory) renders a proto 
enum as the Thrift integer by member name, with a `name_map` for the protocol 
enums whose names diverge (proto `JSP_CLOUD` → Thrift `CLOUD`; proto 
`DATA_MOVEMENT_PROTOCOL_LOCAL` → Thrift `LOCAL`); reusable 
`job_submission_protocol_field` / `data_movement_protocol_field` helpers back 
the protocol fields.
   - Repoint `CurrentGatewayResourceProfile` (get/put) + 
`StoragePreferenceViewSet` (CRUD) to pass protobuf through — drops 
`grpc_adapters`/`grpc_requests` 
gateway-profile/storage-preference/compute-resource-preference funcs + the 
Thrift imports.
   
   ## Validation
   - Byte-for-byte (storage pref full/empty, gateway profile w/ nested compute 
prefs, incl. the divergent protocol-enum bridging JSP_CLOUD/LOCAL) vs the old 
adapter+serializer `.data`.
   - Write paths produce equivalent protos.
   - `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]

Reply via email to