Skip to content

Commit f12be7c

Browse files
authored
Merge pull request #491 from catenax-ng/main
Merge from CatenaX
2 parents 3199806 + 42b0abd commit f12be7c

File tree

41 files changed

+627
-118
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+627
-118
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: "Publish OpenAPI to Swaggerhub"
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
version:
7+
required: true
8+
description: Version that will be published to Swaggerhub
9+
type: string
10+
11+
jobs:
12+
swagger-api:
13+
runs-on: ubuntu-latest
14+
env:
15+
SWAGGERHUB_API_KEY: ${{ secrets.SWAGGERHUB_API_KEY }}
16+
SWAGGERHUB_USER: ${{ secrets.SWAGGERHUB_USER }}
17+
DOWNSTREAM_VERSION: ${{ inputs.version }}
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- name: Set up JDK 17
22+
uses: actions/setup-java@v4
23+
with:
24+
java-version: '17'
25+
distribution: 'temurin'
26+
27+
- name: Setup node
28+
uses: actions/setup-node@v4
29+
30+
- name: Install Swagger CLI
31+
run: |
32+
npm i -g swaggerhub-cli
33+
34+
# create API, will fail if exists
35+
- name: Create API
36+
continue-on-error: true
37+
run: |
38+
swaggerhub api:create ${{ env.SWAGGERHUB_USER }}/item-relationship-service/${{ env.DOWNSTREAM_VERSION }} -f docs/src/api/irs-api.yaml --visibility=public --published=unpublish
39+
40+
# Post the API to SwaggerHub as "unpublished", because published APIs cannot be overwritten
41+
- name: Publish API Specs to SwaggerHub
42+
run: |
43+
if [[ ${{ env.DOWNSTREAM_VERSION }} != *-SNAPSHOT ]]; then
44+
echo "[INFO] - no snapshot, will set the API to 'published'";
45+
swaggerhub api:update ${{ env.SWAGGERHUB_USER }}/item-relationship-service/${{ env.DOWNSTREAM_VERSION }} -f docs/src/api/irs-api.yaml --visibility=public --published=publish
46+
swaggerhub api:setdefault ${{ env.SWAGGERHUB_USER }}/item-relationship-service/${{ env.DOWNSTREAM_VERSION }}
47+
else
48+
echo "[INFO] - snapshot, will set the API to 'unpublished'";
49+
swaggerhub api:update ${{ env.SWAGGERHUB_USER }}/item-relationship-service/${{ env.DOWNSTREAM_VERSION }} -f docs/src/api/irs-api.yaml --visibility=public --published=unpublish
50+
fi

.github/workflows/release.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,17 @@ jobs:
5959
needs:
6060
- release
6161
uses: ./.github/workflows/jira-publish-release.yaml
62+
with:
63+
version: ${{ github.ref_name }}
64+
secrets: inherit
65+
66+
publish-to-swaggerhub:
67+
name: "Publish OpenAPI spec to Swaggerhub"
68+
permissions:
69+
contents: read
70+
needs:
71+
- release
72+
uses: ./.github/workflows/publish-swagger-hub.yml
6273
with:
6374
version: ${{ github.ref_name }}
6475
secrets: inherit

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,8 @@ docs/src/diagram-replacer/package-lock.json
7070
docs/src/diagram-replacer/package.json
7171
docs/src/diagram-replacer/plantuml.jar
7272

73+
# Helm Chart Dependencies
74+
/charts/irs-helm/Chart.lock
75+
/charts/irs-helm/charts/
76+
77+

CHANGELOG.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77
_**For better traceability add the corresponding GitHub issue number in each changelog entry, please.**_
88

99
## [Unreleased]
10-
### Changed
1110

