mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2026-02-06 19:02:24 +00:00
* 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>
11 lines
641 B
Bash
Executable File
11 lines
641 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# bash strict mode
|
|
set -eup pipefail
|
|
|
|
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
|
EXCLUDED_DIRS=".vscode|great_expectations/resources|playwright/test-data"
|
|
echo "Validating JSON files..."
|
|
git ls-files | grep "\.json$" | grep -vE "/($EXCLUDED_DIRS)/" | while read file; do jq . "$file" >/dev/null 2>&1 || { echo "Invalid JSON in $file"; exit 1; }; done
|
|
echo "Validating YAML files..."
|
|
git ls-files | grep -E "\.ya?ml$" | grep -vE "/($EXCLUDED_DIRS)/" | while read file; do python ${SCRIPT_DIR}/validate_yaml.py "$file" >/dev/null 2>&1 || { echo "Invalid YAML in $file"; exit 1; }; done
|