eclipse-tractusx / sig-release

https://eclipse-tractusx.github.io/sig-release
Apache License 2.0
8 stars 8 forks source link

Enhanced Value Handling in Output Stage #738

Open maximilianong opened 2 months ago

maximilianong commented 2 months ago

Description

Objective: Improve the handling of specific values in the output stage, ensuring data consistency and clarity for customers when certain values are not included in the response from the cleaning service.

Current Behavior (Version 24.03) Customer Provided Values:

Customer Expectations: Customers expect to receive these values in the response from the output stage.

Current System Behavior: If a value is empty before being returned to the customer, it is copied from the output stage.

Updated Behavior (Version 24.05) New System Behavior: When the values are empty and not included in the response from the output stage, the system will behave as follows:

First-Time Data Set:

If the data set is newly shared and not all values were included by the cleaning service, the values will be set to ‘none’.

Existing Data Set in the Pool:

If the data set already exists in the pool and not all values were included by the cleaning service, or were shared differently by the sharing member, the values will be taken from the pool.

Rationale: The pool is considered the single source of truth.

If the cleaning service cannot find any values and the data set does not yet exist in the pool, using the information originally provided by the sharing member for the gate would result in inconsistent data between the pool and the gate for that data set. If the cleaning service cannot find a legal form, and there is nothing in the pool either, the system should reflect the accurate state. If the sharing member wants to use the "old" legal form they originally shared, they must update their backend system.

By implementing these changes, we aim to ensure data consistency and accuracy, maintaining the integrity of the information shared between the pool and the gate, while providing clear insights to customers regarding the source and availability of each value.

Additional information

Contribution by @kunyao-cofinity-x Commiter to support this @nicoprow / @SujitMBRDI / @maximilianong

maximilianong commented 2 months ago

Will be taken to a deep dive session with this one: https://github.com/eclipse-tractusx/sig-release/issues/726

Sebastian-Wurm commented 2 months ago

Probably OK, but needs to be aligned with the CX-076. @zygokaktus: will you take this?

I am unsure, whether we also need to look at the other attributes as well. Also I am unsure if data records claimed as from my own company data must be regarded separately. Where is the source of truth then? If the GR process / cleaning service prefers to take over my data, the solution proposed here will probably also work.

stephanbcbauer commented 1 month ago

After a brief consultation with Sebastian, the feature is set to 'backlog' status. Associated committer is also fine with it.

stephanbcbauer commented 1 month ago

Put the label open decision, cause there is further discussion needed.