Skip to content

⚠️ fix(datashare-python): make Document.root_document not nullable and Document.extraction_level mandatory - #79

Merged
ClemDoum merged 1 commit into
mainfrom
fix/root-document-detection
Sep 3, 2026
Merged

ClemDoum merged 1 commit into
mainfrom
fix/root-document-detection

Conversation

@ClemDoum

@ClemDoum ClemDoum commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

Description

Fix detection of root document by:

  • implementing the same logic as the datashare backend (Document.root_id == Document.id and Document.extraction_level <= 0)
  • making extraction level mandatory

Changes

datashare-python

Added

  • align root document detection with datashare

@ClemDoum ClemDoum changed the title fix(datashare-python): make Document.root_document not nullable and… fix(datashare-python): make Document.root_document not nullable and Document.extraction_level mandatory Sep 2, 2026
@ClemDoum ClemDoum self-assigned this Sep 2, 2026
@ClemDoum
ClemDoum requested a review from mvanzalu September 2, 2026 16:23
@ClemDoum ClemDoum changed the title fix(datashare-python): make Document.root_document not nullable and Document.extraction_level mandatory ⚠️ fix(datashare-python): make Document.root_document not nullable and Document.extraction_level mandatory Sep 2, 2026
@ClemDoum
ClemDoum force-pushed the fix/root-document-detection branch from c668dca to 0e18cc4 Compare September 2, 2026 16:28
@ClemDoum
ClemDoum force-pushed the fix/root-document-detection branch from 0e18cc4 to 2b790a1 Compare September 2, 2026 16:33
@ClemDoum
ClemDoum marked this pull request as ready for review September 3, 2026 09:35
@ClemDoum
ClemDoum merged commit e1d98e4 into main Sep 3, 2026
12 checks passed
@ClemDoum
ClemDoum deleted the fix/root-document-detection branch September 3, 2026 09:35
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.

1 participant