Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: make meta produced by DOCXToDocument JSON serializable #8263

Merged
merged 3 commits into from
Aug 22, 2024

Conversation

anakin87
Copy link
Member

Related Issues

Proposed Changes:

Simply convert the datetime object to strings

How did you test it?

CI

Checklist

@anakin87 anakin87 marked this pull request as ready for review August 21, 2024 13:39
@anakin87 anakin87 requested review from a team as code owners August 21, 2024 13:39
@anakin87 anakin87 requested review from dfokina and Amnah199 and removed request for a team August 21, 2024 13:39
@coveralls
Copy link
Collaborator

coveralls commented Aug 21, 2024

Pull Request Test Coverage Report for Build 10507658991

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.001%) to 90.21%

Totals Coverage Status
Change from base Build 10488291018: -0.001%
Covered Lines: 6975
Relevant Lines: 7732

💛 - Coveralls

@anakin87 anakin87 requested a review from shadeMe August 21, 2024 14:06
@@ -47,13 +46,13 @@ class DOCXMetadata:
category: str
comments: str
content_status: str
created: Optional[datetime]
created: Optional[str]
Copy link
Contributor

Choose a reason for hiding this comment

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

Just curious, why is it marked as optional?

Copy link
Member Author

Choose a reason for hiding this comment

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

@Amnah199 Amnah199 self-requested a review August 22, 2024 10:09
Copy link
Collaborator

@shadeMe shadeMe left a comment

Choose a reason for hiding this comment

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

Good to merge after we update the docstring to mention that the timestamps are ISO formatted strings.

@github-actions github-actions bot added the type:documentation Improvements on the docs label Aug 22, 2024
@anakin87 anakin87 enabled auto-merge (squash) August 22, 2024 12:03
@anakin87 anakin87 merged commit 2e619f0 into main Aug 22, 2024
17 checks passed
@anakin87 anakin87 deleted the docxmetadata-json-serializable branch August 22, 2024 12:24
srini047 pushed a commit to srini047/haystack that referenced this pull request Sep 4, 2024
…t-ai#8263)

* make meta from DOCXToDocument JSON serializable

* unused import

* update docstrings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic:tests type:documentation Improvements on the docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypeError when inserting DocX converted Documents into PGVector
4 participants