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

   ## Summary
   Migrate the gateway resource profile and gateway storage preference reads 
from the Thrift client to the gRPC **compute** facade, plus the experiment 
archive view to the research facade (reusing the `experiment` adapter).
   
   - `CurrentGatewayResourceProfile.get` → 
`compute.get_gateway_resource_profile`
   - `StoragePreferenceViewSet.get_list`/`get_instance` → 
`compute.get_all_gateway_storage_preferences` / `get_gateway_storage_preference`
   - `ExperimentArchiveView.get` → `research.get_experiment`
   
   New `gateway_resource_profile` adapter recursively adapts the 
`computeResourcePreferences` (`ComputeResourcePreference` — whose preferred 
job-submission / data-movement protocol enums render as raw ints and reuse the 
existing name-divergent maps, plus an `sshAccountProvisionerConfig` map) and 
the `storagePreferences`, backed by a new public `storage_preference` adapter 
the `StoragePreferenceViewSet` also uses. `userHasWriteAccess` on the gateway 
profile is gateway-admin-based (unchanged). Write actions stay on Thrift 
pending D3.
   
   ## Test plan
   - `manage.py check` clean.
   - The gateway resource profile and the **real dev storage preference** both 
round-trip live with correct data (the storage pref returns the real 
`storageResourceId`, `loginUserName`, root location, and credential token).
   - Offline render exercises a populated compute resource preference (protocol 
enums bridged to the right Thrift ints) and the empty-token → `null` conversion.


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