Repository navigation
Conversation
- Fix _file_to_source_info to use required SourceInfo fields (path, content_type, size_bytes) instead of deprecated description field - Add _get_content_type helper to map file extensions to MIME types - Update test to check correct SourceInfo fields with parentReference data - All 16 tests now pass Co-Authored-By: Paperclip <noreply@paperclip.ing>
Contributor
✅ SSOT Configuration Compliance: Passing🎉 No hardcoded values detected that have SSOT config equivalents! |
Owner
Author
|
Closing due to CI failures (SAST, validation, frontend-tests, security-tests, startup-import-smoke). Part of PR limit enforcement (MVA-3660). |
This was referenced Jun 5, 2026
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Thinking Path
Fixed a field mapping bug in the OneDrive connector where
SourceInfowas being instantiated with incorrect field names. The connector was trying to use adescriptionfield that doesn't exist in theSourceInfodataclass, causing TypeErrors at runtime when listing files.The
SourceInfodataclass requires:source_id,name,path,content_type,size_bytes,last_modified, and optionalmetadata. The old code was passingdescriptioninstead of the requiredpath,content_type, andsize_bytesfields.What Changed
_file_to_source_info()method in OneDrive connector to use the correct required fields_get_content_type()helper method to map file extensions to proper MIME typestest_file_to_source_info_basicto verify the correct fields and include proper path datadrive_idandsite_idVerification
Verified the fix resolves the SourceInfo field mismatch:
Model Used
Claude Sonnet 4.5
Related Issues
🤖 Generated with Claude Code