Create project entities before experiment entities
@@ -259,6 +259,17 @@ public class AiravataDataMigrator {
}
}
+ for (Entity entity : projectEntities) {
+ if (!sharingRegistryServerHandler.isEntityExists(entity.domainId, entity.entityId)) {
+ sharingRegistryServerHandler.createEntity(entity);
+ }
+ if (gatewayGroupsMap.containsKey(entity.domainId)) {
+ shareEntityWithAdminGatewayGroups(sharingRegistryServerHandler, entity, gatewayGroupsMap.get(entity.domainId), false);
+ } else {
+ System.out.println("Warning: no Admin gateway groups to share project entity " + entity.entityId + " in gateway " + entity.domainId);
+ }
+ }
+
for (Entity entity : experimentEntities) {
if (!sharingRegistryServerHandler.isEntityExists(entity.domainId, entity.entityId))
sharingRegistryServerHandler.createEntity(entity);
