[ 
https://issues.apache.org/jira/browse/AIRAVATA-2601?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16365627#comment-16365627
 ] 

ASF GitHub Bot commented on AIRAVATA-2601:
------------------------------------------

machristie commented on a change in pull request #165: [AIRAVATA-2601] Adding 
groups to Applications
URL: https://github.com/apache/airavata/pull/165#discussion_r168492493
 
 

 ##########
 File path: 
modules/sharing-registry/sharing-data-migrator/src/main/java/org/apache/airavata/sharing/registry/migrator/airavata/AiravataDataMigrator.java
 ##########
 @@ -181,6 +189,33 @@ public static void main(String[] args) throws 
SQLException, ClassNotFoundExcepti
             }
         }
 
+        //Creating application entries
+        query = "SELECT * FROM APPLICATION";
+        statement = expCatConnection.createStatement();
+        rs = statement.executeQuery(query);
+        while(rs.next()){
+            try {
+                Entity entity = new Entity();
+                entity.setEntityId(rs.getString("APPLICATION_ID"));
+                entity.setDomainId(rs.getString("GATEWAY_ID"));
+                entity.setEntityTypeId(rs.getString("GATEWAY_ID") + 
":APPLICATION");
+                entity.setOwnerId(rs.getString("USER_NAME") + "@" + 
rs.getString("GATEWAY_ID"));
 
 Review comment:
   Sneha, for the owner of an application deployment, have the migration script 
take an argument for a default owner that will be used to assign ownership in 
cases like this where there is no owner associated in the app catalog.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Adding Groups to Applications
> -----------------------------
>
>                 Key: AIRAVATA-2601
>                 URL: https://issues.apache.org/jira/browse/AIRAVATA-2601
>             Project: Airavata
>          Issue Type: Improvement
>          Components: Registry API
>            Reporter: Sneha Tilak
>            Assignee: Sneha Tilak
>            Priority: Major
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to