Skip to content

Commit

Permalink
Merge pull request #164 from catenax-ng/release/v2.0.0-prepare-dpp-ve…
Browse files Browse the repository at this point in the history
…rsion.2.0.0

[10º] - Release/v2.0.0: Prepare a new release version dpp v2.0.0
  • Loading branch information
saudkhan116 authored Dec 22, 2023
2 parents 6887df7 + c9cfd38 commit 51d2f29
Show file tree
Hide file tree
Showing 166 changed files with 1,796 additions and 340 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/helm-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,14 @@ jobs:
# Build Java code with Maven
- name: Build dpp backend with maven
run: |
cd consumer-backend/productpass
cd dpp-backend/digitalproductpass
mvn -B clean install
- name: Build image for backend
id: build-backend
uses: docker/build-push-action@v3
with:
context: consumer-backend/productpass
context: dpp-backend/digitalproductpass
push: true
tags: ${{ env.REGISTRY }}/${{ env.BACKEND_IMAGE}}:${{ env.TAG }}

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish-dpp-backend-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ jobs:
- name: Build dpp backend with maven for GHCR registry
if: ${{ github.repository != 'eclipse-tractusx/digital-product-pass' }}
run: |
cd consumer-backend/productpass
cd dpp-backend/digitalproductpass
mvn -B clean install
# Build and push Docker image with Buildx
Expand All @@ -103,7 +103,7 @@ jobs:
if: ${{ github.repository != 'eclipse-tractusx/digital-product-pass' }}
uses: docker/build-push-action@v3
with:
context: consumer-backend/productpass
context: dpp-backend/digitalproductpass
push: true
tags: ${{ steps.meta-for-ghcr.outputs.tags }}, ${{ env.REGISTRY }}/${{ github.repository }}/${{ env.IMAGE_NAME }}:latest
labels: ${{ steps.meta-for-ghcr.outputs.labels }}
Expand Down Expand Up @@ -141,7 +141,7 @@ jobs:
- name: Build dpp backend with maven for Docker Hub
if: ${{ github.repository == 'eclipse-tractusx/digital-product-pass' }}
run: |
cd consumer-backend/productpass
cd dpp-backend/digitalproductpass
mvn -B clean install
# Build and push Docker image with Buildx
Expand All @@ -151,7 +151,7 @@ jobs:
if: ${{ github.repository == 'eclipse-tractusx/digital-product-pass' }}
uses: docker/build-push-action@v3
with:
context: consumer-backend/productpass
context: dpp-backend/digitalproductpass
push: true
tags: ${{ steps.meta-for-dockerhub.outputs.tags }}, ${{ env.IMAGE_NAMESPACE }}/${{ env.IMAGE_NAME }}:latest
labels: ${{ steps.meta-for-dockerhub.outputs.labels }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sonar-scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: |
cd consumer-backend/productpass
cd dpp-backend/digitalproductpass
mvn -B install org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
# cannot scan frontend component in one sonar cloud project where backend is also running, because frontend implemented in different technology
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,22 +150,22 @@ jobs:
# Build Java code with Maven
- name: Build JAR
run: |
cd consumer-backend/productpass
cd dpp-backend/digitalproductpass
mvn -B clean install
- name: Build backend image from Dockerfile - GHCR
id: build-docker-backend-ghcr
if: ${{ github.repository != 'eclipse-tractusx/digital-product-pass' }}
run: |
cd consumer-backend/productpass
cd dpp-backend/digitalproductpass
docker build -t ${{ env.REGISTRY }}/${{ github.repository }}/${{ env.BACKEND_IMAGE_NAME }}:latest .
# Build action for docker hub registry
- name: Build backend image from Dockerfile - Docker Hub
id: build-docker-backend-dockerhub
if: ${{ github.repository == 'eclipse-tractusx/digital-product-pass' }}
run: |
cd consumer-backend/productpass
cd dpp-backend/digitalproductpass
docker build -t ${{ env.IMAGE_NAMESPACE }}/${{ env.BACKEND_IMAGE_NAME }}:latest .
- name: Run Trivy vulnerability scanner - GHCR
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/veracode-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:

- name: build
run: |
cd consumer-backend/productpass
cd dpp-backend/digitalproductpass
mvn dependency:purge-local-repository clean verify
- run: zip -r veracode-scan-target.zip ./
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/veracode-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:

- name: build
run: |
cd consumer-backend/productpass
cd dpp-backend/digitalproductpass
mvn dependency:purge-local-repository clean verify
- run: zip -r veracode-scan-target.zip ./
Expand Down
46 changes: 46 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,52 @@

The changelog format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [released]
## [v2.0.0] - 22-12-2023

## Added

- Added components to display a Transmission Pass in frontend
- Added MOCK file with the transmission pass in frontend
- Added permission listener & reloader in frontend
- Added camera toggle component in frontend
- Added Decentral Digital Twin Registry configuration payloads
- Added IRS configuration guide
- New Data Retrieval Guide added with detailed information how to retrieve data in Catena-X like the DPP.
- Added new structure of files for the Arc42
- Added new Authentication & Authorization chapter in the Arc42
- Added detailed description next to the API diagrams at the Arc42
- Added IRS Integration documentation at the Arc42
- Added diagrams in xml form for further edition
- Added Check of BPN Number in Frontend (With Trigger in Configuration)
- Added Check of BPN Number in Backend (With Trigger in Configuration)
- Added Check for appId Roles in Frontend (With Trigger in Configuration)
- Added Check for appId Roles in Backend (With Trigger in Configuration)
- Added new security checks in the backend and frontend
- Added new non authorized view in the frontend
- Added script to retrieve any type of aspect data using the dpp backend component
- Added [README.md](./deployment/infrastructure/README.md) on how to execute the script with certain parameters

## Updated

- Refactor frontend code to be compliant with transmission pass 2.0.0.
- Refactor Responsiveness of frontend
- Updated URL check in frontend
- Corrected the payloads ids and the configurations
- Updated the Install.md file with a section to install the prerequisites and configure values.yaml files
- Updated the file structure from the Arc42
- Updated data retrieval api diagrams with better quality
- Updated context diagram with a new easy context
- Updated Arc42 Descriptions in the Technical Integration chapter
- Updated data uploading script by adding physical dimensions aspect
- Refactored helm chart values configuration.
- Refactored backend values chart configuration
- Update the IRS version to 4.2.0
- Adapted the springboot configuration structure
- Update the default policies
- [BREAKING CHANGES]: Updated the path from the backend from `/consumer-backend` to just `/dpp-backend` to declare the to standalone application


## [released]
## [v1.4.0] - 14-12-2023

Expand Down
6 changes: 3 additions & 3 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ kubectl get pods -n product-material-pass --no-headers | awk '{if ($1 ~ "consum
```
**Example**:

![img4.png](./consumer-backend/productpass/docs/media/img4.png)
![img4.png](./dpp-backend/digitalproductpass/docs/media/img4.png)


Copy the pod name with the prefix `consumer-backend`
Expand Down Expand Up @@ -88,7 +88,7 @@ Use the following commands to install/compile the application:

### Compile Backend
```bash
cd consumer-backend/productpass
cd dpp-backend/digitalproductpass
mvn clean install test
```

Expand All @@ -98,7 +98,7 @@ Substitute the `<version>` variable with the current version of the Digital Prod

```bash

./target/productpass-<version>-SNAPSHOT.jar
./target/digitalproductpass-<version>-SNAPSHOT.jar

```
### Configure the secrets
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ In particular, the appliction is used to access the battery passport data provid

### Software Version
#### Helm Chart Version
<pre id="helm-version"><a href="https://github.com/eclipse-tractusx/digital-product-pass/releases/tag/digital-product-pass-1.3.1">1.3.1</a></pre>
<pre id="helm-version"><a href="https://github.com/eclipse-tractusx/digital-product-pass/releases/tag/digital-product-pass-2.0.0">2.0.0</a></pre>
#### Application Version
<pre id="app-version"><a href="https://github.com/eclipse-tractusx/digital-product-pass/releases/tag/v1.3.1">v1.3.1</a></pre>
<pre id="app-version"><a href="https://github.com/eclipse-tractusx/digital-product-pass/releases/tag/v2.0.0">v2.0.0</a></pre>


## Application Preview
Expand All @@ -57,7 +57,7 @@ To get started you can have a look into our documentation:
| [Arc42](./docs/arc42/Arc42.md) | Main Architecture Document (Arc42) of Digital Product Pass Application |
| [Administration Guide](./docs/admin%20guide/Admin_Guide.md) | Administration Guide explaining the infrastructure and how to configure the application |
| [Data Retrieval Guide](./docs/data%20retrieval%20guide/DataRetrievalGuide.md) | Guide on how to retrieve data from the Catena-X Network as the Digital Product Pass |
| [Backend Documentation](./consumer-backend/productpass/readme.md) | Backend documentation Product Passport App |
| [Backend Documentation](./dpp-backend/digitalproductpass/readme.md) | Backend documentation Product Passport App |
| [Deployment in Hotel Budapest](./deployment/README.md) | Technical Guide - Deployment in ArgoCD Hotel Budapest (integration environment) |
| [Docker Overview](./docker/README.md) | Overview on general docker commands |
| [Keycloak Overview](./docker/local/Keycloak/README.md) | This guide describes how to setup a keycloak instance in local docker container and import existing realm.json file. |
Expand Down Expand Up @@ -99,7 +99,7 @@ Eclipse Tractus-X product(s) installed within the image:
- Project home: https://projects.eclipse.org/projects/automotive.tractusx
- Dockerfiles:
- Frontend: https://github.com/eclipse-tractusx/digital-product-pass/blob/main/Dockerfile
- Backend: https://github.com/eclipse-tractusx/digital-product-pass/blob/main/consumer-backend/productpass/Dockerfile
- Backend: https://github.com/eclipse-tractusx/digital-product-pass/blob/main/dpp-backend/digitalproductpass/Dockerfile
- Project License: [Apache License, Version 2.0](https://raw.githubusercontent.com/eclipse-tractusx/digital-product-pass/main/LICENSE)


Expand Down
4 changes: 2 additions & 2 deletions charts/digital-product-pass/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ type: application
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)

version: 1.5.0
version: 2.0.0

# 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: "1.5.0"
appVersion: "2.0.0"
2 changes: 1 addition & 1 deletion docs/GETTING-STARTED.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ Link to the Integration (INT) environment: [https://materialpass.int.demo.catena

- Reference docs:
- [INSTALL.md](../INSTALL.md)
- [Productpass backend](../consumer-backend/productpass/readme.md)
- [Productpass backend](../backend/digitalproductpass/readme.md)

Link to the Integration (INT) environment: [https://materialpass.int.demo.catena-x.net](https://materialpass.int.demo.catena-x.net/)

Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ You can find the backend documentation at the following location:

| Name | Description |
| ---------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Backend Documentation](./consumer-backend/productpass/readme.md) | Backend documentation Product Passport App
| [Backend Documentation](./dpp-backend/digitalproductpass/readme.md) | Backend documentation Product Passport App

## Infrastructure Documentation

Expand Down
Loading

0 comments on commit 51d2f29

Please sign in to comment.