Closed (duplicate)
Project:
Drupal core
Version:
8.8.x-dev
Component:
media system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
7 Jan 2018 at 18:35 UTC
Updated:
22 Mar 2019 at 00:42 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
starshapedExported media configuration and created a patch with the updates, removing uuid and _core from each file.
Comment #3
phenaproximaThis looks great; RTBC from me.
However @xjm and I briefly discussed this snippet:
We believe that this may be related to the problem we turned up over in #2923664: Missing image styles during "Media" install causes issues in media form and view display.. It bears further discussion to figure out what's going on here, and what, if anything, we need to do about it here. Therefore, I'm leaving this at the review stage.
Comment #5
tstoecklerRe #3: I think that is just a leftover from #2934850: Media Images should be rendered at a reasonable size by default which was recently committed.
Comment #6
chr.fritschI think we shouldn't add the path fields to the config because if we do so, we have to add the path module to the list of media dependencies.
Comment #7
chr.fritschThey are already part of core.entity_form_display.media.audio.default and core.entity_form_display.media.video.default. So if you install in the standard profile, uninstalls path and then will install media, you will not get these configs. So not 100% sure whats best to do.
If we want to ship with the path config, we probably have to add path to the list of modules in MediaJavascriptTestBase to fix the tests.
Comment #8
chr.fritschThought about a bit more about that. Since all the configs are optional, it will not really break if path module is not installed. The config will just not be imported.
So to fix the tests, I added path module to MediaDisplayTest
Comment #9
marcoscanoI agree with #5 that the
mediumimage style dependency removal is expected, it should probably have been removed in #2934850: Media Images should be rendered at a reasonable size by default but we missed that.Just tested the "missing path module" scenario, and unfortunately things don't appear to work as expected. Nothing breaks, but if the
core.entity_form_display.media.*.default.ymlare not installed, the source fields disappear from the form. Couldn't dig too much into the root cause, but in any case we want to make sure that scenario works, or at least not include anything path-related, as suggested in #6Comment #11
oriol_e9gThis is fixed with Tests in #2940205: Some media default configuration does not install as expected
Comment #14
seanbClosing this in favor of #2940205: Some media default configuration does not install as expected (since that has more tests). Thanks everyone, added issue credits to the other issue as well.