Upgrade to Commerce 3.0.x

Created on 4 September 2024, 5 months ago
Updated 27 December 2024, about 1 month ago

Problem/Motivation

Commerce has defaulted to 3.0.x

Proposed resolution

Update composer.json

Remaining tasks

Check for incompatibilities

Feature request
Status

Active

Version

2.0

Component

Code

Created by

🇮🇹Italy viappidu

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @viappidu
  • Merge request !22Update composer.json → (Merged) created by tonytheferg
  • First commit to issue fork.
  • Also noticing some deprecations, note to self, see for backwards compatibility:
    https://www.drupal.org/project/search_api_autocomplete/issues/3442321 🐛 Fix call to deprecated method renderPlain() Fixed

  • Also seeing this in tests:
    Drupal\Core\Config\Schema\SchemaIncompleteException: Schema errors for views.view.commerce_vado_groups with the following errors: views.view.commerce_vado_groups:display.default.display_options.arguments.product_id.default_argument_skip_url missing schema

  • For:

     ------ ---------------------------------------------------------------------- 
      Line   src/Form/VadoManagementForm.php                                       
     ------ ---------------------------------------------------------------------- 
      59     Method Drupal\Core\Form\ConfigFormBase::__construct() invoked with 1  
             parameter, 2 required.                                                
     ------ ---------------------------------------------------------------------- 

    See:
    https://www.drupal.org/project/paragraphs_report/issues/3472669 📌 Drupal 11 Compatibility Fixed

  • Getting better.

    Test results:

    There were 2 failures:
    1) Drupal\Tests\commerce_vado\Functional\VadoCartTest::testSyncQuantityOn
    Behat\Mink\Exception\ElementNotFoundException: Form field with id|name|label|value "edit-settings-container-hide-parent-zero-price" not found.
    /builds/project/commerce_vado/vendor/behat/mink/src/WebAssert.php:731
    /builds/project/commerce_vado/vendor/behat/mink/src/WebAssert.php:841
    /builds/project/commerce_vado/tests/src/Functional/VadoCartTest.php:398
    2) Drupal\Tests\commerce_vado\Functional\VadoManagementFormTest::testVadoManagementForm
    Behat\Mink\Exception\ResponseTextException: The text "Add on product variation types" was not found anywhere in the text of the current page.
    /builds/project/commerce_vado/vendor/behat/mink/src/WebAssert.php:907
    /builds/project/commerce_vado/vendor/behat/mink/src/WebAssert.php:293
    /builds/project/commerce_vado/web/core/tests/Drupal/Tests/WebAssert.php:979
    /builds/project/commerce_vado/tests/src/Functional/VadoManagementFormTest.php:49
    --
    3 tests triggered 2 PHP warnings:
    1) /builds/project/commerce_vado/web/core/modules/user/tests/src/Traits/UserCreationTrait.php:172
    Array to string conversion
    Triggered by:
    * Drupal\Tests\commerce_vado\Kernel\Entity\VadoGroupTest::testVadoGroup
      /builds/project/commerce_vado/tests/src/Kernel/Entity/VadoGroupTest.php:180
    * Drupal\Tests\commerce_vado\Kernel\Entity\VadoGroupTest::testVadoGroupDuplicate
      /builds/project/commerce_vado/tests/src/Kernel/Entity/VadoGroupTest.php:236
    * Drupal\Tests\commerce_vado\Kernel\Entity\VadoGroupTest::testVadoGroupItemGroup
      /builds/project/commerce_vado/tests/src/Kernel/Entity/VadoGroupTest.php:206
    2) /builds/project/commerce_vado/web/core/modules/user/tests/src/Traits/UserCreationTrait.php:188
    Array to string conversion
    Triggered by:
    * Drupal\Tests\commerce_vado\Kernel\Entity\VadoGroupTest::testVadoGroup
      /builds/project/commerce_vado/tests/src/Kernel/Entity/VadoGroupTest.php:180
    * Drupal\Tests\commerce_vado\Kernel\Entity\VadoGroupTest::testVadoGroupDuplicate
      /builds/project/commerce_vado/tests/src/Kernel/Entity/VadoGroupTest.php:236
    * Drupal\Tests\commerce_vado\Kernel\Entity\VadoGroupTest::testVadoGroupItemGroup
      /builds/project/commerce_vado/tests/src/Kernel/Entity/VadoGroupTest.php:206
    FAILURES!
    Tests: 14, Assertions: 562, Failures: 2, Warnings: 2.
  • Pipeline finished with Skipped
    9 days ago
    #406723
  • Marking as fixed, and I will move test issues to a separate issue.

Production build 0.71.5 2024