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

bugfix/allow metadata to fail #1190

Merged
merged 1 commit into from
Nov 13, 2024
Merged

Conversation

gecBurton
Copy link
Collaborator

Context

As a User i want my file to be ingested even if the generation of metadata fails so that i can use my data

Changes proposed in this pull request

Guidance to review

Relevant links

Things to check

  • I have added any new ENV vars in all deployed environments
  • I have tested any code added or changed
  • I have run integration tests

try:
metadata = self.create_file_metadata(first_thousand_words, original_metadata=original_metadata)
except TypeError:
metadata = GeneratedMetadata(name=original_metadata.get("filename"))
Copy link
Contributor

@saisakul saisakul Nov 13, 2024

Choose a reason for hiding this comment

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

Does original_metadata always have filename? maybe add
metadata = GeneratedMetadata(name=original_metadata.get("filename", ""))

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@gecBurton gecBurton merged commit 7343b80 into main Nov 13, 2024
15 checks passed
@gecBurton gecBurton deleted the bugfix/allow-metadata-to-fail branch November 13, 2024 13:05
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.

2 participants