Migrate a fivestar field from 7 to 8

Created on 20 May 2020, almost 5 years ago
Updated 17 August 2024, 8 months ago

Some questions about error message when I run :
drush migrate:import --tag=Configuration --execute-dependencies
Attempt to create a field storage field_formation_interet with no type
I have a fivestar field on a node and I can't migrate into a field because I can't figure out the target?
Is there a patch for migrate module ?

Feature request
Status

Needs work

Version

1.0

Component

Code

Created by

🇫🇷France zorax Monoblet

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Open in Jenkins → Open on Drupal.org →
    Core: 9.5.x + Environment: PHP 8.0 & MySQL 5.7
    last update over 1 year ago
    4 pass
  • Open in Jenkins → Open on Drupal.org →
    Core: 9.5.x + Environment: PHP 7.4 & MySQL 8
    last update over 1 year ago
    4 pass
  • Status changed to Needs work over 1 year ago
  • heddn Nicaragua
    1. +++ b/fivestar.module
      @@ -352,3 +352,25 @@ function template_preprocess_fivestar_summary(array &$variables) {
      +    foreach (['d7_vote_type', 'fivestar_vote_type'] as $provisioned_dep) {
      

      Instead of looking for specific named migrations, can we look for migrations that have a source plugin of fivestar_vote_type?

    2. +++ b/fivestar.module
      @@ -352,3 +352,25 @@ function template_preprocess_fivestar_summary(array &$variables) {
      +      $migrations[$plugin_id]['migration_dependencies']['required'][] = $provisioned_dep;
      

      Also, instead of using required, can we use optional? Required makes all votes, well, required. And what if we want to filter out a few of the votes? Then the requirement won't be met. Better to influence the order by using optional but not require.

    3. +++ b/src/Plugin/migrate/process/FivestarVoteType.php
      @@ -0,0 +1,33 @@
      +    $this->configuration['migration'] = ['d7_vote_type'];
      

      Let's make this additive in case someone has provided a migration configuration for another migration instead of this specific name.

  • 🇩🇪Germany marc.bau

    RTBC. Migration simply works with the patch (not without) and field is taken over from D7 to D10.

Production build 0.71.5 2024