Skip to content

Conversation

@paullatzelsperger
Copy link
Member

What this PR changes/adds

This PR adds the edc.component.id property with the following logic:

  • if edc.runtime.id is configured, a warning is issued
  • if edc.component.id is not configured, a warning is issued.
    • if edc.runtime.id is configured, its value is used for edc.component.id, and edc.runtime.id receives a random UUID
    • if edc.runtime.id is not configured, a random UUID is used for edc.component.id

This way, backwards compatibility can be provided for deployments that previously had configured a static edc.runtime.id.

In addition, Dataplane Self Registration was modified to use the edc.component.id property.

Why it does that

component IDs are used for idempotent processes, such as data plane registration. runtime IDs are used for lease acquisition.

Further notes

List other areas of code that have changed but are not necessarily linked to the main feature. This could be method
signature changes, package declarations, bugs that were encountered and were fixed inline, etc.

Linked Issue(s)

Closes #4399

Please be sure to take a look at the contributing guidelines and our etiquette for pull requests.

@paullatzelsperger paullatzelsperger added the enhancement New feature or request label Aug 8, 2024
@codecov-commenter
Copy link

codecov-commenter commented Aug 8, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.97%. Comparing base (7f20ba5) to head (ff594b4).
⚠️ Report is 872 commits behind head on main.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4402      +/-   ##
==========================================
+ Coverage   71.74%   74.97%   +3.23%     
==========================================
  Files         919     1072     +153     
  Lines       18457    21455    +2998     
  Branches     1037     1171     +134     
==========================================
+ Hits        13242    16086    +2844     
- Misses       4756     4848      +92     
- Partials      459      521      +62     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@paullatzelsperger paullatzelsperger merged commit f623a1e into eclipse-edc:main Aug 9, 2024
@paullatzelsperger paullatzelsperger deleted the feat/4399_add_component_id branch August 9, 2024 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add componentId property

3 participants