fix(airflow): add DriveService to ENTITY_CLASS_MAP#25743
fix(airflow): add DriveService to ENTITY_CLASS_MAP#25743AntoineGlacet wants to merge 1 commit intoopen-metadata:mainfrom
Conversation
Add missing driveService entry to ENTITY_CLASS_MAP in common.py. This fixes the 'Invalid Service Type: driveService' error when deploying ingestion pipelines for DriveService entities.
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
🔍 CI failure analysis for b0d4975: All CI failures caused by missing 'safe to test' GitHub label - jobs blocked before running actual testsIssueAll 11 CI job failures are caused by a missing GitHub label requirement, not code issues. Root CauseThe CI pipeline requires the Each failing job follows this pattern:
DetailsAffected Jobs:
Important: None of these jobs reached the actual code validation phase. The PR changes to This is a workflow policy control, not a code quality issue. The actual code changes (adding Code Review ✅ ApprovedClean, minimal bug fix that adds the missing DriveService registration to ENTITY_CLASS_MAP, following established patterns exactly. No issues found. Tip Comment OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change:
Was this helpful? React with 👍 / 👎 | Gitar |
Summary
driveServiceentry toENTITY_CLASS_MAPincommon.pyDriveServiceimportProblem
When attempting to deploy ingestion pipelines for
DriveServiceentities (used by the new Drive/SharePoint connector), the workflow deployment fails with:This happens because the
ENTITY_CLASS_MAPdictionary inopenmetadata-airflow-apis/openmetadata_managed_apis/workflows/ingestion/common.pywas missing thedriveServiceentry.Root Cause
The
build_sourcefunction usesENTITY_CLASS_MAPto look up the entity class for a given service type. WhendriveServiceis passed (fromingestion_pipeline.service.type), the lookup returnsNone, triggering theInvalidServiceException.Fix
Added the missing entry:
Testing
Tested manually with a custom SharePoint connector ingesting files and directories into OpenMetadata 1.11.8. After applying this fix, the ingestion pipeline deploys and runs successfully.
Fixes #25611"