eclipse-tractusx / traceability-foss

https://eclipse-tractusx.github.io/traceability-foss/docs/
Apache License 2.0
10 stars 19 forks source link

Parts not updated after resync via IRS #1082

Open ds-mwesener opened 1 week ago

ds-mwesener commented 1 week ago

Description

When synchronizing parts, unsuccessful sync attempts lead to the creation of tombstones. A subsequent sync attempt works but does not convert the existing tombstone back into a normal part.

Current behaviour

Expected behavior

Out of scope

Steps to reproduce the Bug

  1. AdminView -> Create a policy which is different to the default policy
  2. AdminView -> Import Data into Trace-X (Parts) -> choose policy which has been created in step 1)
  3. While the application has not restarted try to sync assets
  4. Trace-X will use the policy which was setup on startup which is not matching with the created one and therefore sync will fail. -> Parts are not synced correctly
  5. AdminView -> Delete All policies
  6. Restart trace-x -> now the policy should match
  7. Reload registry
  8. Parts should be updated and have data

Or easier:

  1. Login to db
  2. Change a field of a successful synced part
  3. Regtriy reload
  4. See attribute has not been updated
ds-mwesener commented 23 hours ago

Please find some logs about an initial registryReload, attached on the ticket.

ds-mwesener commented 23 hours ago

logs_after_sync.txt