php drupal-check.phar modules/contrib/media_entity_soundcloud/
6/6 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
------ -------------------------------------------------------
Line media_entity_soundcloud.install
------ -------------------------------------------------------
14 Call to deprecated function file_prepare_directory().
25 Call to deprecated function file_unmanaged_copy().
------ -------------------------------------------------------
------ ---------------------------------------------------------
Line src/Plugin/media/Source/Soundcloud.php
------ ---------------------------------------------------------
113 Call to deprecated function file_prepare_directory().
116 Call to deprecated function file_unmanaged_save_data().
------ ---------------------------------------------------------
------ ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Line tests/src/Functional/SoundcloudEmbedFormatterTest.php
------ ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
15 Usage of deprecated trait Drupal\Tests\media\Functional\MediaFunctionalTestCreateMediaTypeTrait in class Drupal\Tests\media_entity_soundcloud\Functional\SoundcloudEmbedFormatterTest.
59 Call to deprecated function entity_get_form_display().
65 Call to deprecated function entity_get_display().
------ ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[ERROR] Found 7 errors | Comment | File | Size | Author |
|---|---|---|---|
| #21 | 3086691-21-interdiff.txt | 1019 bytes | jkswoods |
| #21 | 3086691-21.patch | 7.37 KB | jkswoods |
Comments
Comment #2
sergiu stici commentedHere is the patch, please review.
Comment #4
sahana _n commentedPlease review the patch.
Comment #5
millerrs commented#4 works for me.
Comment #7
aleksip- Changed deprecated trait in
SoundcloudEmbedFormatterTest- Added core_version_requirement
- Renamed issue title
Comment #9
aleksipFixed changed
createmediatype()call inSoundcloudEmbedFormatterTestComment #11
aleksipLooks like Drupal now redirects to
/admin/content/mediaafter saving a media item, but the test expects a redirect to/media/[id]. So this part of the test needs to be rewritten. I have commented it with a@todofor now just to see if everything else passes.Comment #12
himerus commentedThis patch seems to be failing on latest code, which makes no sense if it passed previously as nothing has changed in the codebase for 2 years.
Comment #13
jcisio commentedNow that tests have been fixed, could you remove unrelated changes?
Comment #14
sonvir249 commentedRerolled the patch for Drupal 9 support.
Comment #16
larowlanInterdiff is from #11
Comment #17
stijndmd commentedCan I help test wether or not this patched version works with composer?
And how do I do this?
Comment #18
jkswoods commentedTested the patch on a local installation, everything (creating/updating/deleting, oEmbed response, media library etc.) working as normal
Do we need to look at the D9.1 composer require failure before marking this as RTBC?
@stijndmd You can look in to using https://github.com/cweagans/composer-patches if you want to install patches with composer
Comment #19
jcisio commentedIt seems like that the dependency "drupal:media (>= 8.4)" implies to Composer "drupal/core:^8.4", which eventually is a core bug. I think we can simply remove the version in this dependency.
Comment #20
jcisio commentedComment #21
jkswoods commented@jcisio Nice, I did some digging and apparently to test dependency changes we need a composer.json https://www.drupal.org/docs/creating-custom-modules/let-drupal-know-abou...
Comment #22
jkswoods commentedDifferent error this time which appears to be documented elsewhere
Comment #23
devad commentedThnx. Patch #21 works for me with latest D9.1.x-dev with no errors in logs. Marking RTBC.
It would be nice to have working d9 version soon.
Comment #24
stijndmd commented@jskwoods I'm well aware on how to apply patches with composer.
Just wondering how I can make this work on d9 because even if I place the patch in composer, this module still doesn't want to install because drupal 8 is required.
Comment #25
aleksip@stijndmd One way is to fork the module, apply the patch and then point Composer to use your fork until a D9-compatible version of the module is released.
Comment #26
jcisio commentedI think the patch is good enough and we spend energy elsewhere for the "real" issues. New release created. Thank you for all the work.