Follow-up to #2683435: CCK does not exist in Drupal 7, rename Migrate's cckfield plugins to field plugins

Problem/Motivation

cckfield plugins were introduced to make migrating cck fields easier but we're now using the same plugin type for D7 fields as well. In #2683435: CCK does not exist in Drupal 7, rename Migrate's cckfield plugins to field plugins, basic functionality was introduced to allow us to rename cck field source to simply field source. The size and complexity of migrating to the new field source plugin is getting to complicated. So this has the strait conversions.

Proposed resolution

Add conversions.

Remaining tasks

Do it.

User interface changes

n/a

API changes

yes, renamed plugin type.

Data model changes

n/a

CommentFileSizeAuthor
#88 2833206-88.patch87.27 KBjoelpittet
#87 2833206-87.patch99 KBjoelpittet
#87 interdiff.txt1.01 KBjoelpittet
#84 2833206-84.patch85.94 KBmaxocub
#79 interdiff-2833206-77-79.txt653 bytesmaxocub
#79 2833206-79.patch87.21 KBmaxocub
#77 interdiff-2833206-75-77.txt1.27 KBmaxocub
#77 2833206-77.patch87.22 KBmaxocub
#75 2833206-75.patch87.58 KBphenaproxima
#70 diff.txt1.79 KBquietone
#70 2833206-70.patch86.26 KBquietone
#68 interdiff_65-68.txt2.36 KBheddn
#68 2833206-68.patch85.63 KBheddn
#65 interdiff_64-65.txt2.79 KBheddn
#65 2833206-65.patch85.48 KBheddn
#64 interdiff_61-63.txt15.76 KBheddn
#64 2833206-63.patch84.17 KBheddn
#61 interdiff_60-61.txt14.55 KBheddn
#61 2833206-61.patch78.07 KBheddn
#60 interdiff.txt14.75 KBquietone
#60 convert_migrate_s-2833206-60.patch72.67 KBquietone
#57 convert_migrate_s-2833206-57.patch71.71 KBjibran
#54 interdiff-52-54.txt805 bytesquietone
#54 2833206-54.patch85.72 KBquietone
#52 interdiff.txt3.28 KBquietone
#52 2833206-52.patch85.2 KBquietone
#50 interdiff_45-50.txt4.82 KBheddn
#50 2833206-50.patch84.65 KBheddn
#48 2833206-47.patch24.14 KBheddn
#45 interdiff.txt10.05 KBquietone
#45 2833206-45.patch84.22 KBquietone
#43 interdiff.txt4.63 KBquietone
#43 2833206-43.patch73.82 KBquietone
#41 interdiff.txt7.4 KBquietone
#41 2833206-41.patch69.96 KBquietone
#40 interdiff.txt3.28 KBquietone
#40 2833206-40.patch61.86 KBquietone
#38 interdiff.txt5.8 KBquietone
#38 2833206-38.patch61.8 KBquietone
#37 interdiff.txt13.8 KBquietone
#37 2833206-37.patch57.62 KBquietone
#36 interdiff.txt670 bytesquietone
#36 2833206-36.patch42.74 KBquietone
#34 interdiff-27-34.txt13.29 KBquietone
#34 2833206-34.patch42.61 KBquietone
#31 interdiff.txt43.07 KBquietone
#31 2833206-31.patch69.34 KBquietone
#27 2833206-27.patch36.84 KBheddn
#27 interdiff_26-27.txt5.16 KBheddn
#27 2833206-27.patch36.84 KBheddn
#26 interdiff_11-26.txt12.9 KBheddn
#26 2833206_26.patch35.21 KBheddn
#25 2833206_24.patch34.89 KBheddn
#25 interdiff_11-24.txt12.15 KBheddn
#11 interdiff-10-11.txt2.46 KBquietone
#11 2833206-11.patch32.4 KBquietone
#10 2833206-10.patch30.5 KBjofitz
#10 interdiff-9-10.txt2.88 KBjofitz
#9 2833206-9.patch27.62 KBjofitz
#9 interdiff-6-9.txt1.06 KBjofitz
#6 2833206-6.patch27.69 KBquietone

Comments

heddn created an issue. See original summary.

heddn’s picture

