- last update
over 1 year ago 50 pass - πΊπΈUnited States DamienMcKenna NH, USA
Rerolled to adjust for some fuzz.
- πΊπΈUnited States DamienMcKenna NH, USA
Might one of the maintainers be willing to review this and provide feedback, especially around requirements for getting this committed? Thank you.
- last update
9 months ago Patch Failed to Apply - πΊπΈUnited States dan612 Portland, Maine
Patch is failing to apply for me on Drupal 10.2.3 + 8.x-1.12 -- rerolling
- Status changed to Needs work
9 months ago 5:54pm 1 March 2024 - π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
#27: Right β we only need
MigratePathautoTest
to pass on1.12
for this to be incorporated into π D10: Update recommendation for Pathauto (drupal/pathauto) Needs work .(There seems to be little point in making this work against
8.x-1.x
because it's been green multiple times over the past few years and the maintainer hasn't committed it.)We can't ask DrupalCI or GitLab CI to test against a specific tag very easily, so just sharing the output of running the test suite locally will suffice π
- π¨πSwitzerland berdir Switzerland
> (There seems to be little point in making this work against 8.x-1.x because it's been green multiple times over the past few years and the maintainer hasn't committed it.)
The issue wasn't RTBC for 2 years.
I'm still confused about the focus on this, soon enough forum won't even be in core anymore. It's literally a 1000 lines of code (that I'll have to maintain and keep working forever) to migrate what's essentially a single pattern for the few sites that are using forum module that will usually take a few minutes to set up again. A lot of that is tests but still. I've spent quite some time on fixing Migrate tests in various modules already for D9/D10 compatibility and it's one thing if there's data involved that would actually be a lot of work, but for something like pathauto, I'm struggling to see the benefit.
I've personally never did a ull 1:1 migration of a D7 project. If people see a benefit in maintaining migrations for this, then it might be better suited in a separate project?
+++ b/src/Plugin/migrate/process/PathautoPatternSelectionCriteria.php @@ -0,0 +1,51 @@ + return [ + [ + 'id' => ($entity_type == 'node') ? 'node_type' : 'entity_bundle:' . $entity_type, + 'bundles' => [$bundle => $bundle],
this is outdated and doesn't work anymore on D10. node_type no longer exists.
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
Oh yes, sorry β it was not meant in a negative way at all. I think it's fine that it's up to us to keep maintaining this ππ
(This is meant for those people for whom writing the code/YAML files to use the Drupal core migration system is unrealistic.)
- πΊπΈUnited States dan612 Portland, Maine
Attaching reroll with updates to tests to avoid the following errors:
PHP Fatal error: Declaration of Drupal\Tests\pathauto\Kernel\Migrate\d7\MigratePathautoTest::setUp() must be compatible with Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase::setUp(): void in /app/docroot/modules/contrib/pathauto/tests/src/Kernel/Migrate/d7/MigratePathautoTest.php on line 91 Drupal\Tests\pathauto\Kernel\Migrate\d7\MigratePathautoTest::testPathautoMigrations with data set "Disabled forum on source site" (false) Error: Call to undefined function Drupal\Tests\pathauto\Kernel\Migrate\d7\drupal_get_path()
- πΊπΈUnited States jienckebd
Hey Dan!! I know you.
The node_type condition plugin was deprecated since Drupal 9.3 β in favor of a generalized entity_bundle:* condition plugin.
This pathauto issue β applies this change to 1.x branch.
The patch in this issue still references the removed node_type condition plugin and results in test failures.
The attached patch replaces references to the node_type condition plugin with references to the generalized entity_bundle:node condition plugin.
- πΊπΈUnited States jienckebd
It seems that this issue π Custom aliases (which are not generated with the actual patterns) can be lost during the migration Needs review combines 4 pathauto 1.x issues including this one. So I applied the same change to that issue to make the combined patch pass tests.
- First commit to issue fork.