12-
- EdcPolicyDefinitionService, EdcContractDefinitionService and EdcAssetService return throw AlreadyExist exceptions when Conflict is returned from EDC
11+
## [4.8.0] - 2024-03-18
12+
### Changed
13+
- Improved maintainability in EdcSubmodelClientImpl by reduced method visibility and better naming (in context of #448).
14+
- EdcPolicyDefinitionService, EdcContractDefinitionService and EdcAssetService return throw AlreadyExist exceptions when Conflict is returned from
15+
EDC
1316
- Added AssetAdministrationShellDescriptor specificAssetIds support for externalSubjectId required for data provisioning
1417
- Registering a job - aspects array is now accepting full urn of aspect model instead of name only, eg. 'urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt' instead 'SingleLevelBomAsBuilt'. #439
1518
- Changed the version of irs-registry-client from 1.6.0-SNAPSHOT to 1.6.0
1619

20+
## Fixed
21+
- Fixed missing timeouts including configuration. #448
22+
1723
## [4.7.0] - 2024-03-04
1824
### Added
1925
- DigitalTwinRegistryCreateShellService in irs-registry-client for creating shells in DTR directly
@@ -574,7 +580,8 @@ _**For better traceability add the corresponding GitHub issue number in each cha
574580
### Unresolved
575581
- **Select Aspects you need** You are able to select the needed aspects for which you want to collect the correct endpoint information.
576582

577-
[Unreleased]: https://github.com/eclipse-tractusx/item-relationship-service/compare/4.7.0...HEAD
583+
[Unreleased]: https://github.com/eclipse-tractusx/item-relationship-service/compare/4.8.0...HEAD
584+
[4.8.0]: https://github.com/eclipse-tractusx/item-relationship-service/compare/4.7.0...4.8.0
578585
[4.7.0]: https://github.com/eclipse-tractusx/item-relationship-service/compare/4.6.0...4.7.0
579586
[4.6.0]: https://github.com/eclipse-tractusx/item-relationship-service/compare/4.5.2...4.6.0
580587
[4.5.2]: https://github.com/eclipse-tractusx/item-relationship-service/compare/4.5.1...4.5.2

COMPATIBILITY_MATRIX.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
# Compatibility matrix IRS
22

33
Full changelog of IRS: [changelog](CHANGELOG.md)
4+
## [4.8.0] - 2024-03-18
5+
| Dependency | Version | Helm | Comments |
6+
|---------------------------|------------------------------|------------|-----------------|
7+
| EDC | 0.5.3 | 0.5.3 | |
8+
| EDC PostgresSQL | 15.1.0-debian-11-r12 | 12.1.6 | Optional |
9+
| MIW | 0.1.0 | 0.1.0 | REST connection |
10+
| Semantics Hub | 0.1.29 | v0.2.11-M1 | REST connection |
11+
| DTR | 0.3.14-M1 | 0.3.22 | REST connection |
12+
| Minio | RELEASE.2022-11-11T03-44-20Z | 5.0.1 | |
13+
| SingleLevelBomAsBuilt | 2.0.0 | - | Model version |
14+
| SingleLevelBomAsPlanned | 2.0.0 | - | Model version |
15+
| SingleLevelBomAsSpecified | 1.0.0 | - | Model version |
16+
| SingleLevelUsageAsBuilt | 2.0.0 | - | Model version |
417

518

619
## [4.7.0] - 2024-03-04

CONTRIBUTING.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -176,13 +176,14 @@ https://github.com/google/google-java-format/blob/master/README.md#intellij-jre-
176176
- Check if the changelog entries for the release are complete.
177177
- Add the corresponding GitHub issue numbers to each entry if missing.
178178
3. Update [COMPATIBILITY_MATRIX.md](COMPATIBILITY_MATRIX.md).
179-
4. Create pull request from [release preparation branch to main](https://github.com/eclipse-tractusx/item-relationship-service/compare/chore/prepare-release-x.x.x) and merge to main.
180-
5. Create Git tag for the desired release version `git tag x.x.x`
179+
4. Update IRS API version in IrsApplication class and irs-api.yaml
180+
5. Create pull request from [release preparation branch to main](https://github.com/eclipse-tractusx/item-relationship-service/compare/chore/prepare-release-x.x.x) and merge to main.
181+
6. Create Git tag for the desired release version `git tag x.x.x`
181182
(note: the irs-helm tag will be created automatically by the GitHub workflow based on the version in the irs-helm changelog).
182-
6. Push Git tag to repository `git push origin x.x.x` (this will trigger the GitHub release workflow).
183-
7. Wait for release workflow to complete.
184-
8. Merge the automatically opened PR by GitHub actions bot.
185-
9. Notify about the release in IRS Matrix Chat using the following template:
183+
7. Push Git tag to repository `git push origin x.x.x` (this will trigger the GitHub release workflow).
184+
8. Wait for release workflow to complete.
185+
9. Merge the automatically opened PR by GitHub actions bot.
186+
10. Notify about the release in IRS Matrix Chat using the following template:
186187

187188
> **IRS Release x.x.x**
188189
>

README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,17 +91,22 @@ See [INSTALL](INSTALL.md).
9191
The following subsection provides instructions for running the infrastructure on docker-compose and the application in
9292
the IDE.
9393

94-
After the application is up and running the local IRS API is available at the following URLs:
94+
Start the application with the commands in the subsection further below.
95+
After everything is up and running the local IRS API is available at the following URLs:
9596

9697
- Swagger UI: http://localhost:8080/api/swagger-ui
9798
- API docs: http://localhost:8080/api/api-docs
9899
- API docs in yaml: http://localhost:8080/api/api-docs.yaml
99100

100-
101101
#### Docker-compose + IDE
102102

103-
1. Start the necessary infrastructure by running `docker-compose up`
104-
2. Start the application from your favorite IDE. For IntelliJ, a run configuration is available in the `.run` folder.
103+
1. `cd local/deployment`
104+
2. Start the necessary infrastructure by running `docker-compose up`
105+
3. Start the application from your favorite IDE. For IntelliJ, a run configuration is available in the `.run` folder.
106+
107+
In case of problems connecting to MinIO check whether the MinIO console is accessible in your webbrowser
108+
(see URL in the output of step 2). You might need to wait some time before MinIO is up and accepts connections.
109+
If that does not help, execute `docker-compose down` and repeat from step 2.
105110

106111

107112
## Usage

charts/irs-helm/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [6.17.0] - 2024-03-18
10+
### Added
11+
- Added property `edc.controlplane.asyncTimeout` which allows to set a global time-to-live for all async requests over EDC
12+
13+
### Changed
14+
- Update IRS version to 4.8.0
15+
916
## [6.16.0] - 2024-03-04
1017
### Added
1118
- Added configuration property `edc.controlplane.endpoint.contractAgreements`

charts/irs-helm/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ type: application
3535
# This is the chart version. This version number should be incremented each time you make changes
3636
# to the chart and its templates, including the app version.
3737
# Versions are expected to follow Semantic Versioning (https://semver.org/)
38-
version: 6.16.0
38+
version: 6.17.0
3939
# This is the version number of the application being deployed. This version number should be
4040
# incremented each time you make changes to the application. Versions are not expected to
4141
# follow Semantic Versioning. They should reflect the version the application is using.
4242
# It is recommended to use it with quotes.
43-
appVersion: "4.7.0"
43+
appVersion: "4.8.0"
4444
dependencies:
4545
- name: common
4646
repository: https://charts.bitnami.com/bitnami

charts/irs-helm/templates/configmap-spring-app-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ data:
100100
101101
irs-edc-client:
102102
callback-url: {{ tpl (.Values.edc.callbackurl | default (printf "http://%s%s" .Release.Name "-irs-helm:8181/internal/endpoint-data-reference")) . | quote }}
103+
asyncTimeout: {{ tpl .Values.edc.asyncTimeout . | default "PT10M" | quote }}
103104
controlplane:
104105
request-ttl: {{ .Values.edc.controlplane.request.ttl | default "PT10M" | quote }}
105106
endpoint:

0 commit comments

Comments
 (0)