You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@airavata.apache.org by "yasithdev (via GitHub)" <gi...@apache.org> on 2026/06/09 01:12:08 UTC

[PR] feat(portal): repoint notification/parser/gateway-profile/storage-pref writes to gRPC (Track D, D3) [airavata-portals]

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

   ## Summary
   Migrate four write families from the Thrift client to the gRPC facades:
   - `ManageNotificationViewSet` create/update/destroy → `research.create_/update_/delete_notification`
   - `ParserViewSet` create/update → `research.save_parser`
   - `CurrentGatewayResourceProfile.put` → `compute.update_gateway_resource_profile`
   - `StoragePreferenceViewSet` create/update/destroy → `compute.{add,update,delete}_gateway_storage_preference`
   
   New `grpc_requests` reverse adapters: `notification`, `parser` (+ParserInput/Output `IOType`), `storage_preference`, `gateway_resource_profile` (+`ComputeResourcePreference`). The two protocol enums on `ComputeResourcePreference` have proto/Thrift **name divergence** (Thrift `CLOUD`↔proto `JSP_CLOUD`, Thrift `LOCAL`↔proto `DATA_MOVEMENT_PROTOCOL_LOCAL`) → explicit inverse name maps (`_proto_enum_rev`). Also fixes `_proto_enum` to re-apply a proto member prefix **only when it yields a valid member** (proto3 prefixes only the zero `*_UNKNOWN` sentinel for these enums).
   
   ## Test plan
   - `manage.py check` clean.
   - Live notification CRUD: POST 201, PUT 200, DELETE 204.
   - Offline `thrift→proto→thrift` round-trips confirm all four reverse adapters preserve fields and enums (including the divergent protocol enums).


-- 
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: dev-unsubscribe@airavata.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat(portal): repoint notification/parser/gateway-profile/storage-pref writes to gRPC (Track D, D3) [airavata-portals]

Posted by "yasithdev (via GitHub)" <gi...@apache.org>.
yasithdev merged PR #177:
URL: https://github.com/apache/airavata-portals/pull/177


-- 
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: dev-unsubscribe@airavata.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org