Skip to content
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: Changes done for AAS updates v3.0.1 #243

Merged
merged 11 commits into from
Dec 1, 2023

Conversation

agg3fe
Copy link
Contributor

@agg3fe agg3fe commented Nov 10, 2023

Description

  • Fix done for encoding input parameter to get shell look up api.
  • Fixed response for GetDescription api.

Integer limit, String cursor, @RequestHeader String externalSubjectId) {
if (assetIds == null || assetIds.isEmpty()) {
return new ResponseEntity<>(new GetAllAssetAdministrationShellIdsByAssetLink200Response(), HttpStatus.OK);
}

List<SpecificAssetId> listSpecificAssetId = Optional.of(assetIds).orElse(Collections.emptyList()).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

orElse will be invoked always irrespective of whether the value present in Optional. So it is recommended to use orElseGet.

@shijinrajbosch
Copy link
Contributor

LGTM

@agg3fe agg3fe requested a review from tunacicek December 1, 2023 11:49
Copy link

sonarqubecloud bot commented Dec 1, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 5 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Contributor

@tunacicek tunacicek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tunacicek tunacicek merged commit 75426da into eclipse-tractusx:main Dec 1, 2023
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants