sovity / edc-ce

sovity Community Edition EDC
https://sovity.de/en/connect-to-data-space-en/
Apache License 2.0
54 stars 17 forks source link

`PATCH`able asset #1023

Open ununhexium opened 3 months ago

ununhexium commented 3 months ago

Feature Request

Update the Assets via a PATCH and let the backend manage new fields. This approach avoids forgetting a UI update when the backend changes the asset's UiAsset fields.

Description

Which Areas Would Be Affected?

EDC CE, wrapper API

Why Is the Feature Desired?

Avoids mistakes / inconsistencies, see https://github.com/sovity/edc-ce/issues/1013

How does this tie into our current product?

Only avoids bugs and investigations.

Stakeholders

@ununhexium

Solution Proposal and Work Breakdown

- [ ] Add a resource endpoint `patchAsset` at `pages/asset-page/assets/{assetId}`
- [ ] Update the UI to `PATCH` instead of `PUT` the updated asset
ununhexium commented 3 months ago

Discussed with @richardtreier Postponed as the problem doesn't happen right now and we have other more important topics.