Create enums for RequirementSeverity and RequirementPhase

Created on 26 December 2023, over 1 year ago

Problem/Motivation

Split out from πŸ“Œ Add value objects to represent the return of hook_requirements Needs work we should create enums for RequirementSeverity and RequirementPhase as a first step.

Steps to reproduce

Proposed resolution

Create enums for RequirementSeverity and RequirementPhase.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ“Œ Task
Status

Active

Version

11.0 πŸ”₯

Component
ExtensionΒ  β†’

Last updated 1 day ago

No maintainer
Created by

πŸ‡¦πŸ‡ΊAustralia kim.pepper πŸ„β€β™‚οΈπŸ‡¦πŸ‡ΊSydney, Australia

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

Merge Requests

Comments & Activities

  • Issue created by @kim.pepper
  • πŸ‡¦πŸ‡ΊAustralia kim.pepper πŸ„β€β™‚οΈπŸ‡¦πŸ‡ΊSydney, Australia
  • Status changed to Needs review over 1 year ago
  • πŸ‡¦πŸ‡ΊAustralia kim.pepper πŸ„β€β™‚οΈπŸ‡¦πŸ‡ΊSydney, Australia

    Created a MR, but I know there will be test fails. I think the biggest issue is going to be BC support and converting from int values stored in config.

  • Pipeline finished with Failed
    over 1 year ago
    Total: 603s
    #68526
  • Pipeline finished with Canceled
    over 1 year ago
    Total: 574s
    #68541
  • Pipeline finished with Failed
    over 1 year ago
    Total: 515s
    #68546
  • Pipeline finished with Success
    over 1 year ago
    Total: 714s
    #68556
  • πŸ‡¦πŸ‡ΊAustralia kim.pepper πŸ„β€β™‚οΈπŸ‡¦πŸ‡ΊSydney, Australia

    Remaining tasks:

    • Handle BC for contrib modules that will still be using constants.
  • πŸ‡¦πŸ‡ΊAustralia kim.pepper πŸ„β€β™‚οΈπŸ‡¦πŸ‡ΊSydney, Australia

    I think this issue is big enough without trying to introduce enums for RequirementPhase at the same time.

    Also adding that we are deprecating drupal_requirements_severity() and moving this to the enum.

  • Status changed to Needs work over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Can we add a simple deprecation test to make sure the current constants are returning a deprecation warning.

  • πŸ‡¦πŸ‡ΊAustralia kim.pepper πŸ„β€β™‚οΈπŸ‡¦πŸ‡ΊSydney, Australia

    Yeah, I think we need tests to make sure the BC layer works when using those constants.

  • Pipeline finished with Success
    over 1 year ago
    Total: 635s
    #70838
  • Pipeline finished with Success
    over 1 year ago
    Total: 737s
    #70846
  • Status changed to Needs review over 1 year ago
  • πŸ‡¦πŸ‡ΊAustralia kim.pepper πŸ„β€β™‚οΈπŸ‡¦πŸ‡ΊSydney, Australia

    Added a bc test for getMaxSeverity(). There are a few instances where we check the severity status.

  • Status changed to Needs work over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    BC tests added look great! Moving to NW for the CR.

  • Status changed to Needs review over 1 year ago
  • πŸ‡¦πŸ‡ΊAustralia kim.pepper πŸ„β€β™‚οΈπŸ‡¦πŸ‡ΊSydney, Australia

    Updated CR

  • πŸ‡¦πŸ‡ΊAustralia kim.pepper πŸ„β€β™‚οΈπŸ‡¦πŸ‡ΊSydney, Australia
  • Pipeline finished with Success
    over 1 year ago
    Total: 508s
    #71928
  • Pipeline finished with Success
    over 1 year ago
    Total: 670s
    #71933
  • Pipeline finished with Canceled
    over 1 year ago
    Total: 48s
    #71969
  • Pipeline finished with Success
    over 1 year ago
    Total: 627s
    #71970
  • Pipeline finished with Success
    over 1 year ago
    Total: 627s
    #71977
  • Status changed to RTBC over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Thanks! CR reads well.

  • Pipeline finished with Success
    over 1 year ago
    Total: 731s
    #73270
  • Pipeline finished with Success
    over 1 year ago
    Total: 650s
    #75966
  • Status changed to Needs work over 1 year ago
  • The Needs Review Queue Bot β†’ tested this issue. It no longer applies to Drupal core. 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.

  • Status changed to RTBC over 1 year ago
  • πŸ‡¦πŸ‡ΊAustralia kim.pepper πŸ„β€β™‚οΈπŸ‡¦πŸ‡ΊSydney, Australia

    Rebase on 11.x

  • Pipeline finished with Success
    over 1 year ago
    Total: 852s
    #80486
  • Pipeline finished with Canceled
    about 1 year ago
    Total: 246s
    #85196
  • Pipeline finished with Failed
    about 1 year ago
    Total: 563s
    #85205
  • Pipeline finished with Success
    about 1 year ago
    Total: 562s
    #85229
  • Status changed to Needs work about 1 year ago
  • πŸ‡¦πŸ‡ΊAustralia dpi Perth, Australia

    Posted a lengthy review.

  • Pipeline finished with Success
    about 1 year ago
    Total: 481s
    #98211
  • Status changed to Needs review about 1 year ago
  • πŸ‡¦πŸ‡ΊAustralia kim.pepper πŸ„β€β™‚οΈπŸ‡¦πŸ‡ΊSydney, Australia
  • Pipeline finished with Failed
    about 1 year ago
    Total: 507s
    #98363
  • Status changed to Needs work about 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States smustgrave
        There was 1 error:
        
        1)
        Drupal\Tests\system\Functional\UpdateSystem\UpdateScriptTest::testRequirements
        Behat\Mink\Exception\ResponseTextException: The text "This is a
        requirements warning provided by the update_script_test module." was not
        found anywhere in the text of the current page.
        
        /builds/issue/drupal-3410938/vendor/behat/mink/src/WebAssert.php:907
        /builds/issue/drupal-3410938/vendor/behat/mink/src/WebAssert.php:293
        /builds/issue/drupal-3410938/core/tests/Drupal/Tests/WebAssert.php:956
        /builds/issue/drupal-3410938/core/modules/system/tests/src/Functional/UpdateSystem/UpdateScriptTest.php:150
        /builds/issue/drupal-3410938/vendor/phpunit/phpunit/src/Framework/TestResult.php:728
    
  • Pipeline finished with Failed
    about 1 year ago
    Total: 571s
    #99835
  • πŸ‡¦πŸ‡ΊAustralia dpi Perth, Australia

    Added further feedback, tests still failing.

  • Pipeline finished with Canceled
    about 1 year ago
    Total: 286s
    #116045
  • Pipeline finished with Failed
    about 1 year ago
    Total: 489s
    #116049
  • Pipeline finished with Failed
    about 1 year ago
    Total: 195s
    #141208
  • πŸ‡ΊπŸ‡ΈUnited States dww

    Yeah, would be great to do this and πŸ“Œ Convert hook requirements that do not interact with install time Active at the same time, so that the new hooks only use the new API.

Production build 0.71.5 2024