mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-06 06:16:21 +00:00

* Implement Modern Fluent API Pattern for OpenMetadata Java Client * Add Lineage, Bulk, Search static methods * Add all API support for Java & Python SDKs * Add Python SDKs and mock tests * Add Fluent APIs for sdks * Add Fluent APIs for sdks * Add Fluent APIs for sdks, support async import/export * Remove unnecessary scripts * fix py checkstyle * fix tests with new plural form sdks * Fix tests * remove examples from python sdk * remove examples from python sdk * Fix type check * Fix pyformat check * Fix pyformat check * fix python integration tests * fix pycheck and pytests * fix search api pycheck * fix pycheck * fix pycheck * fix pycheck * Fix test_sdk_integration * Improvements to SDK * Remove SDK coverage for Python 3.9 * Remove SDK coverage for Python 3.9 * Remove SDK coverage for Python 3.9
43 lines
2.2 KiB
Bash
Executable File
43 lines
2.2 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
echo "Fixing all import issues..."
|
|
|
|
# Fix Classification imports (should be in classification package)
|
|
find src/main/java/org/openmetadata/sdk/fluent -name "*.java" -exec sed -i '' \
|
|
-e 's/org.openmetadata.schema.entity.data.Classification/org.openmetadata.schema.entity.classification.Classification/g' \
|
|
-e 's/org.openmetadata.schema.api.data.CreateClassification/org.openmetadata.schema.api.classification.CreateClassification/g' {} \;
|
|
|
|
# Fix Tag imports
|
|
find src/main/java/org/openmetadata/sdk/fluent -name "*.java" -exec sed -i '' \
|
|
-e 's/org.openmetadata.schema.entity.classification.Tag/org.openmetadata.schema.entity.classification.Tag/g' \
|
|
-e 's/org.openmetadata.schema.api.classification.CreateTag/org.openmetadata.schema.api.classification.CreateTag/g' {} \;
|
|
|
|
# Fix User/Team imports (they're in teams package)
|
|
find src/main/java/org/openmetadata/sdk/fluent -name "*.java" -exec sed -i '' \
|
|
-e 's/org.openmetadata.schema.entity.data.User/org.openmetadata.schema.entity.teams.User/g' \
|
|
-e 's/org.openmetadata.schema.entity.data.Team/org.openmetadata.schema.entity.teams.Team/g' \
|
|
-e 's/org.openmetadata.schema.api.data.CreateUser/org.openmetadata.schema.api.teams.CreateUser/g' \
|
|
-e 's/org.openmetadata.schema.api.data.CreateTeam/org.openmetadata.schema.api.teams.CreateTeam/g' {} \;
|
|
|
|
# Fix Role imports
|
|
find src/main/java/org/openmetadata/sdk/fluent -name "*.java" -exec sed -i '' \
|
|
-e 's/org.openmetadata.schema.entity.teams.Role/org.openmetadata.schema.entity.teams.Role/g' \
|
|
-e 's/org.openmetadata.schema.api.teams.CreateRole/org.openmetadata.schema.api.teams.CreateRole/g' {} \;
|
|
|
|
# Fix DatabaseConnection to proper type
|
|
find src/main/java/org/openmetadata/sdk/fluent -name "*.java" -exec sed -i '' \
|
|
-e 's/DatabaseConnection/Object/g' {} \;
|
|
|
|
# Remove DataType references entirely (doesn't exist)
|
|
find src/main/java/org/openmetadata/sdk/fluent -name "*.java" -exec sed -i '' \
|
|
-e 's/String\./ColumnDataType\./g' {} \;
|
|
|
|
# Remove non-existent wrappers
|
|
find src/main/java/org/openmetadata/sdk/fluent -name "*.java" -exec sed -i '' \
|
|
-e '/FluentTestDefinition/d' \
|
|
-e '/FluentRole/d' \
|
|
-e '/FluentStorageService/d' \
|
|
-e '/StorageServiceCollection/d' {} \;
|
|
|
|
echo "Fixes applied!"
|