Support from Acquia helps fund testing for Drupal Acquia logo

Comments

fastangel’s picture

Assigned: Unassigned » fastangel

working on this.

fastangel’s picture

Status: Active » Needs review
FileSize
5.45 KB

Attach the patch. I only found a one variable to map. The problem is that drupal 6 has two default format and d8 not.

chx’s picture

Title: Variable to config: filter.settings » Variable to config: filter.settings [D7 only]
Status: Needs review » Postponed

As discussed on IRC: this is D7.

eliza411’s picture

Project: IMP » Drupal core
Version: » 8.x-dev
Component: Code » migration system
Assigned: fastangel » Unassigned

Moving to the core queue to consolidate issues now that we're doing all the work there.

eliza411’s picture

Project: Drupal core » IMP
Version: 8.x-dev »
Component: migration system » Code
Issue summary: View changes
Status: Postponed » Active
Parent issue: #2125745: [meta] Variables to config migration [D6] » #2181257: [meta] Variables to config migration [d7]
David Hernández’s picture

Assigned: Unassigned » David Hernández
Issue tags: +D8SVQ, +SprintWeekend2014

Working on this

David Hernández’s picture

Assigned: David Hernández » Unassigned
Status: Active » Needs review
FileSize
3.17 KB

First try for filter settings on D7. The filter.settings.yml has a second variable (always_show_fallback_choice) but I think it doesn't have a mapping from D7, so I haven't included it.

michaellenahan’s picture

I have tried rerolling this. Patch attached.
The tests aren't working on my local, output attached. Want to see if it's just me.
The output complains when this gets called.

Drupal\migrate\Entity\Migration->getProcessNormalized('fallback_format:filter_fallback_format')

it says

Argument 1 passed to Drupal\migrate\Entity\Migration::getProcessNormalized()
must be of the type array, string given

but I can't work out where I have gone wrong.

EDIT: a reinstall fixed it. The value fallback_format:filter_fallback_format was being cached.
In d7_filter_settings.yml a space is needed after the colon in "d7_filter_settings.yml"

michaellenahan’s picture

FileSize
3.13 KB

Here's the patch with the missing space after the colon added.

David Hernández’s picture

Status: Needs review » Needs work
+++ b/core/modules/migrate_drupal/lib/Drupal/migrate_drupal/Tests/d7/MigrateFilterFormatsTest.php
@@ -0,0 +1,49 @@
+ * @file
+ * Contains \Drupal\migrate_drupal\Tests\d7\MigrateFilterFormats.
+ */

Shouldn't this be Drupal\migrate_drupal\Tests\d7\MigrateFilterFormatsTest ?

The rest of the patch looks correct and the tests are passing.

David Hernández’s picture

Status: Needs work » Needs review
FileSize
3.14 KB
michaellenahan’s picture

Status: Needs review » Reviewed & tested by the community

Thanks David. Sorry for not getting to this. Confirming the fix to the comment.

jcost’s picture

Project: IMP » Drupal core
Version: » 8.0.x-dev
Component: Code » migration system
Status: Reviewed & tested by the community » Needs work

Will need to be submitted again to Core since moving from sandbox.

phenaproxima’s picture

This patch should be updated for HEAD and merged into the parent issue.

phenaproxima’s picture

Status: Needs work » Needs review
FileSize
0 bytes
phenaproxima’s picture

Status: Needs review » Needs work

Zero-byte patch?!?

phenaproxima’s picture

Status: Needs work » Needs review
FileSize
1.96 KB
phenaproxima’s picture

FileSize
1.92 KB

Re-rolled.

Status: Needs review » Needs work

The last submitted patch, 18: 2130277-18.patch, failed testing.

phenaproxima’s picture

Status: Needs work » Needs review
FileSize
1.92 KB

Changed test group.

phenaproxima’s picture

phenaproxima’s picture

Status: Needs review » Needs work

Filter settings are soon to be container parameters (#2529514: Replace system.filter::protocols with container parameters), so this needs to be rewritten for that.

phenaproxima’s picture

quietone’s picture

Issue tags: +migrate-d7-d8, +Needs reroll
alvar0hurtad0’s picture

Status: Needs work » Needs review
Issue tags: -Needs reroll
FileSize
1.73 KB

Here's the reroll

Status: Needs review » Needs work

The last submitted patch, 25: variable_to_config-2130277-25.patch, failed testing.

quietone’s picture

@alvar0hurtad0, thx for the reroll. The migrations have moved to the individual modules. So this goes to the filter module. There is an existing migration there, d7_filter_format, that can be used for reference.

+++ b/core/modules/migrate_drupal/src/Tests/d7/MigrateFilterSettingsTest.php
@@ -0,0 +1,36 @@
+    $this->loadDumps(['Variable.php']);

Can be removed. The test fixture is loaded in the parent.

+++ b/core/modules/migrate_drupal/migration_templates/d7_filter_settings.yml
@@ -0,0 +1,17 @@
+dependencies:
+  module:
+    - filter
+    - migrate_drupal

This shouldn't be needed either.

Version: 8.0.x-dev » 8.1.x-dev

Drupal 8.0.6 was released on April 6 and is the final bugfix release for the Drupal 8.0.x series. Drupal 8.0.x will not receive any further development aside from security fixes. Drupal 8.1.0-rc1 is now available and sites should prepare to update to 8.1.0.

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

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

Drupal 8.1.9 was released on September 7 and is the final bugfix release for the Drupal 8.1.x series. Drupal 8.1.x will not receive any further development aside from security fixes. Drupal 8.2.0-rc1 is now available and sites should prepare to upgrade to 8.2.0.

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

iMiksu’s picture

Issue tags: +Novice

Comments given in #27 sounds novice.

hardikpandya’s picture

Assigned: Unassigned » hardikpandya
hardikpandya’s picture

Assigned: hardikpandya » Unassigned
Status: Needs work » Needs review
FileSize
1.69 KB
623 bytes

Adding patch.

Status: Needs review » Needs work

The last submitted patch, 32: 2130277-32.patch, failed testing.

iMiksu’s picture

Issue tags: +DCampBaltics

We'll today check why tests are failing.

jofitz’s picture

Move files to correct locations.

phenaproxima’s picture

Assigned: Unassigned » phenaproxima

Self-assigning for review.

mikeryan’s picture

Status: Needs review » Needs work
+++ b/core/modules/filter/tests/src/Kernel/Migrate/d7/MigrateFilterSettingsTest.php
@@ -0,0 +1,32 @@
+    $this->assertSame('plain_text', \Drupal::config('filter.settings')->get('fallback_format'));

This should use $this->config() rather than \Drupal::config().

Otherwise, looks good.

jofitz’s picture

Assigned: phenaproxima » Unassigned
Status: Needs work » Needs review
Issue tags: -Novice
FileSize
729 bytes
2.27 KB

Use $this->config() rather than \Drupal::config().

mikeryan’s picture

Status: Needs review » Reviewed & tested by the community

Looks good, thanks!

  • catch committed da0c4fa on 8.3.x
    Issue #2130277 by phenaproxima, michaellenahan, Jo Fitzgerald, David...
catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed/pushed to 8.3.x and cherry-picked to 8.2.x. Thanks!

  • catch committed b912db1 on 8.2.x
    Issue #2130277 by phenaproxima, michaellenahan, Jo Fitzgerald, David...

Status: Fixed » Closed (fixed)

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