-
Notifications
You must be signed in to change notification settings - Fork 16
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/upgrade to 0.1.3 #392
Conversation
f55b3e4
to
ed6e17e
Compare
|
||
MY_EDC_JDBC_URL: jdbc:postgresql://postgresql:5432/edc | ||
MY_EDC_JDBC_USER: edc | ||
MY_EDC_JDBC_PASSWORD: edc | ||
EDC_WEB_REST_CORS_ENABLED: 'true' | ||
EDC_WEB_REST_CORS_HEADERS: 'origin,content-type,accept,authorization,x-api-key' | ||
EDC_WEB_REST_CORS_ORIGINS: '*' | ||
|
||
EDC_PARTICIPANT_ID: provider | ||
EDC_JSONLD_HTTPS_ENABLED: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should go to .env
|
||
MY_EDC_JDBC_URL: jdbc:postgresql://postgresql:5432/edc | ||
MY_EDC_JDBC_USER: edc | ||
MY_EDC_JDBC_PASSWORD: edc | ||
EDC_WEB_REST_CORS_ENABLED: 'true' | ||
EDC_WEB_REST_CORS_HEADERS: 'origin,content-type,accept,authorization,x-api-key' | ||
EDC_WEB_REST_CORS_ORIGINS: '*' | ||
|
||
EDC_PARTICIPANT_ID: provider |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be moved to .env and sourced from MY_EDC_ID_KEBAP_CASE or whatever it's called
|
||
EDC_PARTICIPANT_ID: provider | ||
EDC_JSONLD_HTTPS_ENABLED: true | ||
EDC_DSP_CALLBACK_ADDRESS: http://edc:11003/api/v1/protocol |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be generated in .env from MY_EDC_PROTOCOL_BASE_URL
dockerfile: connector/Dockerfile | ||
args: | ||
JVM_ARGS: -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005 | ||
BUILD_ARGS: -Pfs-vault -Pdmgmt-api-key -Ppostgres-flyway -Poauth |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove from PR
dockerfile: connector/Dockerfile | ||
args: | ||
JVM_ARGS: -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005 | ||
BUILD_ARGS: -Pfs-vault -Pdmgmt-api-key -Ppostgres-flyway -Poauth |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
.participantId(participantId) | ||
.apiConfigMap(apiConfigMap) | ||
.datasourceConfigs(datasourceConfigs) | ||
.simpleConfig(new SimpleConfig("edc.participant.id", participantId)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
withConfig(String, String)?
withConfig(Map<String, String>)
* @return {@link DataSource} | ||
*/ | ||
public static DataSource fromJdbcCredentials(JdbcCredentials jdbcCredentials) { | ||
return new ConnectionFactoryDataSource(() -> newConnection(jdbcCredentials)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lesson learned from the broker server extension. this data source has no connection pooling. it's ok for flyway, but not for productive use with JooQ
|
||
INSERT INTO public.edc_data_request (datarequest_id, process_id, connector_address, protocol, connector_id, asset_id, contract_id, data_destination, managed_resources, properties, transfer_type, transfer_process_id) VALUES ('e213fc10-f61a-4aa0-80f8-7c581651f543', '3499e4f0-1f8c-4ae6-8ca3-82812586b80f', 'http://edc:11003/api/v1/ids/data', 'ids-multipart', 'consumer', 'urn:artifact:test:1.0', 'test-contract-definition:2160b70f-d65e-4861-af88-f29b16f3fa7b', '{"properties":{"baseUrl":"https://webhook.site/e542f69e-ff0a-4771-af18-0900a399137a","method":"POST","type":"HttpData"}}', false, '{}', '{"contentType":"application/octet-stream","isFinite":true}', '3499e4f0-1f8c-4ae6-8ca3-82812586b80f'); | ||
INSERT INTO public.edc_data_request (datarequest_id, process_id, connector_address, protocol, connector_id, asset_id, contract_id, data_destination, managed_resources, properties, transfer_type, transfer_process_id) VALUES ('34b587d1-9a1a-4bc2-a499-24a0e6975b97', '3c7606fd-e3e3-453a-bc38-e2fd6293acc8', 'http://edc:11003/api/v1/ids/data', 'ids-multipart', 'consumer', 'urn:artifact:test:1.0', 'test-contract-definition:2160b70f-d65e-4861-af88-f29b16f3fa7b', '{"properties":{"baseUrl":"https://webhook.site/e542f69e-ff0a-4771-af18-0900a399137a","method":"POST","type":"HttpData"}}', false, '{}', '{"contentType":"application/octet-stream","isFinite":true}', '3c7606fd-e3e3-453a-bc38-e2fd6293acc8'); | ||
INSERT INTO public.edc_data_request (datarequest_id, process_id, connector_address, protocol, connector_id, asset_id, contract_id, data_destination, managed_resources, properties, transfer_type, transfer_process_id) VALUES ('5e4cb5c8-fc8e-4231-ba86-bc5dbf7b5015', '683098a6-0ed0-4b1a-bf19-f1b0dc67f682', 'http://edc:11003/api/v1/ids/data', 'ids-multipart', 'consumer', 'urn:artifact:test:1.0', 'test-contract-definition:2160b70f-d65e-4861-af88-f29b16f3fa7b', '{"properties":{"baseUrl":"https://webhook.site/e542f69e-ff0a-4771-af18-0900a399137a","method":"POST","type":"HttpData"}}', false, '{}', '{"contentType":"application/octet-stream","isFinite":true}', '683098a6-0ed0-4b1a-bf19-f1b0dc67f682'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
data should contain both a providing and a consuming data offer (both with transfers)
ALTER TABLE edc_asset_dataaddress ADD CONSTRAINT edc_asset_dataaddress_asset_id_fk_fkey FOREIGN KEY (asset_id_fk) REFERENCES edc_asset (asset_id) ON DELETE CASCADE; | ||
ALTER TABLE edc_asset_property ADD CONSTRAINT edc_asset_property_asset_id_fk_fkey FOREIGN KEY (asset_id_fk) REFERENCES edc_asset (asset_id) ON DELETE CASCADE; | ||
|
||
UPDATE edc_asset_property SET property_name = 'https://w3id.org/edc/v0.0.1/ns/id', property_value=asset_id_fk WHERE property_name = 'asset:prop:id'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
starting 0.1.x all asset properties need to be URLs:
- MDS properties are already URLs.
- All asset:prop: fields need to be migrated.
- Fields like "description", "keyword", "langauge" might have EDC equivalents
- Custom fields might not, then we need to prepend a custom namespace.
@@ -2,7 +2,7 @@ sovityEdcExtensionsVersion=0.0.1-SNAPSHOT | |||
sovityEdcExtensionGroup=de.sovity.edc.ext | |||
sovityEdcGroup=de.sovity.edc | |||
edcGroup=org.eclipse.edc | |||
edcVersion=0.0.1-20230220.patch1 | |||
edcVersion=0.1.3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
da geht noch mehr
Housekeeping - this PR can be closed right? |
Pull Request
Briefly describe WHAT your PR changes, which features it adds/modifies.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Test Configuration:
Linked Issue(s)
Use keywords to automate: https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword
PR is blocked by
Checklist