Hello dev,

Last week, Eroma assigned me a JIRA ticket - https://issues.apache.org/ji
ra/browse/AIRAVATA-2385 to check for duplicate gateway requests (if there
already exists an APPROVED gateway with the same Id/name/URL).

I created a PULL request - https://github.com/apache/airavata/pull/111 with
a few changes after which I received some suggestions from Marcus. The PULL
request now reflects the following code changes -

   1. Added new method checkDuplicateGateway() in
   TenantProfileServiceHandler.java to identify duplicate requests for
   Gateway Ids that have already been approved
   2. Modified FIND_GATEWAY_BY_ID in QueryConstants.java to return only
   Approved Gateways
   3. Added new method getAllGatewaysForUser() in
   TenantProfileServiceHandler.java as a Thrift service to display gateways
   belonging to a particular user
   4. Added new method getAllGatewaysForUser() in
   TenantProfileRepository.java to retrieve the GET_USER_GATEWAYS query result
   5. Modified profile_tenant_cpi.thrift to include getAllGatewaysForUser()
   and generated the stubs to reflect in Iface (TenantProfileService.java)
   6. Added GET_USER_GATEWAYS in QueryContsants.java to return all Gateways
   belonging to a particular user
   7. Modified workspace_model.thrift to expose the Gateway's
   airavataInternalId to Update and Delete Gateways and generated the stubs to
   reflect in Gateway.java
   8. Modified deleteGateway() in profile_tenant_cpi.thrift to accept the
   airavataInternalId as a parameter and generated the stubs to reflect in
   Iface (TenantProfileService.java)

Reviews/suggestions are welcome!

Regards,
*Sneha Tilak*

Reply via email to