- Issue created by @pcate
- π©πͺGermany jurgenhaas Gottmadingen
Can we get a list of tokens for each event? That's required to move forward with this one.
- π©πͺGermany jurgenhaas Gottmadingen
@PCate I'd be happy to address this for the forthcoming ECA 2 release. However, I'd need your help as I don't have an overview of which data would be required for which of the migration events. Could you please provide me with some input on this?
- πΊπΈUnited States pcate
@jurgenhaas happy to help if I can. Would something like the following be helpful?
Name:
migrate.pre_import
Description: Fired when beginning a migration import operation.
Tokens:
migration
: The migration entity being run.Name:
migrate.idmap_message
Description: Fired when saving a message to the ID map.
Tokens:
migration
: The migration entity being run.
source_id_values
: The source ID values.
message
: The message to be logged.
level
: The severity level of the message.If this is the information you are looking for, I should be able to provide a list of these.
- π©πͺGermany jurgenhaas Gottmadingen
@PCate yes, that looks like what's needed. I guess, most of the "tokens" are read-only and a few (e.g. "row") might be modifiable, right?
- πΊπΈUnited States pcate
@jurgenhaas below is the list of relevent tokens/events.
Name:migrate.pre_import
Description: Fired when beginning a migration import
operation.Tokens:migration
: The migration entity being run.
Name:migrate.post_import
Description: Fired when finishing a migration import
operation.Tokens:migration
: The migration entity being run.
Name:migrate.map_save
Description: Fired when saving to a migration's map.Tokens:map
: The map plugin that caused the event to fire.fields
: Array of map fields, keyed by field name.
Name:migrate.map_delete
Description: Fired when removing an entry from a
migration's map.Tokens:map
: The map plugin that caused the event to fire.source_id
: The source ID values.
Name:migrate.pre_row_save
Description: Fired when about to import a single item.Tokens:migration
: The migration entity being run.row
: The row about to be imported.
Name:migrate.post_row_save
Description: Fired just after a single item has been
imported.Tokens:migration
: The migration entity being run.row
: The row just saved.destination_id_values
: The row's destination ID.
Name:migrate.pre_rollback
Description: Fired when beginning a migration rollback
operation.Tokens:-
migration
: The migration entity that will be rolled back.
Name:migrate.post_rollback
Description: Fired when finishing a migration rollback
operation.Tokens:-
migration
: The migration entity that was just rolled
back.
Name:migrate.pre_row_delete
Description: Fired when about to delete a single item.Tokens:-
migration
: The migration entity that was just rolled
back. row
: The row to be deleted.
Name:migrate.post_row_delete
Description: Fired just after a single item has been
deleted.Tokens:migration
: The migration entity being run.destination_id_values
: The row's destination ID.
Name:migrate.idmap_message
Description: Fired when saving a message to the ID map.Tokens:migration
: The migration entity being run.source_id_values
: The source ID values.message
: The message to be logged.level
: The severity level of the message.
- πΊπΈUnited States pcate
I guess, most of the "tokens" are read-only and a few (e.g. "row") might be modifiable, right?
@jurgenhaas, I would expect the "pre/save" events would have modifiable tokens, but the "post/delete" ones would not?
- π©πͺGermany jurgenhaas Gottmadingen
I would expect the "pre/save" events would have modifiable tokens, but the "post/delete" ones would not?
That sounds reasonable, yes.
-
jurgenhaas β
committed 95345be8 on 2.0.x
Issue #3376172 by PCate, jurgenhaas: Provide relevant tokens to migrate...
-
jurgenhaas β
committed 95345be8 on 2.0.x
- Status changed to Needs review
7 months ago 10:44am 19 May 2024 - π©πͺGermany jurgenhaas Gottmadingen
I have implemented support for those tokens, please review.
- Status changed to RTBC
7 months ago 2:00pm 22 May 2024 - Status changed to Fixed
7 months ago 2:04pm 22 May 2024 - π©πͺGermany jurgenhaas Gottmadingen
Perfect, thank you. Now we're down to just 1 issue before we can go beta ;-) I'm on it.
Automatically closed - issue fixed for 2 weeks with no activity.