eclipse-tractusx / sig-release

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

'currentness' attribute and function #726

Open maximilianong opened 1 week ago

maximilianong commented 1 week ago

Description

The gate needs a functionality that handles:

What is the timestamp of the data provided on customer side (system of the customer) - customer needs to provide this data.

Gate should only update the data when it has newer data according to the attribute (lastchangedoncustomerside) - job of the GR process.

Feature: Data Update with Timestamp Validation

Description: The BPDM gate requires a functionality to handle data updates from the customer side based on timestamps. This feature ensures that the data is only updated if the new data from the customer has a more recent timestamp than the existing data.

Functional Requirements:

  1. Timestamp Reception:

    • The system must be able to receive a timestamp (currentness) from the customer side along with the data payload.
    • This timestamp indicates when the data was last modified on the customer's system.
  2. Timestamp Validation:

    • The gate should compare the received timestamp with the existing timestamp stored in the gate
    • If the received timestamp is more recent than the stored timestamp, the data should be updated.
    • If the received timestamp is not more recent, the data update should be rejected, and no changes should be made to the existing data.

Technical Implementation:

Example Workflow:

  1. Customer sends data to the gate system with a timestamp attribute (currentness).
  2. The gate system receives the data and invokes the GR process.
  3. The GR process compares the received timestamp with the stored timestamp.
  4. If the received timestamp is newer, the data is updated, and a success message is logged and sent to the customer.
  5. If the received timestamp is not newer, the update is rejected, and an informative message is logged and sent to the customer.

By implementing this feature, the gate system ensures data integrity and consistency, only allowing updates when newer data is provided by the customer.

Additional information

maximilianong commented 6 days ago

Need a deep dive session. Peer group: @Sebastian-Wurm / @zygokaktus / @HeyHardy

Standard adaption might need to be done: 0076 / 0074

maximilianong commented 6 days ago

This feature relates to: https://github.com/eclipse-tractusx/sig-release/issues/643

maximilianong commented 5 days ago

Deepdive session to this feature will happen on the 22. of July at 11 AM CEST to 12 AM:

TEAMS MEETING LINK