-
Notifications
You must be signed in to change notification settings - Fork 240
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
SQL: Deletion of Assets impossible after first Contract Negotation #1403
Comments
I'm not sure the SELECT *
FROM edc_contract_negotiation
WHERE edc_contract_negotiation.contract_agreement_id in (SELECT agreement_id
FROM edc_contract_agreement
WHERE asset_id = 'asset1'); if we want that new method to return the SELECT *
FROM edc_contract_negotiation
INNER JOIN edc_contract_agreement eca on edc_contract_negotiation.contract_agreement_id = eca.agreement_id
WHERE edc_contract_negotiation.contract_agreement_id in (SELECT agreement_id
FROM edc_contract_agreement
WHERE asset_id = 'asset1') Of course, equivalent implementations for the other stores would also have to be done too. |
@paullatzelsperger I'm late at the party, but I think as easy-fix having a dedicated method would work, however in the long run would be better to have the postgresql implementations being able to handle the |
I agree, having an implemention that can interpret On the other hand I am a big fan of having explicit methods for a particular use case, but they should rather be on the service than on the store. I'll open a discussion about this. |
Bug Report
Describe the Bug
Affects all connectors that are using the PostgreSQL Asset Extension.
After the connector has done one or more contract negotiations, it is impossible to delete assets.
Expected Behavior
Observed Behavior
Steps to Reproduce
Steps to reproduce the behavior:
Context Information
Before deleting the Asset the AssetService will check, whether a negotation/agreement exists for this asset.
Because of an unfinished SQL Query the store will always return a negotiation if there exists at least one.
Detailed Description
Possible Implementation
Dominik Pinsel [email protected], Mercedes-Benz Tech Innovation GmbH, legal info/Impressum
The text was updated successfully, but these errors were encountered: