Skip to content

Commit e52666c

Browse files
committed
Adapts things
1 parent 7ca1cf6 commit e52666c

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/docker-snapshot-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ on:
2121
- 'NOTICE'
2222

2323
env:
24-
DOCKER_NAMESPACE: eclipsebasyx
24+
DOCKER_NAMESPACE: friedjannik
2525

2626
jobs:
2727
build-and-push-prerelease:

basyx.aasregistry/basyx.aasregistry-service-mongodb-storage/src/main/java/org/eclipse/digitaltwin/basyx/aasregistry/service/storage/mongodb/MongoDbAasRegistryStorage.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,11 @@ public CursorResult<List<AssetAdministrationShellDescriptor>> getAllAasDescripto
9494
AggregationResults<AssetAdministrationShellDescriptor> results = template.aggregate(Aggregation.newAggregation(allAggregations), collectionName, AssetAdministrationShellDescriptor.class);
9595
List<AssetAdministrationShellDescriptor> foundDescriptors = results.getMappedResults();
9696
String cursor = resolveCursor(pRequest, foundDescriptors, AssetAdministrationShellDescriptor::getId);
97+
foundDescriptors.forEach(desc -> {
98+
desc.getSpecificAssetIds().forEach(sId -> {
99+
sId.setExternalSubjectId(null);
100+
});
101+
});
97102
return new CursorResult<>(cursor, foundDescriptors);
98103
}
99104

@@ -152,6 +157,9 @@ public AssetAdministrationShellDescriptor getAasDescriptor(@NonNull String aasDe
152157
if (descriptor == null) {
153158
throw new AasDescriptorNotFoundException(aasDescriptorId);
154159
}
160+
descriptor.getSpecificAssetIds().forEach(sId -> {
161+
sId.setExternalSubjectId(null);
162+
});
155163
return descriptor;
156164
}
157165

0 commit comments

Comments
 (0)