Title: Rename Migrate's cckfield plugins in migrate ymls » Convert Migrate's cckfield plugins to use the new field plugins in migrate ymls

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.6 was released on February 1, 2017 and is the final full bugfix release for the Drupal 8.2.x series. Drupal 8.2.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.3.0 on April 5, 2017. (Drupal 8.3.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.3.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

mikeryan’s picture

Status: Active » Postponed

Waiting for the cckfield rename to get committed.

jofitz’s picture

Now that #2683435: CCK does not exist in Drupal 7, rename Migrate's cckfield plugins to field plugins is set to "Patch (to be ported)" does that mean we can un-postpone this? If so, what is the best way to approach this? I suspect one big patch could become unwieldy so suggest a separate ticket for each field type. Thoughts?

quietone’s picture

Version: 8.3.x-dev » 8.4.x-dev
Status: Postponed » Needs review
StatusFileSize
new27.69 KB

@Jo Fitzgerald, good questions. I have the same ones.
But nothing like jumping in with both feet. Here is a patch that should have all the remaining changes.

Status: Needs review » Needs work

The last submitted patch, 6: 2833206-6.patch, failed testing.

quietone’s picture

Status: Needs work » Needs review

Retesting with 8.4.x

jofitz’s picture

Assigned: Unassigned » jofitz
Status: Needs review » Needs work
StatusFileSize
new1.06 KB
new27.62 KB

I'll start by fixing a couple of minor coding standards errors before addressing the test fails.

jofitz’s picture

Assigned: jofitz » Unassigned
Status: Needs work » Needs review
StatusFileSize
new2.88 KB
new30.5 KB

Removed assertions in MigrateCckFieldPluginManagerTest about "cckfields" that no longer exist (because they have been converted to "fields") leaving only assertions about fields provided by the migrate_cckfield_plugin_manager_test module.

quietone’s picture

StatusFileSize
new32.4 KB
new2.46 KB

@Jo Fitzgerald, thanks. And let's put those tests into MigrateFieldPluginManagerTest, as well as add tests for link. Found a usage of a cck plugin in FieldFileTest, changed it so d6_file.

Also, discovered that MigrateFieldPluginManagerTest loads the file module but then doesn't test the file module plugins, it tests file from it's test module. It could use a little tidy up, which is outside the scope of this issue.

quietone’s picture

This now contains all the remaining conversions. I understand that I started a patch without getting an answer to Jo Fitzgerald's question (#5) about breaking this into smaller pieces. Its just that my curiosity got the better of me and I wanted to see just how big the patch would be.

So, what is the next step? Should this be divided up? If so, how?

heddn’s picture

Status: Needs review » Reviewed & tested by the community

I've looked through the code and don't see any outstanding things missed from converting yml files. Shall we bump this to RTBC? Tests still exist for BC layer. Is there anything else we should be checking?

The last submitted patch, 9: 2833206-9.patch, failed testing.

tstoeckler’s picture

+++ b/core/modules/file/src/Plugin/migrate/field/d6/FileField.php
@@ -1,18 +1,18 @@
- * @MigrateCckField(
+ * @MigrateField(
  *   id = "filefield",
  *   core = {6}

+++ b/core/modules/file/src/Plugin/migrate/process/d6/CckFile.php
@@ -2,91 +2,9 @@
  * @MigrateProcessPlugin(
  *   id = "d6_cck_file"
  * )

+++ b/core/modules/file/src/Plugin/migrate/process/d6/FieldFile.php
@@ -0,0 +1,92 @@
+ * @MigrateProcessPlugin(
+ *   id = "d6_field_file"
+ * )

In D6 it actually was called CCK not "Field", right? Even for Filefield.

quietone’s picture

Yes, D6 used Cck terminolgy and D7 (and onward) uses fields.

tstoeckler’s picture

Status: Reviewed & tested by the community » Needs review

OK, so why are the D6 plugins being renamed in this patch? Sorry if I'm missing something.

quietone’s picture

The MigrateCckField plugin started out just doing the D6 field plugins. But now it is used both D6 Cck and D7 Fields. It is equally odd to use a MigrateCckField plugin for D7 fields. And then there is 'text', which is for used for both D6 and D7. What name makes sense?

 * @MigrateCckField(
 *   id = "text",
 *   type_map = {
 *     "text" = "text",
 *     "text_long" = "text_long",
 *     "text_with_summary" = "text_with_summary"
 *   },
 *   core = {6,7}
 * )

Since Cck is a term from contrib in D6 and fields is in core since D7, making them all Fields was the way to go.

heddn’s picture

Re #17, does #18 make sense? The previous patch to rename the plugins was already committed in #2683435: CCK does not exist in Drupal 7, rename Migrate's cckfield plugins to field plugins. This just is updating all the yml files. When we had both combined into a single patch, we were creeping up north of 100k, so this was broken out.

mikeryan’s picture

Another way to look at it - for both D6 and D7, the things being migrated are called fields. "CCK" is just the name of the D6 module (and just the human-readable name at that - the actual module machine name is "content").

mikeryan’s picture

Title: Convert Migrate's cckfield plugins to use the new field plugins in migrate ymls » Convert Migrate's cckfield plugins to use the new field plugins
Status: Needs review » Reviewed & tested by the community

I think #17 is answered - restoring RTBC.

Modified the title since we're not just touching .yml files here.

tstoeckler’s picture

Sorry for not following up, totally forgot. Yeah, if this is an explicit decision that the Migrate maintainers are on board with then I don't want to hold this up.

heddn’s picture

Priority: Normal » Major
Status: Reviewed & tested by the community » Needs work

Reviewed this with Vasi today and the

+++ b/core/modules/file/src/Plugin/migrate/field/d7/FileField.php
similarity index 66%
rename from core/modules/file/src/Plugin/migrate/cckfield/d7/ImageField.php

rename from core/modules/file/src/Plugin/migrate/cckfield/d7/ImageField.php
rename to core/modules/file/src/Plugin/migrate/field/d7/ImageField.php

This is a problem. We cannot rename. And this is also a problem in HEAD for LinkField. It no longer exists in Drupal\link\Plugin\migrate\cckfield;

mikeryan’s picture

To clarify (from my understanding) - we've renamed field plugin classes (as opposed to making copies), so if anyone has extended their own field plugins from those classes, they'll break. The "won't fix" arguments are:

  1. This is Drupal-to-Drupal-specific stuff, so it's still alpha-experimental - we are allowed to break BC.
  2. We don't know of anyone actually doing this (extending field plugins) in the wild. Note that the link field plugin was renamed in the original patch four weeks ago, and no one has appeared to notice.
heddn’s picture

Status: Needs work » Needs review
StatusFileSize
new12.15 KB
new34.89 KB

I think the interdiff seems a little odd.

heddn’s picture

StatusFileSize
new35.21 KB
new12.9 KB

Hopefully this is a little better. I think I dropped a few things in #25.

heddn’s picture

StatusFileSize
new36.84 KB
new5.16 KB
new36.84 KB

And now some tests.

quietone’s picture

+++ b/core/modules/file/tests/src/Unit/Plugin/migrate/process/d6/FieldFileTest.php
@@ -0,0 +1,51 @@
diff --git a/core/modules/link/src/Plugin/migrate/cckfield/LinkField.php b/core/modules/link/src/Plugin/migrate/cckfield/LinkField.php
new file mode 100644

Why is this adding in a cckfield plugin?

Status: Needs review » Needs work

The last submitted patch, 27: 2833206-27.patch, failed testing.

vasi’s picture

@quietone: A previous issue renamed cckfield/LinkField to field/LinkField—but this breaks BC if anybody extends LinkField. Rather than revert the previous issue, we're trying to fix it here by re-adding a cckfield/LinkField.

quietone’s picture

Status: Needs work » Needs review
StatusFileSize
new69.34 KB
new43.07 KB

@vasi, thanks. Just got myself all confused for a while there.

So, building on the work of heddn, this patch uses the changes made for the text cckfield/field tests as a model for all the other cckfield/field pairs of plugins. There should be a deprecation notice in all the cckfield classes.

There are two known failing tests. /cckfield/d7/LinkCckFieldTest.php and /field/d7/LinkFieldTest.php. They need the constants defined in system.module. What is the proper way to do that?

And lastly, expect copy/paste errors. This got a bit tedious.

Status: Needs review » Needs work

The last submitted patch, 31: 2833206-31.patch, failed testing.

ohthehugemanatee’s picture

I can't figure out why those system.module constants aren't available. I tried changing it to a kernel test, and even explicitly adding "system" to the modules property. The other core tests that use these constants, extend WebTestBase and BrowserTestBase, which is total overkill for this.

I read through the changes and they LOOK good to me. But this is a huge patch. I would trust a machine much more than my own eyes. I know I would have committed after each step, so I could see the diffs for "moved file X" and "modified file X" separately.... @quietone did you do something like that locally? Or is this flat diff basically the only representation we have to work with?

quietone’s picture

Status: Needs work » Needs review
StatusFileSize
new42.61 KB
new13.29 KB

No, sorry. I did this in one go. :-( However, in the interest of getting this done and some learning on my part let's start again.

The first thing is to make a new patch for #27. Why? Because 'diff 2833206-27.patch 2833206-27.patch produces 101 lines of output under "diff -u b/core/modules/file/src/Plugin/migrate/process/d6/FieldFile.php b/core/modules/file/src/Plugin/migrate/process/d6/CckFile.php'. And is just confusing. Making a new patch with '-M' to fix that. Should have the same errors as #27.

Status: Needs review » Needs work

The last submitted patch, 34: 2833206-34.patch, failed testing.

quietone’s picture

Status: Needs work » Needs review
StatusFileSize
new42.74 KB
new670 bytes

Now fix the errors. Just some missing lines in the data provider.

quietone’s picture

StatusFileSize
new57.62 KB
new13.8 KB

There are cckfield/field plugins in file, link, taxonomy and text. The test for text are already complete, and passing tests. That leaves file, link and taxonomy.

This patch add tests for the cckfield and field plugins in the file module.

quietone’s picture

StatusFileSize
new61.8 KB
new5.8 KB

Now add tests for cckfield and field plugins in the taxonomy module and fix coding standard errors found in testing.

Status: Needs review » Needs work

The last submitted patch, 38: 2833206-38.patch, failed testing.

quietone’s picture

Status: Needs work » Needs review
StatusFileSize
new61.86 KB
new3.28 KB

Sigh, various copy/paste errors I missed because I didn't run some tests.

quietone’s picture

StatusFileSize
new69.96 KB
new7.4 KB

Next, add tests to the link module.

Status: Needs review » Needs work

The last submitted patch, 41: 2833206-41.patch, failed testing.

quietone’s picture

Status: Needs work » Needs review
StatusFileSize
new73.82 KB
new4.63 KB

Right so, these errors are the same as way back in patch #31.

This patch adds deprecation notices on all the cckfield plugin classes and removes some extra spaces on a line d7/LinkCckTestphp.

Status: Needs review » Needs work

The last submitted patch, 43: 2833206-43.patch, failed testing.

quietone’s picture

Status: Needs work » Needs review
StatusFileSize
new84.22 KB
new10.05 KB

That is as expected and there are no new errors. The next addition is to move the two tests in the text module. This will put them in the same tree structure as the other tests.

Status: Needs review » Needs work

The last submitted patch, 45: 2833206-45.patch, failed testing.

heddn’s picture

StatusFileSize
new24.14 KB

Needed a re-roll. Doing that first. Next up the test failures.

heddn’s picture

Status: Needs work » Needs review
StatusFileSize
new24.14 KB

Needed a re-roll. Doing that first. Next up the test failures.

heddn’s picture

Status: Needs review » Needs work

Those patches in #47 & #48 are bad. They dropped a LOT of code. Working on that.

heddn’s picture

Status: Needs work » Needs review
StatusFileSize
new84.65 KB
new4.82 KB

OK, the reason for the failures when converting to KTB was that there wasn't a call to parent::setUp(). Here's a fix for that. Let's see how it fairs.

Status: Needs review » Needs work

The last submitted patch, 50: 2833206-50.patch, failed testing.

quietone’s picture

Status: Needs work » Needs review
StatusFileSize
new85.2 KB
new3.28 KB

@heddn, thanks. I've added @legacy to the remaining tests. However, still getting errors on link/tests/src/Kernel/Plugin/migrate/cckfield/d7/LinkCckTest.php. Apparently, @legacy has no effect for KTB?

Status: Needs review » Needs work

The last submitted patch, 52: 2833206-52.patch, failed testing.

quietone’s picture

Status: Needs work » Needs review
StatusFileSize
new85.72 KB
new805 bytes

Missed an @group, and add @group legacy to file/tests/src/Kernel/Migrate/process/d6/CckFileTest.php.

Status: Needs review » Needs work

The last submitted patch, 54: 2833206-54.patch, failed testing.

quietone’s picture

Status: Needs work » Needs review

Test passing now, setting to NR.

jibran’s picture

StatusFileSize
new71.71 KB

With following git config settings:

diff.renames=copies
diff.renamelimit=1500

and to reduce the patch size just reroll the patch.

maxocub’s picture

Assigned: Unassigned » maxocub

Assigning for review

maxocub’s picture

Assigned: maxocub » Unassigned
Status: Needs review » Needs work

Nice work. This is a big patch. I'll certainly miss some things, but here is what I found so far:

1.

+++ b/core/modules/file/src/Plugin/migrate/cckfield/d6/FileField.php
@@ -2,6 +2,10 @@
+@trigger_error('FileField is deprecated in Drupal 8.4.x and will be
+be removed before Drupal 9.0.x. Use \Drupal\file\Plugin\migrate\field\d6\FileField
+instead.', E_USER_DEPRECATED);

+++ b/core/modules/file/src/Plugin/migrate/process/d6/CckFile.php
@@ -2,91 +2,17 @@
+@trigger_error('CckFile is deprecated in Drupal 8.3.x and will be
+be removed before Drupal 9.0.x. Use \Drupal\file\Plugin\migrate\process\d6\FieldFile
+instead.', E_USER_DEPRECATED);

... and other places.
Sometimes it's 8.3.x and other times it's 8.4.x, I think it should be 8.4.x everywhere.

2.

+++ b/core/modules/file/src/Plugin/migrate/process/d6/CckFile.php
@@ -2,91 +2,17 @@
+@trigger_error('CckFile is deprecated in Drupal 8.3.x and will be
+be removed before Drupal 9.0.x. Use \Drupal\file\Plugin\migrate\process\d6\FieldFile
+instead.', E_USER_DEPRECATED);
+
 
 /**
  * @MigrateProcessPlugin(
  *   id = "d6_cck_file"
  * )

Extra line.

3.

+++ b/core/modules/file/src/Plugin/migrate/cckfield/d6/FileField.php
@@ -2,6 +2,10 @@
+@trigger_error('FileField is deprecated in Drupal 8.4.x and will be
+be removed before Drupal 9.0.x. Use \Drupal\file\Plugin\migrate\field\d6\FileField

+++ b/core/modules/file/src/Plugin/migrate/cckfield/d7/FileField.php
@@ -2,6 +2,10 @@
+@trigger_error('FileField is deprecated in Drupal 8.4.x and will be
+be removed before Drupal 9.0.x. Use \Drupal\file\Plugin\migrate\field\d7\FileField

+++ b/core/modules/file/src/Plugin/migrate/cckfield/d7/ImageField.php
@@ -2,6 +2,10 @@
+@trigger_error('ImageField is deprecated in Drupal 8.4.x and will be
+be removed before Drupal 9.0.x. Use \Drupal\file\Plugin\migrate\field\d7\ImageField

... and other places.
Extra 'be', and this will also fix the 80 characters limit.

4.

+++ b/core/modules/file/src/Plugin/migrate/process/d6/CckFile.php
@@ -2,91 +2,17 @@
-class CckFile extends ProcessPluginBase implements ContainerFactoryPluginInterface {
...
+class CckFile extends FieldFile {}

Why this is the only class that we empty and make extend the new class? All the other ones are just copied.

5.

+++ b/core/modules/file/src/Plugin/migrate/cckfield/d6/FileField.php
@@ -2,6 +2,10 @@
+@trigger_error('FileField is deprecated in Drupal 8.4.x and will be
+be removed before Drupal 9.0.x. Use \Drupal\file\Plugin\migrate\field\d6\FileField
+instead.', E_USER_DEPRECATED);
+

+++ b/core/modules/file/src/Plugin/migrate/process/d6/CckFile.php
@@ -2,91 +2,17 @@
+@trigger_error('CckFile is deprecated in Drupal 8.3.x and will be
+be removed before Drupal 9.0.x. Use \Drupal\file\Plugin\migrate\process\d6\FieldFile
+instead.', E_USER_DEPRECATED);
+
 
 /**
  * @MigrateProcessPlugin(
  *   id = "d6_cck_file"
  * )
+ *
+ *  @deprecated in Drupal 8.3.x, to be removed before Drupal 9.0.x. Use
+ * \Drupal\file\Plugin\migrate\process\d6\FieldFile instead.

Why do we sometimes only add the @trigger_error, and other times we add @trigger_error and @deprecated?

6.

+++ b/core/modules/text/src/Plugin/migrate/field/TextField.php
@@ -1,13 +1,13 @@
-namespace Drupal\text\Plugin\migrate\cckfield;
+namespace Drupal\text\Plugin\migrate\field;
 
 use Drupal\migrate\Plugin\MigrationInterface;
 use Drupal\migrate\Row;
-use Drupal\migrate_drupal\Plugin\migrate\cckfield\CckFieldPluginBase;
+use Drupal\migrate_drupal\Plugin\migrate\field\FieldPluginBase;
 
 /**
- * @MigrateCckField(
+ * @MigrateField(
  *   id = "text",
  *   type_map = {
  *     "text" = "text",
@@ -17,7 +17,7 @@

@@ -17,7 +17,7 @@
  *   core = {6,7}
  * )
  */
-class TextField extends CckFieldPluginBase {
+class TextField extends FieldPluginBase {

I know that in #2842222: D7 Plain text fields incorrectly migrated to D8 as Text (formatted) we will need a dedicated D7 TextField plugin. Should we already put this one in the d6 namespace, thus avoiding us to make another copy and have another deprecated class, or will it be ok to just leave it here and just add the new one in the d7 namespace?

7.
After this patch gets in, there will still be some reference to cck in some other places (NodeDerivers, TaxonomyTermDerivers, FieldType process plugin, etc.). This patch being big as it is, I guess we should have a follow up to see where we could and can clean things up.

quietone’s picture

Status: Needs work » Needs review
StatusFileSize
new72.67 KB
new14.75 KB

1. All deprecation notices should now be using 8.4
2. Fixed
3. Fixed
4. TODO
5. Added missing class deprecation notices to deprecated classes.
6. TODO
7. TODO

heddn’s picture

Issue tags: +migrate-d6-d8, +migrate-d7-d8
StatusFileSize
new78.07 KB
new14.55 KB
  1. 59.4: The copies instead of renames is for BC when someone extends the old class. See #24.
    However, we get away with it here, because this is a process plugin. The rest of the changes in here are for field plugins, not process plugins.
  2. 59.6: I've cloned the class and version namespaced it.
  3. 59.7: I've opened up a followup: #2897593: Cleanup further references to CCK
  4. I also cleaned up some of the @deprecated notes to reference the correct replacement classes. There were some copy/pasta errors.
maxocub’s picture

Thanks quietone & heddn, I'll review this more extensively tonight, but in the meantime, there's still some extra 'be' left and 80 characters limit left:

+++ b/core/modules/file/src/Plugin/migrate/process/d6/CckFile.php
@@ -2,91 +2,16 @@
+@trigger_error('CckFile is deprecated in Drupal 8.4.x and will be
+be removed before Drupal 9.0.x. Use \Drupal\file\Plugin\migrate\process\d6\FieldFile

+++ b/core/modules/link/src/Plugin/migrate/cckfield/LinkField.php
@@ -0,0 +1,55 @@
+@trigger_error('LinkField is deprecated in Drupal 8.4.x and will be
+be removed before Drupal 9.0.x. Use \Drupal\link\Plugin\migrate\field\d6\LinkField

+++ b/core/modules/link/src/Plugin/migrate/cckfield/d7/LinkField.php
@@ -0,0 +1,55 @@
+@trigger_error('LinkField is deprecated in Drupal 8.4.x and will be
+be removed before Drupal 9.0.x. Use \Drupal\link\Plugin\migrate\field\d7\LinkField

Status: Needs review » Needs work

The last submitted patch, 61: 2833206-61.patch, failed testing. View results

heddn’s picture

Status: Needs work » Needs review
StatusFileSize
new84.17 KB
new15.76 KB

The 80 character limit doesn't seem to generally apply for trigger_errors. It isn't a comment. But that brings up a good point. We've been line wrapping these, but I don't see that done anywhere else in core.

heddn’s picture

StatusFileSize
new85.48 KB
new2.79 KB

Hopefully this fixes up the tests.

The last submitted patch, 64: 2833206-63.patch, failed testing. View results

Status: Needs review » Needs work

The last submitted patch, 65: 2833206-65.patch, failed testing. View results

heddn’s picture

Status: Needs work » Needs review
StatusFileSize
new85.63 KB
new2.36 KB

Status: Needs review » Needs work

The last submitted patch, 68: 2833206-68.patch, failed testing. View results

quietone’s picture

Status: Needs work » Needs review
StatusFileSize
new86.26 KB
new1.79 KB

This should fix the text tests. Made a d6 and d7 version. I've added a diff and not an interdiff because interdiff output makes no sense at all.

Status: Needs review » Needs work

The last submitted patch, 70: 2833206-70.patch, failed testing. View results

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.0-alpha1 will be released the week of July 31, 2017, which means new developments and disruptive changes should now be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

joelpittet’s picture

phenaproxima’s picture

Assigned: Unassigned » phenaproxima

I'ma fix those broken tests.

phenaproxima’s picture

Status: Needs work » Needs review
StatusFileSize
new87.58 KB

This should fix the broken test.

Status: Needs review » Needs work

The last submitted patch, 75: 2833206-75.patch, failed testing. View results

maxocub’s picture

Status: Needs work » Needs review
StatusFileSize
new87.22 KB
new1.27 KB

Again, this should fix the broken tests.

Status: Needs review » Needs work

The last submitted patch, 77: 2833206-77.patch, failed testing. View results

maxocub’s picture

Status: Needs work » Needs review
StatusFileSize
new87.21 KB
new653 bytes

Oups, missed one.

Related CR: https://www.drupal.org/node/2896537

heddn’s picture

Status: Needs review » Reviewed & tested by the community

Tests fixed. Change record linked. Ready for RTBC again. If its a choice between this or #2896507: Update FieldPluginBase with a default processFieldValues() and getFieldFormatterMap(), I prefer to see this land first. The other one is much easier to re-roll.

maxocub’s picture

Agreed, RTBC +1

catch’s picture

Sorry I missed the comment in #80, would have been better to post it on that issue maybe. Sending for re-test.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 79: 2833206-79.patch, failed testing. View results

maxocub’s picture

Status: Needs work » Needs review
StatusFileSize
new85.94 KB

Re-rolled.

joelpittet’s picture

Assigned: phenaproxima » Unassigned
Status: Needs review » Reviewed & tested by the community

re-RTBC'd. I diffed the diffs to ensure things didn't change in any significant way.

heddn’s picture

Status: Reviewed & tested by the community » Needs work

I'm curious what the missing file is in between these two patches.

#79:
59 files changed, 1234 insertions, 252 deletions.
#84:
58 files changed, 1234 insertions, 220 deletions.

core/modules/migrate_drupal/tests/modules/migrate_field_plugin_manager_test/src/Plugin/migrate/cckfield/d6/FileField.php was in #79.

I think we missed a file.

joelpittet’s picture

Status: Needs work » Needs review
StatusFileSize
new1.01 KB
new99 KB

Sorry, I miss-read that diff change I thought it was removed hunks from an existing deleted file, not a missing deleted file. Here's the change to bring it back to a reroll of #79.

joelpittet’s picture

StatusFileSize
new87.27 KB

Needed the following in my git to get it to look like @maxocub's.

diff.renames=copies
diff.renamelimit=1500
heddn’s picture

Status: Needs review » Reviewed & tested by the community

RTBC now. The only non-context changes were for getFieldFormatterMap, which is what the re-roll was all about. And we're good there now.

catch’s picture

Version: 8.5.x-dev » 8.4.x-dev
Status: Reviewed & tested by the community » Fixed

Committed/pushed to 8.5.x and cherry-picked to 8.4.x. Thanks!

  • catch committed fa6e4b2 on 8.5.x
    Issue #2833206 by quietone, heddn, maxocub, Jo Fitzgerald, joelpittet,...
heddn’s picture

Issue tags: +8.4.0 release notes

I think this deserves a mention in the release notes. Thanks everyone for all the effort on this and the previous issue. A huge effort by all.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

maxocub’s picture

maxocub’s picture