Skip to content

Commit

Permalink
Merge pull request #674 from eclipse-tractusx/hotfix/5.1.4
Browse files Browse the repository at this point in the history
Hotfix/5.1.4
  • Loading branch information
ds-jhartmann authored May 27, 2024
2 parents 308fb42 + dbc5d5e commit 2bdb8ff
Show file tree
Hide file tree
Showing 11 changed files with 35 additions and 8 deletions.
13 changes: 11 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,20 @@ _**For better traceability add the corresponding GitHub issue number in each cha
EdcContractAgreementsResponse eclipse-tractusx/traceability-foss#963
- Added missing @context values in edc asset creation eclipse-tractusx/traceability-foss#978
- Switch to `dct:type` `https://w3id.org/catenax/taxonomy#` for notification asset creation eclipse-tractusx/traceability-foss#978
- Shells in Job response will contain all submodel descriptors returned by provider, instead filtered by aspect-type parameter. #510

## Added

- Added endpoint for dedicated removal of policy from BPNL. #559
- Integration Test Policy Store API Unhappy Path. #519

## [5.1.4] - 2024-05-27

### Fixed

- Fixed submodel request path by introducing configuration property `irs-edc-client.submodel.submodel-suffix` which will
be appended to the href URL.

## [5.1.3] - 2024-05-17

### Fixed
Expand All @@ -46,7 +54,7 @@ _**For better traceability add the corresponding GitHub issue number in each cha

- Updated default accepted policy to latest traceability framework agreement #596
- BPN summary was removed from Job response #568
- Shells in Job response will contain all submodel descriptors returned by provider, instead filtered by aspect-type parameter. #510


## [5.1.1] - 2024-05-08

Expand Down Expand Up @@ -682,7 +690,8 @@ _**For better traceability add the corresponding GitHub issue number in each cha
- **Select Aspects you need** You are able to select the needed aspects for which you want to collect the correct endpoint information.


[Unreleased]: https://github.com/eclipse-tractusx/item-relationship-service/compare/5.1.3...HEAD
[Unreleased]: https://github.com/eclipse-tractusx/item-relationship-service/compare/5.1.4...HEAD
[5.1.4]: https://github.com/eclipse-tractusx/item-relationship-service/compare/5.1.3...5.1.4
[5.1.3]: https://github.com/eclipse-tractusx/item-relationship-service/compare/5.1.2...5.1.3
[5.1.2]: https://github.com/eclipse-tractusx/item-relationship-service/compare/5.1.1...5.1.2
[5.1.1]: https://github.com/eclipse-tractusx/item-relationship-service/compare/5.1.0...5.1.1
Expand Down
9 changes: 9 additions & 0 deletions charts/item-relationship-service/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]


## [7.1.4] - 2024-05-27

### Added
- Added configuration property `edc.submodel.suffix`.

### Changed

- Update IRS version to 5.1.4

## [7.1.3] - 2024-05-17

### Changed
Expand Down
4 changes: 2 additions & 2 deletions charts/item-relationship-service/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 7.1.3
version: 7.1.4
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "5.1.3"
appVersion: "5.1.4"
dependencies:
- name: common
repository: https://charts.bitnami.com/bitnami
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ data:
submodel:
request-ttl: {{ tpl .Values.edc.submodel.request.ttl . | default "PT10M" | quote }}
urn-prefix: {{ tpl (.Values.edc.submodel.urnprefix | default "/urn") . | quote }}
submodel-suffix: {{ tpl (.Values.edc.submodel.suffix | default "/$value") . | quote }}
catalog:
acceptedPolicies:
Expand Down
1 change: 1 addition & 0 deletions charts/item-relationship-service/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ edc:
request:
ttl: PT10M # Requests to dataplane will time out after this duration (see https://en.wikipedia.org/wiki/ISO_8601#Durations)
urnprefix: /urn
suffix: /$value
catalog:
# IRS will only negotiate contracts for offers with a policy as defined in the allowedNames list.
# If a requested asset does not provide one of these policies, a tombstone will be created and this node will not be processed.
Expand Down
2 changes: 1 addition & 1 deletion docs/src/api/irs-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ info:
description: The API of the Item Relationship Service (IRS) for retrieving item
graphs along the value chain of CATENA-X partners.
title: IRS API
version: 5.1.3
version: 5.1.4
servers:
- url: http://localhost:8080
security:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public class IrsApplication {
/**
* The IRS API version.
*/
public static final String API_VERSION = "5.1.3";
public static final String API_VERSION = "5.1.4";

/**
* The URL prefix for IRS API URLs.
Expand Down
1 change: 1 addition & 0 deletions irs-api/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ irs-edc-client:
submodel:
request-ttl: ${EDC_SUBMODEL_REQUEST_TTL:PT10M} # How long to wait for an async EDC submodel retrieval to finish, ISO 8601 Duration
urn-prefix: ${EDC_SUBMODEL_URN_PREFIX:/urn} # A prefix used to identify URNs correctly in the submodel endpoint address
submodel-suffix: "/$value"
timeout:
read: PT90S # HTTP read timeout for the submodel client
connect: PT90S # HTTP connect timeout for the submodel client
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@
import org.eclipse.tractusx.irs.testing.wiremock.SubmodelFacadeWiremockSupport;

public class WiremockSupport {

public static final String SUBMODEL_SUFFIX = "/\\$value";

public static EndpointDataReference createEndpointDataReference(final String contractAgreementId) {
final EDRAuthCode edrAuthCode = EDRAuthCode.builder()
.cid(contractAgreementId)
Expand Down Expand Up @@ -126,7 +129,7 @@ static void verifyNegotiationCalls(final int times) {
}

static void successfulDataRequests(final String assetId, final String fileName) {
stubFor(get(urlPathMatching(DtrWiremockSupport.DATAPLANE_PUBLIC_PATH + "/" + assetId)).willReturn(
stubFor(get(urlPathMatching(DtrWiremockSupport.DATAPLANE_PUBLIC_PATH + "/" + assetId+ SUBMODEL_SUFFIX)).willReturn(
responseWithStatus(200).withBodyFile(fileName)));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ public static class SubmodelConfig {
private Duration requestTtl;

private String urnPrefix;
private String submodelSuffix;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ public class EdcSubmodelFacade {
public SubmodelDescriptor getSubmodelPayload(final String connectorEndpoint, final String submodelDataplaneUrl,
final String assetId, final String bpn) throws EdcClientException {
try {
return client.getSubmodelPayload(connectorEndpoint, submodelDataplaneUrl, assetId, bpn)
final String fullSubmodelDataplaneUrl = submodelDataplaneUrl + config.getSubmodel().getSubmodelSuffix();
log.debug("Requesting Submodel for URL: '{}'", fullSubmodelDataplaneUrl);
return client.getSubmodelPayload(connectorEndpoint, fullSubmodelDataplaneUrl, assetId, bpn)
.get(config.getAsyncTimeoutMillis(), TimeUnit.MILLISECONDS);
} catch (InterruptedException e) {
log.debug("InterruptedException occurred.", e);
Expand Down

0 comments on commit 2bdb8ff

Please sign in to comment.