-
Notifications
You must be signed in to change notification settings - Fork 1
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
✨ [#133] Implement streaming/downloading file content #135
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
|
d189520
to
6f4d314
Compare
4dcbfdf
to
68a220e
Compare
The binary content of the uploaded document is streamed down directly from the upstream Documenten API.
1972e47
to
ae2b37e
Compare
@@ -33,6 +33,7 @@ | |||
|
|||
|
|||
class Publication(models.Model): | |||
id: int # implicitly provided by django |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated the type in the factory, so now pyright knows that DocumentFactory.create()
returns a Document
, and existing tests have assertions using Document.id
which pyright didn't understand because it's Django magic.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes #133
Changes