Repository navigation
Use the default source for files without one (mediatheque 1.1 jobs) - #38
Merged
Merged
Conversation
Files stored by older versions of the mediatheque have no source: the mediatheque then uses its default source, and so do the jobs now, for the location, the prefix, the visibility and the files they create. Closes #37 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Closes #37
The mediatheque 1.1 jobs read the file's
sourcecolumn directly. Files stored by older versions of the mediatheque have none (null), and the mediatheque then usesconfig('mediatheque.source'); the jobs threwEclair reads the files of filesystem sources only: the source "" …before sending anything to Eclair.Job::sourceName()gives the file's source, or the default source when it is empty, as the mediatheque does.sourceof the files the job creates.test_a_local_source_is_refused).Checks
composer lint,composer analyse,composer test(default dependencies): pass, 98 tests (18 skipped: the mediatheque 1.1 suite).folklore/laravel-mediatheque:^1.1.3, as themediatheque-v1CI job:composer analyse:v1andcomposer test:v1pass, 9 tests.test_a_file_without_a_source_uses_the_default_sourcefails without the fix, with the error above.🤖 Generated with Claude Code