Skip to content

Data Contract latestResult is not updated after semantics validation fails following an entity field change #30179

Closed

Description

@shrabantipaul-collate

Summary

When an entity's fields are changed such that a data contract's semantics rule now fails (e.g. removing the owner referenced by a semantics rule), re-running the contract correctly marks the individual semantics check as Failed, but the contract's aggregate latestResult (used to drive the "Contract Failed" indicator on the entity header / Explore listing) is not updated to reflect the new failure. The UI is left showing a stale/previous status even though the underlying validation genuinely failed.

Steps to Reproduce

Create a table (or other contract-supporting entity) and set an owner (e.g. Shrabanti).
Create a Data Contract on the entity with a semantics rule that asserts on the owner (e.g. Owner Is ).
Run the contract — semantics passes, latestResult shows Success.
Remove the owner from the entity entirely.
Run the contract again (Run Now / /validate).

Expected Behavior

The semantics check fails (as it correctly does).
The contract's latestResult.status is updated to Failed, and the entity header's "Contract Failed" button/badge reflects this immediately.

Actual Behavior

The semantics check shows Failed inside the Contract tab (per-check status is correct).
The contract's latestResult (aggregate status consumed by DataAssetsHeader.component.tsx's data-contract-latest-result-btn, and likely by the Explore listing card) is not updated to Failed — it remains on the previous run's status, so the failure isn't surfaced where users would expect it.

Impact

Users cannot trust the "Contract Failed" indicator on the entity page / Explore listing after an entity change causes a semantics failure — they have to open the Contract tab and check the semantics status manually to discover the real state.

Failed playwright run

https://github.com/open-metadata/openmetadata-nightly/actions/runs/29499911340

Activity

  1. moved this to In Progress 🏗️ in Shippingon Jul 20, 2026
  2. yan-3005 commented on Aug 7, 2026

    @yan-3005
    Contributor

    Not applicable from backend for data COntract, it is an ETag issue

  3. moved this from In Progress 🏗️ to Done ✅ in Shippingon Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

Projects

  • Status
    Done ✅
  • Status
    Done ✅

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions