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

feat: add dataAddress, code and reason fields to Transfer-Process-Transformer #2812

Conversation

janpmeyer
Copy link
Contributor

@janpmeyer janpmeyer commented Apr 26, 2023

What this PR changes/adds

Add transformation of DataAddress field to JsonObject[to|from]TransferStartMessageTransformer.

Add transformation of code, reason field to JsonObject[to|from]TransferTermiantionMessagerTransformer.

Why it does that

Support dataspace-protocol.

Further notes

TransferTerminationMessage.Builder needs to add an Nullkcheck for code field, after a error code list exist.
Created Issue #2810.

Linked Issue(s)

Closes #2806

Checklist

  • added appropriate tests?
  • performed checkstyle check locally?
  • added/updated copyright headers?
  • documented public classes/methods?
  • added/updated relevant documentation?
  • assigned appropriate label? (exclude from changelog with label no-changelog)
  • formatted title correctly? (take a look at the CONTRIBUTING and Etiquette for pull requests for details)

@janpmeyer janpmeyer added enhancement New feature or request dataspace-protocol related to the dataspace protocol labels Apr 26, 2023
@janpmeyer janpmeyer temporarily deployed to Azure-dev April 26, 2023 09:10 — with GitHub Actions Inactive
@codecov-commenter
Copy link

codecov-commenter commented Apr 26, 2023

Codecov Report

Patch coverage: 47.05% and project coverage change: +0.02 🎉

Comparison is base (70a44e4) 65.95% compared to head (32f09cd) 65.98%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2812      +/-   ##
==========================================
+ Coverage   65.95%   65.98%   +0.02%     
==========================================
  Files         982     1008      +26     
  Lines       19847    20384     +537     
  Branches     1169     1199      +30     
==========================================
+ Hits        13090    13450     +360     
- Misses       6288     6432     +144     
- Partials      469      502      +33     
Impacted Files Coverage Δ
...JsonObjectFromTransferStartMessageTransformer.java 80.00% <0.00%> (-20.00%) ⬇️
...spi/types/protocol/TransferTerminationMessage.java 0.00% <ø> (ø)
...ObjectToTransferTerminationMessageTransformer.java 66.66% <44.44%> (-33.34%) ⬇️
...jectFromTransferTerminationMessageTransformer.java 83.33% <50.00%> (-16.67%) ⬇️
...o/JsonObjectToTransferStartMessageTransformer.java 100.00% <100.00%> (ø)

... and 192 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@janpmeyer janpmeyer force-pushed the feat/2806-add_missing_fields_to_dsp-transfer-process-transformer branch from 25c4d85 to 6e29d95 Compare April 26, 2023 13:26
@janpmeyer janpmeyer temporarily deployed to Azure-dev April 26, 2023 13:27 — with GitHub Actions Inactive
@janpmeyer janpmeyer changed the title feat(dsp-transfer-process-transform): add dataAddress, code and reason fields to transformer feat: add dataAddress, code and reason fields to Transfer-Process-Transformer Apr 26, 2023
@janpmeyer janpmeyer temporarily deployed to Azure-dev April 26, 2023 13:58 — with GitHub Actions Inactive
@janpmeyer janpmeyer marked this pull request as ready for review April 26, 2023 14:28
Copy link
Contributor

@jimmarino jimmarino left a comment

Choose a reason for hiding this comment

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

A few small changes

@janpmeyer janpmeyer temporarily deployed to Azure-dev April 27, 2023 06:28 — with GitHub Actions Inactive
Copy link
Member

@ndr-brt ndr-brt left a comment

Choose a reason for hiding this comment

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

minor thing in a test, good to go otherwise

@janpmeyer janpmeyer temporarily deployed to Azure-dev May 3, 2023 08:14 — with GitHub Actions Inactive
@janpmeyer janpmeyer temporarily deployed to Azure-dev May 5, 2023 07:15 — with GitHub Actions Inactive
@janpmeyer janpmeyer requested a review from ndr-brt May 5, 2023 08:06
@janpmeyer janpmeyer temporarily deployed to Azure-dev May 8, 2023 06:17 — with GitHub Actions Inactive
@jimmarino jimmarino merged commit 7185d0c into eclipse-edc:main May 8, 2023
@juliapampus juliapampus deleted the feat/2806-add_missing_fields_to_dsp-transfer-process-transformer branch May 8, 2023 15:03
majadlymhmd pushed a commit to FraunhoferISST/edc-connector that referenced this pull request May 10, 2023
…nsformer (eclipse-edc#2812)

* chore(dsp-transfer-process-transform): add code and reason field to transformer

* chore(dsp-transfer-process-transform): add data Address to TransferTermination[to|from]Transformer

* chore(dsp-transfer-process-transform): fix unit Test Bug

* chore(dsp-transfer-process-transform): remove duplicated JsonObjectToDataAddressTransformer.java

* chore(dsp-transfer-process-transform): refactor if clauses

* chore(dsp-transfer-process-transform): refactor tests

* chore(dsp-transfer-process-transform): refactor tests
majadlymhmd pushed a commit to FraunhoferISST/edc-connector that referenced this pull request May 10, 2023
…nsformer (eclipse-edc#2812)

* chore(dsp-transfer-process-transform): add code and reason field to transformer

* chore(dsp-transfer-process-transform): add data Address to TransferTermination[to|from]Transformer

* chore(dsp-transfer-process-transform): fix unit Test Bug

* chore(dsp-transfer-process-transform): remove duplicated JsonObjectToDataAddressTransformer.java

* chore(dsp-transfer-process-transform): refactor if clauses

* chore(dsp-transfer-process-transform): refactor tests

* chore(dsp-transfer-process-transform): refactor tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dataspace-protocol related to the dataspace protocol enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dataspace protocol: Add missing fields to DSP-Transfer-Process-Transformer
4 participants