This is an automated email from the ASF dual-hosted git repository.
lahirujayathilake pushed a commit to branch airavata-aws
in repository https://gitbox.apache.org/repos/asf/airavata.git
The following commit(s) were added to refs/heads/airavata-aws by this push:
new 31a9a4ac59 update the getGroupResourceProfile to load the
resource-specific properties
31a9a4ac59 is described below
commit 31a9a4ac5987d471ff0baf042fe22f4f413c74ae
Author: lahiruj <[email protected]>
AuthorDate: Tue Jun 24 18:08:34 2025 -0400
update the getGroupResourceProfile to load the resource-specific properties
---
.../appcatalog/GroupResourceProfileRepository.java | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git
a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/repositories/appcatalog/GroupResourceProfileRepository.java
b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/repositories/appcatalog/GroupResourceProfileRepository.java
index 6275bb7703..9a144dc618 100644
---
a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/repositories/appcatalog/GroupResourceProfileRepository.java
+++
b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/repositories/appcatalog/GroupResourceProfileRepository.java
@@ -138,6 +138,17 @@ public class GroupResourceProfileRepository
public GroupResourceProfile getGroupResourceProfile(String
groupResourceProfileId) {
GroupResourceProfile groupResourceProfile =
get(groupResourceProfileId);
+
+ GrpComputePrefRepository prefRepo = new GrpComputePrefRepository();
+ List<GroupComputeResourcePreference> decoratedPrefs = new
ArrayList<>();
+ for (GroupComputeResourcePreference raw :
groupResourceProfile.getComputePreferences()) {
+ GroupComputeResourcePrefPK pk = new GroupComputeResourcePrefPK();
+ pk.setComputeResourceId(raw.getComputeResourceId());
+ pk.setGroupResourceProfileId(raw.getGroupResourceProfileId());
+ decoratedPrefs.add(prefRepo.get(pk));
+ }
+ groupResourceProfile.setComputePreferences(decoratedPrefs);
+
return groupResourceProfile;
}