-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat: Cursor implementation done for GET request in ShellAPI and LookUp API #153
Feat: Cursor implementation done for GET request in ShellAPI and LookUp API #153
Conversation
…. Spring jdbc changed to spring jpa.
.../org/eclipse/tractusx/semantics/registry/controller/AssetAdministrationShellApiDelegate.java
Outdated
Show resolved
Hide resolved
@@ -118,21 +116,28 @@ public ResponseEntity<SubmodelDescriptor> getSubmodelDescriptorByIdThroughSuperp | |||
|
|||
@Override | |||
public ResponseEntity<AssetAdministrationShellDescriptor> postAssetAdministrationShellDescriptor( AssetAdministrationShellDescriptor assetAdministrationShellDescriptor ) { | |||
Shell saved = shellService.save(shellMapper.fromApiDto(assetAdministrationShellDescriptor)); | |||
Shell shell = shellMapper.fromApiDto(assetAdministrationShellDescriptor); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be better to handle this settings in the service layer or much better in the mapper
backend/src/main/java/org/eclipse/tractusx/semantics/registry/dto/ShellCollectionDto.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/org/eclipse/tractusx/semantics/registry/service/ShellService.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/org/eclipse/tractusx/semantics/registry/service/ShellService.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/org/eclipse/tractusx/semantics/registry/service/ShellService.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/org/eclipse/tractusx/semantics/registry/service/ShellService.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/org/eclipse/tractusx/semantics/registry/service/ShellService.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/org/eclipse/tractusx/semantics/registry/service/ShellService.java
Show resolved
Hide resolved
@agg3fe Do we have tests for cursor pag. ? |
Yes. Test cases are already there in AssetAdministrationShellApiTest class. |
List<SubmodelDescriptor> descriptorResults = submodelMapper.toApiDto( submodels ); | ||
GetSubmodelDescriptorsResult result = new GetSubmodelDescriptorsResult(); | ||
result.setResult( descriptorResults ); | ||
Shell savedShell = shellService.findShellByExternalId(aasIdentifier,externalSubjectId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please use getExternalSubjectIdOrEmpty(externalSubjectId)
Also updated CHANGELOG.md file.
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
Cursor implementation done for pagination search for GET requests in ShellAPI and LookUp API.
The spring jdbc has been changed to spring JPA.