Move forum related logic from taxonomy migrations to new forum migrations

Created on 5 October 2017, over 6 years ago
Updated 22 January 2024, 5 months ago

Problem/Motivation

Follow-up to two Forum related issues

Clean Forum specific logic from Term migrations

From comment #56 β†’ :

Separately, it feels super grody to the max and decidedly un-tubular and non-radical to shove a bunch forum logic in the taxonomy term migrations. Maybe we could also get a non-critical follow-up to make Forum a sub-class of Term so we can better encapsulate the one-off logic here.

And comment #59 β†’ :

I'm wondering if the forum migration could be a secondary migration (i.e. allow taxonomy to migrate the terms, then have forum get the forum/container metadata from the source site, load the terms already migrated and save the field values etc.).

Clean Forum specific logic from Vocabulary migrations

From comment #18 β†’

We should open a follow-up to move this logic into a Forum-specific variant of this plugin. Forum could even swap in its own implementation of the plugin (using the ol' plugin hijacking technique) which implements this logic.

And comment #13 🌱 [Meta] Handle forum migrations not in the forum module for deprecating forum Fixed

Move the process plugin from Taxonomy to Forum.
Set the forum_vocabulary source property somewhere other than the d6_taxonomy_vocabulary and d7_taxonomy_vocabulary source plugins. I am not sure what the best way is, but we must have an event or an alter hook that lets us modify a row.
Implement hook_migration_plugins_alter() to insert the process plugin into 6 migrations, and remove the corresponding step from those migrations.

I am not sure it is worth the effort, but it would have the effect of simplifying the code that is left behind when we remove the Forum module.

Similar: the code related to the is_container source property (set in the d7_taxonomy_term and d7_taxonomy_term_entity_translation source plugins) and the forum_container taxonomy field (boolean?) should be moved to the Forum module

Steps to reproduce

Proposed resolution

Make a migration test fixture in the forum module and use that for all the forum migration tests.
Remove the use of the process plugin, forum_vocabulary, from taxonomy migrations.
Create migration tests in the forum module for taxonomy

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ“Œ Task
Status

Fixed

Version

11.0 πŸ”₯

Component
MigrationΒ  β†’

Last updated about 19 hours ago

Created by

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.

Production build 0.69.0 2024