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

Chore: Migrate to EDC 0.7.0 #359

Merged
merged 26 commits into from
May 21, 2024

Conversation

tom-rm-meyer-ISST
Copy link
Contributor

@tom-rm-meyer-ISST tom-rm-meyer-ISST commented May 7, 2024

Description

Adoption of EDC to version to 0.7.0 (please only focus on backend and frontend folder during review):

  • EdcAdapterService now uses the /v2/edrs api to obtain an EDR token
    • token is stored via EndpointDataReferenceService
    • token found via EndpointDataReferenceService renewal is only triggered, if token is not yet or does not expire in 5 seconds
    • transfer is terminated (new feature) after failure / being successful
  • Update of EdcRequestBodyBuilder
    • to include new requests
    • to use better formulated context handling based on Json-Ld (still not perfect, but better)
  • added debug logs for payloads (log level default not changed)
  • refactored policy building
  • added java docs
  • adoption of EDC frontend interface and frontend classes
  • adoption of framework policy to new structure
  • fixed that the dspUrl of submodel was not used for negotiation

This branch builds on chore/edc-0.7.0 (PR#351), a git diff --stat -w on that branch results in a delta of 951 lines.

ATTENTION: PLEASE DO NOT FORK FROM THIS BRANCH. THIS BRANCH WILL BE MERGED SOMEHOW PRIOR TO INT TEST.

Pre-review checks

Please ensure to do as many of the following checks as possible, before asking for committer review:

Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

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

KICS found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.

@tom-rm-meyer-ISST
Copy link
Contributor Author

@eschrewe : please focus on the backend part
@ReneSchroederLJ : please focus on the frontend part

Feel invited to check also the each other's part. Please ignore the overall changes regarding infrastructure. I'll need to cherry pick and rewrite the branch as the infrastructure has some open IP checks and we need the working EDC separately.
@ReneSchroederLJ: please don't wait for the EDC 0.7.0 changes, I'll later merge things.

This was linked to issues May 10, 2024
Copy link
Contributor

@eschrewe eschrewe left a comment

Choose a reason for hiding this comment

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

Wow, really a major update. Thanks for your great contribution. :)
Please see my remarks for some (mostly minor) details.

# Conflicts:
#	backend/src/main/java/org/eclipse/tractusx/puris/backend/common/edc/logic/service/EdcAdapterService.java
#	local/docker-compose.yaml
@tom-rm-meyer-ISST tom-rm-meyer-ISST marked this pull request as ready for review May 15, 2024 14:02
Copy link
Contributor

@eschrewe eschrewe left a comment

Choose a reason for hiding this comment

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

Well done, thank you. Just some very minor remarks left :)

local/.gitignore Outdated Show resolved Hide resolved
local/INSTALL.md Outdated Show resolved Hide resolved
local/generate-keys.sh Outdated Show resolved Hide resolved
Copy link
Contributor

@eschrewe eschrewe left a comment

Choose a reason for hiding this comment

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

Thank you very much :)

@mhellmeier mhellmeier merged commit 36c28aa into eclipse-tractusx:main May 21, 2024
13 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.

Add Purpose Policy Migrate Tractus EDC to 0.6.x
3 participants