OpenMetadata/scripts
Pere Miquel Brull 6aa5a7f033
FIX #24374 - Data Contract at Data Product level (#25314)
* FIX #24374 - Data Contract at Data Product level

* Update generated TypeScript types

* FIX #24374 - Data Contract at Data Product level

* fix DP page

* fix: preserve termsOfUse object format in filtered contract

The termsOfUse field was being converted to a string during filtering,
but the form components expect it to be an object with {content: string}.
This was causing test failures where form elements were not visible.

- Keep termsOfUse as object format when not inherited
- Convert old string format to new object format for consistency
- Fixes 21 test failures in DataContracts.spec.ts and DataContractInheritance.spec.ts

* fix: address code review findings - state sync and immutability

Frontend changes:
- Add useEffect to sync formValues with filteredContract changes
- Ensures edit form updates when contract prop changes

Backend changes:
- Create deep copy at start of mergeContracts() to avoid mutating input
- Prevents side effects if contract object is reused elsewhere

Co-authored-by: pmbrull <pmbrull@users.noreply.github.com>

* Addressing feedback

Co-authored-by: pmbrull <pmbrull@users.noreply.github.com>

* fix tests

* fix inherited contract delete and status

* fix inherited contract delete and status

* fix inherited contract execution in app

* fix test

* fix: resolve playwright postgresql ci test failure

Co-authored-by: pmbrull <pmbrull@users.noreply.github.com>

* ci: fix yaml validation and checkstyle failures

Co-authored-by: pmbrull <pmbrull@users.noreply.github.com>

* fix: correct JSON/YAML validation errors

Co-authored-by: pmbrull <pmbrull@users.noreply.github.com>

* fix: resolve maven-collate and ui-coverage test failures

Co-authored-by: pmbrull <pmbrull@users.noreply.github.com>

* gitar feedback

* fix ci

* fix ci

* fix ci

* fix ci

* include .claude

* validate

* fix playwright

* playwright

* fix playwright

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Gitar <gitar@collate.io>
Co-authored-by: Gitar <noreply@gitar.ai>
Co-authored-by: pmbrull <pmbrull@users.noreply.github.com>
Co-authored-by: Karan Hotchandani <33024356+karanh37@users.noreply.github.com>
Co-authored-by: karanh37 <karanh37@gmail.com>
2026-01-23 07:01:53 +01:00
..
check_prerequisites.sh fix: Update required Node.js version to 22 in prerequisites script (#23507) 2025-09-23 09:56:53 +05:30
datamodel_generation.py FIX - e2e test for pydantic v2 (#16572) 2024-06-07 22:52:16 +02:00
deploy-pipelines.py MINOR - deploy pipelines fixes (#24575) 2025-11-27 12:31:07 +01:00
format-code.sh Minor: Migrate to latest google code style library to support Java 17 and beyond (#14429) 2023-12-18 12:56:17 -08:00
generate-rdf-models.sh RDF Ontology, Json LD, DCAT vocabulary support by mapping OM Schemas to RDF (#22852) 2025-08-17 18:36:26 -07:00
html_to_pdf.py Generate PDF for Snyk security report (#10086) 2023-02-02 17:10:35 +01:00
ingest_100k_tables.py Distributed Search Indexing with Push Notifications (#24939) 2026-01-23 06:12:05 +05:30
lint-staged.sh Fix #2052: Revert the reverted pre-commit (#2053) 2022-01-07 03:53:21 +01:00
slack-link-monitor.py MINOR: Enhance Slack Link Monitoring Workflow and Script (#20604) 2025-04-22 10:38:29 +05:30
test_connection.py Distributed Search Indexing with Push Notifications (#24939) 2026-01-23 06:12:05 +05:30
update_version.py MINOR: Add OpenAPI version update functionality in Makefile and script (#24604) 2026-01-14 14:11:56 +05:30
validate_change.sh ISSUE #2681 - Add Missing test parameters in PSQL (#25323) 2026-01-16 12:09:15 +01:00
validate_json_yaml.sh FIX #24374 - Data Contract at Data Product level (#25314) 2026-01-23 07:01:53 +01:00
validate_sample_data.py CI - Fix operator build test (#19938) 2025-02-24 12:17:00 +01:00
validate_yaml.py CI - YAML formatting issue (#23047) 2025-08-21 18:05:15 +02:00
worktree_dev.sh fix: Handle special characters in passwords for TableDiff URL parsing (#25038) 2026-01-06 08:18:08 +01:00