- Issue created by @zniki.ru
- π·πΊRussia zniki.ru
Fixed most of the errors.
Still have issue during migration test:1) Drupal\Tests\metatag\Kernel\Migrate\d7\MetatagEntitiesTest::testMetatag Missing bundle entity, entity type node_type, entity id test_content_type. (/builds/issue/metatag-3413633/web/core/lib/Drupal/Core/Entity/EntityType.php:891) Failed asserting that two strings are equal. --- Expected +++ Actual @@ @@ -'status' +'error' /builds/issue/metatag-3413633/vendor/phpunit/phpunit/src/Framework/Constraint/Equality/IsEqual.php:94 /builds/issue/metatag-3413633/web/core/modules/migrate/tests/src/Kernel/MigrateTestBase.php:201 /builds/issue/metatag-3413633/web/core/modules/migrate/src/MigrateExecutable.php:508 /builds/issue/metatag-3413633/web/core/modules/migrate/src/MigrateExecutable.php:273 /builds/issue/metatag-3413633/web/core/modules/migrate/tests/src/Kernel/MigrateTestBase.php:177 /builds/issue/metatag-3413633/web/core/modules/migrate/tests/src/Kernel/MigrateTestBase.php:190 /builds/issue/metatag-3413633/tests/src/Kernel/Migrate/d7/MetatagEntitiesTest.php:96 /builds/issue/metatag-3413633/vendor/phpunit/phpunit/src/Framework/TestResult.php:728
Made debug and issue happens during import 'd7_metatag_field_instance', and fail happen at EntityConfigBase::import line 145
if (!$this->isTranslationDestination()) { $entity->save(); }
Not sure how to fix it.
I think tests need to be refactored there are tons of places where setup happens in the test case, instead of setUp method.
And fields can be created directly from code, no need to use UI to create them. - Issue was unassigned.
- π·πΊRussia zniki.ru
It would be great if someone can help with migrations.
- last update
12 months ago 109 pass, 1 fail - last update
12 months ago 109 pass, 1 fail - last update
12 months ago 109 pass, 1 fail - last update
12 months ago 109 pass, 1 fail - π·πΊRussia zniki.ru
@cmlara give me some advices and I was able to run tests on D9.
Should we fix them? - πΊπΈUnited States DamienMcKenna NH, USA
I'm not worried about running tests against D9 anymore.
- π·πΊRussia zniki.ru
You are just in time. Thanks for the feedback. I will disable testing for D9 in MR.
I still have no clue how to fix
Drupal\Tests\metatag\Kernel\Migrate\d7\MetatagEntitiesTest::testMetatag
I believe this is related to the
node_type
has been replaced byentity_bundle:node
. #1932810: Add entity bundles condition plugin for entities with bundles β . - last update
12 months ago 109 pass, 1 fail - πΊπΈUnited States DamienMcKenna NH, USA
This is critical as it's blocking other issues.
- Assigned to zniki.ru
- Issue was unassigned.
- π¦πΊAustralia mingsong π¦πΊ
DamienMcKenna β credited Mingsong β .
- πΊπΈUnited States DamienMcKenna NH, USA
From Mingsong in π Drupal 10.2.x compatibility Closed: duplicate :
Since Drupal 10.2.0, the FieldStorageConfigEditForm is now rendered as a subform within FieldConfigEditForm.
It is no longer sufficient to rely solely on hook_field_storage_config_update to update the field configuration entity when changes are made to field storage.
Details see the Drupal core change log in
https://www.drupal.org/node/3386675 βProposed resolution
Move the logic implemented by metatag_form_field_storage_config_edit_form_alter() at line 76 in metatag.module to metatag_form_field_config_edit_form_alter().
- π¦πΊAustralia mingsong π¦πΊ
Thanks @Damien,
According to my quick local test.
The cardinality box is still hiding as what it looked like in Drupal 10.1
- Status changed to Needs review
10 months ago 4:14pm 19 February 2024 - last update
10 months ago PHPLint Failed - last update
10 months ago 109 pass, 1 fail The last submitted patch, 16: metatag-n3413633-16.patch, failed testing. View results β
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.- Assigned to DamienMcKenna
- Status changed to Needs review
10 months ago 6:59pm 19 February 2024 - last update
10 months ago 110 pass -
DamienMcKenna β
committed 32700194 on 2.0.x authored by
Nikolay Shapovalov β
Issue #3413633 by Nikolay Shapovalov, DamienMcKenna, Mingsong: Fix tests...
-
DamienMcKenna β
committed 32700194 on 2.0.x authored by
Nikolay Shapovalov β
- πΊπΈUnited States DamienMcKenna NH, USA
fistpump.gif
Committed. Thank you all!
- Issue was unassigned.
- Status changed to Fixed
10 months ago 10:50pm 19 February 2024 Automatically closed - issue fixed for 2 weeks with no activity.