Problem/Motivation

There is no messages about ignored items. It is hard to know what has caused the MigrateSkipRowException.

Steps to reproduce

In a process plugin, Throw a MigrateSkipRowException.

Proposed resolution

This patch log the filepath and the line number where the MigrateSkipRowException has been thrown.

Example :

 drush migrate:messages yapaka_d7_node_complete_livre
 -------------- ------------------- --------------- ----------------------------------------------------------------------------------- 
  Source ID(s)   Destination ID(s)   Level           Message                                                                            
 -------------- ------------------- --------------- ----------------------------------------------------------------------------------- 
  85                                 Avertissement   Ignored item. Exception raised at                                                  
                                                     /var/www/html/web/modules/contrib/migrate_file_to_media/src/Plugin/migrate/proces  
                                                     s/FileIdLookup.php, line 103                                                       
 -------------- ------------------- --------------- ----------------------------------------------------------------------------------- 

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

Comments

charlus created an issue. See original summary.

charlus’s picture

Issue summary: View changes
longwave’s picture

Version: 10.6.x-dev » main
Status: Patch (to be ported) » Needs work

Fixing status - this will need to be converted to a merge request against the main branch for review.