Skip to content

PUT Operation on Test Case Removes Test Cases from Bundle Suite Until Reindex #28267

@Prajwal214

Description

@Prajwal214

Affected module

Backend

Describe the bug

Updating a Test Case using the PUT /v1/dataQuality/testCases API removes the Test Case from the Bundle Suite UI until a search reindex is performed.

This issue also impacts Automator workflows since Automator internally uses the createOrUpdate operation (PUT), causing updated test cases to disappear from Bundle Suites after automation runs.

Initial analysis indicates this is related to search indexing behavior for Bundle Suites.
Specifically:

  • PUT operation on Test Cases causes the Test Case association with Bundle Suites to disappear from search/UI.
  • PATCH operation works correctly and does not remove the Test Case from the Bundle Suite.
  • Search Reindex restores visibility, indicating the metadata relationship still exists but indexing becomes inconsistent.

To Reproduce

  1. Create a Test Case for a table.
    Example: Column Count between 1 and 10.
  2. Create a Bundle Test Suite.
    Navigate to:
    Data Observability -> Test Suites -> Bundle Suite
  3. Add the created Test Case to the Bundle Suite.
  4. Update the Test Case using:
    PUT /v1/dataQuality/testCases
  5. Navigate back to the Bundle Suite.

Expected behavior

  • Updated Test Case should continue appearing in the Bundle Suite without requiring Search Reindex.
  • PUT operation should preserve Bundle Suite associations and indexing consistency.

OS

No response

Python version

No response

OpenMetadata version

1.12.8

OpenMetadata Ingestion package version

No response

Additional context

No response

Pre-submission checklist

  • I searched for duplicate issues.
  • I removed credentials, hostnames, emails, and other sensitive data from logs and config.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcustomer

Type

No fields configured for Bug.

Projects

Status

Done ✅

Status

Done ✅

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions