Skip to content

Conversation

@LeMyst
Copy link
Owner

@LeMyst LeMyst commented Mar 10, 2025

…sts and documentation

@LeMyst LeMyst linked an issue Mar 10, 2025 that may be closed by this pull request
@LeMyst LeMyst force-pushed the fix-mediainfo-support branch 3 times, most recently from fbc1a4e to 20ceebd Compare March 10, 2025 15:43
Copilot AI review requested due to automatic review settings August 28, 2025 13:36

This comment was marked as outdated.

@LeMyst LeMyst requested a review from Copilot August 29, 2025 08:07

This comment was marked as outdated.

@LeMyst LeMyst force-pushed the fix-mediainfo-support branch from a5153d1 to b7740d4 Compare August 30, 2025 10:44
@LeMyst LeMyst force-pushed the fix-mediainfo-support branch from b7740d4 to 8b78700 Compare August 30, 2025 10:47
@LeMyst LeMyst requested a review from Copilot August 30, 2025 10:48
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors MediaInfo entity handling to properly manage the conversion between "claims" and "statements" fields, addressing compatibility differences between Wikidata and Wikimedia Commons APIs. The changes unify the handling of these fields and improve test coverage.

Key changes:

  • Uncommented and improved the claims/statements conversion logic in MediaInfo JSON serialization
  • Enhanced test suite with proper setUp/tearDown methods for configuration management
  • Added documentation explaining the claims/statements field compatibility handling

Reviewed Changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.

File Description
wikibaseintegrator/entities/mediainfo.py Activated and improved claims-to-statements conversion logic with proper type checking
test/test_entity_mediainfo.py Enhanced test setup with proper config management and added new tests for claims/statements functionality
README.md Added documentation explaining MediaInfo claims/statements field compatibility

@LeMyst LeMyst merged commit 655433c into master Aug 30, 2025
15 checks passed
@LeMyst LeMyst deleted the fix-mediainfo-support branch August 30, 2025 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: MediaInfo support is not working as intended

2 participants