-
Notifications
You must be signed in to change notification settings - Fork 41
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
Implement snapshot downloadFiles API call #2797
Conversation
…tasetFile interface
Codecov Report
@@ Coverage Diff @@
## master #2797 +/- ##
==========================================
- Coverage 75.83% 75.77% -0.06%
==========================================
Files 411 409 -2
Lines 67139 67087 -52
Branches 2039 2034 -5
==========================================
- Hits 50912 50838 -74
- Misses 16176 16199 +23
+ Partials 51 50 -1
... and 1 file with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
After some discussion, I think we should instead make the file tree cache stable and put the export URLs in their own cache that is invalidated when the export status changes. |
Going back on this idea after some additional development on it, it leads to a difficult to resolve pattern where the relationship between the git tree objects and the URLs can get stale that isn't easy to resolve without dropping the draft cache anyways. The existing solution works pretty well, if it does cause real performance issues with drafts we could set an expiration time on the unexported draft tree cache but I think this version should be measured first. |
This creates a new flat API call that is indefinitely cached once a snapshot is fully exported. This is needed to allow for faster downloads without each client repeating tree creation.
Changes: