- Issue created by @benjifisher
- πΊπΈUnited States benjifisher Boston area
Another possibility: the current code both deprecates calling
getMigrationDependencies()
with the$expand
parameter and ignores that parameter if it is provided. Maybe we should deprecate it but not ignore it. Then a contrib module could callgetMigrationDependencies(FALSE)
to avoid the recursion.We might do this in addition to the proposed resolution in the issue summary.
- Merge request !8962Add methods addRequiredDependencies(), addOptionalDependencies() β (Open) created by benjifisher
- Status changed to Needs review
5 months ago 3:03am 29 July 2024 - Issue was unassigned.
- π¬π§United Kingdom catch
This looks fine to me, adding to the interface should be OK under the 1-1 rule, but is the intention to backport this to 11.0/10.4 too? If so it might make sense to be extra extra cautious.
- πΊπΈUnited States benjifisher Boston area
... is the intention to backport this to 11.0/10.4 too?
I think that calling
getMigrationDependencies(FALSE)
is deprecated in 10.4.x but triggers an error in 11.0.x, so I would like to backport this to the 11.0.x branch. Or maybe it is only deprecated in 11.x, so module maintainers remove it so their tests can pass, but then they get the infinite loop. One way or another, it is worse in 11.x (and probably 11.0.x) than in 10.4.x.From the issue summary:
For BC reasons, do not add the new methods to the interface in this issue, but add them in a follow-up issue or in the parent issue.
- Status changed to Needs work
4 months ago 4:08pm 31 August 2024 - πΊπΈUnited States smustgrave
Left some nitpicky threads on the MR.
But for the new methods should a CR be written.
With my limited migration eyes the rest looks good though.
- First commit to issue fork.
- Status changed to Needs review
4 months ago 3:11am 2 September 2024 - π³πΏNew Zealand quietone
The test failure is MigrateNoMigrateDrupalTest.php which is soon to be fixed by π MigrateNoMigrateDrupalTest fails with missing classes in certain situations Fixed .
I added a CR, applied existing suggestions, and added 2 of my own.
- πΊπΈUnited States benjifisher Boston area
I added an example to the CR based on the changes in
core/modules/migrate_drupal/src/Plugin/migrate/field/ReferenceBase.php
.The code changes look good to me, but I cannot declare the issue RTBC since I did the initial work on the PR. Since I extracted the new code from the old work on the parent issue, it is not surprising that I missed the return-type declarations. I am surprised that my initial version passed static analysis. I guess that is because many existing functions do not have return-type declarations, so we do not require them in static analysis.
- πΊπΈUnited States smustgrave
1) Drupal\Tests\migrate\Functional\MigrateNoMigrateDrupalTest::testExecutionNoMigrateDrupal Behat\Mink\Exception\ResponseTextException: The text "Migration was successful." was not found anywhere in the text of the current page. /builds/project/drupal/vendor/behat/mink/src/WebAssert.php:907 /builds/project/drupal/vendor/behat/mink/src/WebAssert.php:293 /builds/project/drupal/core/tests/Drupal/Tests/WebAssert.php:979 /builds/project/drupal/core/modules/migrate/tests/src/Functional/MigrateNoMigrateDrupalTest.php:50 FAILURES!
May be related?
- π³πΏNew Zealand quietone
Although it is a migration test it is not related to the additions made here.
Unfortunately, I can't RTBC this either as I wrote much of the code in the originating issue this was taken from, π [PP-1] Deprecate Migration::set() Postponed .
- Status changed to RTBC
4 months ago 2:14pm 3 September 2024 - πΊπΈUnited States smustgrave
Did another lap and believe all feedback has been addressed.
- Status changed to Needs work
3 months ago 12:01pm 11 September 2024 - π¬π§United Kingdom alexpott πͺπΊπ
MigrateNoMigrateDrupalTest::testExecutionNoMigrateDrupal is failing.
- Status changed to RTBC
3 months ago 1:01am 12 September 2024 - πΊπΈUnited States benjifisher Boston area
I rebased on the current 11.x branch. In particular, the feature branch now includes the fix for π MigrateNoMigrateDrupalTest fails with missing classes in certain situations Fixed . As @quietone predicted (#10, #13), that fixes the failing test.
Given that I did not do any new coding, I am making an exception to the usual practice: back to RTBC.
The Needs Review Queue Bot β tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide β to find step-by-step guides for working with issues.
- πΊπΈUnited States benjifisher Boston area
I added the missing return types in the unit test (
void
for the test methods andarray
for the data providers). Back to NR. - πΊπΈUnited States smustgrave
Believe feedback for this one has been addressed, around test failure and review bot.