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

   ## Summary
   Migrate `ParserViewSet` and `ManageNotificationViewSet` reads from the 
Thrift client to the gRPC research facade (`research.list_all_parsers` / 
`get_parser` / `get_all_notifications` / `get_notification`). Write actions 
stay on Thrift pending D3.
   
   - New `parser` adapter recursively adapts the nested `inputFiles` 
(`ParserInput`) and `outputFiles` (`ParserOutput`); their `IOType` field 
renders as a raw int, bridged by name with the proto `IO_TYPE_` prefix stripped.
   - New `notification` adapter — `NotificationSerializer` renders `priority` 
through a `ThriftEnumField` (the name), so the adapter produces the Thrift enum 
member (via the prefix helper) rather than an int. 
`publishedTime`/`expirationTime` keep their int (non-nullable UTC fields); 
`creationTime` maps proto-zero → `None`.
   - `userHasWriteAccess` on both is gateway-admin-based (unchanged).
   
   ## Test plan
   - `manage.py check` clean.
   - Both list endpoints return 200 live.
   - Offline serializer render confirms notification `priority` renders as the 
name (`HIGH`) and parser `IOType` bridges to the correct Thrift int.


-- 
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