Closed (fixed)
Project:
Migrate Plus
Version:
8.x-5.x-dev
Component:
Plugins
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
10 Jun 2021 at 21:56 UTC
Updated:
1 Dec 2021 at 00:34 UTC
Jump to comment: Most recent
Comments
Comment #2
benjifisherI created a MR to implement the proposed resolution. It is so simple that it feels like cheating.
I am marking this issue NW for some error handling and an automated test.
Comment #3
benjifisherIf we like this approach, then I think we can close #3055302: Process plugin: file_mimetype as a duplicate. I borrowed the usage example from there.
Comment #5
benjifisherThere are now about 4 times as many lines to validate the configuration as there are to do everything else. And the test class is more than twice as long (by line count) as the plugin class.
It all seems kind of silly until I remind myself how annoyed I get when I make a mistake and the error message is not helpful. ;)
Comment #6
matroskeenAdded some feedback, but overall it looks good to me!
I'm wondering if we need to mention somehow the unpack feature - https://www.drupal.org/node/3205079.
Comment #7
benjifisher@Matroskeen:
Thanks for the review! I made most of the changes you recommended.
That is a little tricky, since that option is only available with Drupal 9.2.0 or later. Along with an
@seereference to the corecallbackplugin, I addedI think we can leave it at that.
Comment #8
matroskeenThanks! It looks good to me. I pushed a quick change for the namespace in @see section.
Current test coverage looks good to me, so I'm removing "Needs tests" tag.
I would RTBC, but I didn't test it yet 😉
Comment #9
matroskeenFinally, I had a chance to test it manually - works like a charm!
I did a quick review again and couldn't find anything to complain.
Therefore, this is RTBC for me.
P.S. I was using the example from IS:
If you're trying on Drupal 9.1.0, consider using
guessMimeTypemethod. See: https://www.drupal.org/node/3126004Comment #10
matroskeenChecked again - still looks good.
When we do this, we can deprecate the existing Transliterate plugin. Here is a follow-up issue: #3232488: Deprecate Transliteration process plugin.
Comment #13
heddnThanks for your contributions.
Comment #14
heddn