Repository navigation
Fix repeated downloads for unchanged files - #154
Merged
Merged
Conversation
Preserve remote version markers so unchanged direct links and Sciebo files are skipped instead of fetched again. Keep scanner-provided Sciebo PROPFIND markers when a download response has a different GET ETag, and retain cached content hashes for existing files that were skipped rather than actually downloaded in the current run. Match cached nodes through duplicate same-named sections by stable URL, name_clash_id, or id. This avoids false updates and conflict copies when Moodle sections collapse to the same local path but contain distinct same-named files.
for opencast nodes, actually track json responses from the episodes API to use content hashes etc add a get based fallback for nodes without e-tags set, to actually check if they changed and don't re-download them
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes repeated re-downloads and false local-conflict handling for unchanged files.
This improves cache/change detection for Moodle files, Sciebo files, linked files, Opencast videos, and embedded videojs nodes. It preserves valid cached markers for skipped files, avoids poisoning the cache after failed downloads, stores content hashes for downloaded bytes, handles duplicate same-named sections more reliably, uses Opencast checksums and conditional GET validation where available.
Adds regression tests for unchanged-file skips, failed-download retries, Sciebo marker handling, duplicate sections, and Opencast/videojs ETag fallback.