-
Notifications
You must be signed in to change notification settings - Fork 382
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
Migrate static data from github to monitoring middleware. #1033
Conversation
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.
Thanks @marvinmindee :)
Quick question though:
- I understand clearly the advantage of monitoring the downloads of models (perhaps there is a feature on Github to monitor asset download but I'm not sure)
- but for the rest (images, etc.), what would be the advantage?
Thanks 🙏
Hello, we also added he images so that all static data are accessed the same way and we don't have things dowloaded from multiple places (especially when we'll want to add other static files, it's better if we don't have to think about whether it should be on github/release or doctr-static). It also leaves flexibility for later! |
@frgfm @marvinmindee If we switch the models to doctr-static i agree that we should do this for all static data so we have all in one place 👍 one failing test left to fix :) |
Codecov Report
@@ Coverage Diff @@
## main #1033 +/- ##
==========================================
- Coverage 94.93% 94.91% -0.02%
==========================================
Files 135 135
Lines 5590 5590
==========================================
- Hits 5307 5306 -1
- Misses 283 284 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
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.
Thanks, LGTM
Hey @charlesmindee 👋 |
Static data like models and images are now downloaded from a middleware and not from github releases, to enable more flexibility and monitor model downloads.