Hello all, it’s time for the weekly migration subsystem meeting. The meeting will take place in slack in various threads
This meeting:
➤ Is for core migrate maintainers and developers and anybody else in the community with an interest in migrations
➤ Usually happens every Thursday and alternates between 1400 and 2100 UTC.
➤ Is done on the #migration channel in Drupal Slack (see www.drupal.org/slack for information).
➤ Happens in threads, which you can follow to be notified of new replies even if you don’t comment in the thread. You may also join the meeting later and participate asynchronously!
➤ Has a public agenda anyone can add to. See the parent issue for an idea of the typical agenda.
➤*Transcript will be exported and posted* to the agenda issue. For anonymous comments, start with a :bust_in_silhouette: emoji. To take a comment or thread off the record, start with a :no_entry_sign: emoji.

Core migration issues

Video meeting 2022-10-13 2100Z (tentative)

The hope is that most or all of the maintainers will attend. We will try to focus on longer-term goals than in the weekly meeting.

0️⃣ Who is here today?

bsnodgrass (he/him) bsnodgrass from St Charles IL, far western burbs of Chicago on a beautiful weather day! Lurking mostly
benjifisher I am near Boston. We also have a warm, sunny day today.
quietone Oops, I overslept
Warped Dave in Chicago. Just dropping in to say that I read all the meetings, but don't usually register here unless I see something I can add. And probably others doing the same. So keep up the great work.

1️⃣ What should we talk about today? Suggest topics here and I will add threads. I will also check for comments on the issue for today’s meeting.

benjifisher Last week (after the usual hour for the meeting) @damienmckenna asked about #3079275: Custom aliases (which are not generated with the actual patterns) can be lost during the migration and related issues.

2️⃣ Action items. To be added later.

3️⃣ Statistics

mikelutz (he/him) https://docs.google.com/spreadsheets/d/1o0Rjlc1vnnLP5bM5P-SMMyGzqn7258hi...
mikelutz (he/him) Fixed since last meeting, 1
mikelutz (he/him) RTBC: 6, 1 crit, 2 Major
mikelutz (he/him) NR: 9, no crit, no major, 3 over 1 month old

4️⃣ Comment in this thread if you are looking for ways to help. Give us some idea of what you would like to do: documentation, code review, testing, project management, ...

bsnodgrass (he/him) I would be open to some testing and documentation tasks. Not a coder, so limited to site building and command line using Drush. (edited)

5️⃣ Previous minutes.

mikelutz (he/him) #3302133: [meeting] Migrate Meeting 2022-08-11 1400Z
benjifisher I just installed Chromium and the meeting-parser plugin on my laptop. I will add a transcript of the meeting.
benjifisher Done. The issue is now NR.

6️⃣ Announcements

7️⃣ Use SourcePluginBase::getSourceModule() in DrupalSqlBase::checkRequirements()

mikelutz (he/him) #3176393: Use SourcePluginBase::getSourceModule() in DrupalSqlBase::checkRequirements()
mikelutz (he/him) In NR for over a month
benjifisher I am looking at it.
benjifisher I have a question. The original code uses $this->pluginDefinition['source_module'] (after checking that it is not empty). The patch replaces it with $this->getSourceModule(), which first checks the configuration (of the source plugin) and then falls back to the plugin definition.
Do we care about that difference? If so, should we add a test for this change?
benjifisher Example: the d7_node source plugin declares source_module = "node" in its annotation. That is the plugin definition. When a migration uses that source plugin, it can add source_module: something_else to the configuration. As far as getSourceModule() is concerned, that will override the plugin definition.
What is the use case for overriding the plugin definition? Or supplying the source module if the plugin definition forgets to include it?
benjifisher The issue is confusing. The original IS and the patch in #2 added the public method getMinimumSchemaVersion(). That was removed in #7.
@quietone, do you remember doing that? It was about 18 months ago.
Comment #4 suggests adding getMinimumSchemaVersion() to DrupalSqlBase instead of SourcePluginBase. That makes sense. Did we remove it instead of moving it?
quietone :eyes:
quietone There is nothing to move. That was a new method being added in the first patch Threre is already \Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase::getModuleSchemaVersion which gets the schema version from the source database.
quietone I commented on the issue.

8️⃣ Add checkRequirements to the source plugin test MigrateSqlSourceTestBase

mikelutz (he/him) #3084370: Add checkRequirements to the source plugin test MigrateSqlSourceTestBase
mikelutz (he/him) In NR for over a month

9️⃣ Remove requirements array from RequirementsException message

mikelutz (he/him) #3254986: Remove requirements array from RequirementsException message
mikelutz (he/him) Been needing a review for over a month (edited)
Matroskeen Yes, please! When it's RTBC, we can also unblock an MR that does the same in Drush: https://github.com/drush-ops/drush/pull/505 (edited)
mikelutz (he/him) Well, I said it was fine before the rebase, apparently, so I guess I should trust myself..

🔟 Pathauto migrations

mikelutz (he/him) @damienmckenna requested last week. I don't deal much with contrib module migrations, and we don't have any pathauto maintainers that attend this meeting. I know I've always just written pathauto stuff into my content migrations in projects that require it.
xurizaemon What was the request / topic?
Last I checked we use a couple of patches to set entity->isUpdating (or similar) and Pathauto was able to behave. Pathauto's peculiar in that it stores data relating to the node in key value store,
@damienmckenna what can we do to improve this - docs, better support, get something landed in Pathauto?
bsnodgrass (he/him) #3079275: Custom aliases (which are not generated with the actual patterns) can be lost during the migration
mikelutz (he/him) https://drupal.slack.com/archives/C226VLXBP/p1660245705483549?thread_ts=...
mikelutz (he/him) He posted a couple pathauto issues in that thread.
xurizaemon Thanks!
bsnodgrass (he/him) Just for my understanding, aren't contrib migrations put into the target version contrib module? or am I mistaken?
xurizaemon That'd be my expectation, except where sometimes there's no destination contrib module for various reasons.
xurizaemon I'm recalling (so ... sorry if catching up here) but I think Pathauto needed the ability to determine if an entity was currently being modified in order to correctly do its magic, and in that case there was a core change required to provide the interface.

1️⃣1️⃣ Wrap up

mikelutz (he/him) Keep the discussion going,  see you all next week.
benjifisher Thanks, Mike!

Comments

benjifisher created an issue. See original summary.

quietone credited mikelutz.

quietone’s picture

Issue summary: View changes
quietone’s picture

Status: Active » Needs review
benjifisher’s picture

Status: Needs review » Fixed

I checked that the threads had the correct number of comments, and I reviewed the issue credits. LGTM

Status: Fixed » Closed (fixed)

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