Drupal 11 compatibility fixes for webform

Created on 4 August 2024, 5 months ago

Drupal 11 compatibility fixes for webform based on CI result.
Original commit and MR was closed here 📌 Automated Drupal 11 compatibility fixes for webform Needs review .

Feature request
Status

Active

Version

6.3

Component

Code

Created by

🇦🇺Australia VladimirAus Brisbane, Australia

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

Merge Requests

Comments & Activities

  • Issue created by @VladimirAus
  • Merge request !501Drupal 11 compatibility fixes → (Merged) created by VladimirAus
  • 🇦🇺Australia VladimirAus Brisbane, Australia
  • Pipeline finished with Failed
    5 months ago
    Total: 2163s
    #243797
  • Status changed to Needs work 5 months ago
  • 🇦🇺Australia VladimirAus Brisbane, Australia

    Based on Bootstrap theme discussion 📌 Automated Drupal 11 compatibility fixes for bootstrap Needs review we need to upgrade to more modern theme like Bootstrap 5 .

  • 🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

    There should be an issue focussed on updating webform_bootstrap.

  • 🇦🇺Australia VladimirAus Brisbane, Australia

    @Liam Morland it won't magically appear.

  • 🇦🇺Australia mstrelan

    Maybe webform_bootstrap can be split off to its own contrib module. It would be nice to have a lean webform core so anything with optional external dependencies can manage them independently.

  • 🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

    Perhaps there should be a new contrib module called webform_bootstrap5 to handle integration with bootstrap5 module. Then webform_bootstrap can be deprecated and will not be made compatible with Drupal 11.

  • 🇦🇺Australia VladimirAus Brisbane, Australia

    Good point. Part of the webform?
    Or separate module?

  • 🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

    I think webform_bootstrap5 should be a new contrib project, not part of the webform project.

  • 🇺🇸United States Chris Matthews

    If webform_bootstrap5 ends up being a separate contrib module, it might be best to take the "5" off the end of the name/machine name so that it's not only associated with bootstrap 5.

  • 🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

    How would the transition work if there are two modules called webform_bootstrap, one within webform and the other separate?

    I was thinking that webform_bootstrap5 would match bootstrap5 module. I don't use Bootstrap myself, so it doesn't matter to me.

  • 🇦🇺Australia VladimirAus Brisbane, Australia

    We can depreicate webform_bootstrap in 6.3 and remove in 6.4.
    I can create new module webform_bootstrap5.

  • 🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

    Sounds good. Thank you.

  • 🇦🇺Australia VladimirAus Brisbane, Australia

    Initial release: https://www.drupal.org/project/webform_bootstrap5

    @liam morland: can you create 6.4.x branch ?

  • 🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

    Thanks for taking care of that. I don't think we'll be creating any new branches now. What can happen now is marking webform_bootstrap as deprecated.

  • 🇺🇸United States Chris Matthews

    Unrelated to this issue, but will the webform_bootstrap5 contrib module only be compatible with Bootstrap 5 themes?

  • 🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

    The idea is that webform_bootstrap5 will work with bootstrap5 module.

  • 🇺🇸United States webdrips

    Hi we have the MR applied locally and on Pantheon. Locally it works fine, but on Pantheon, we get this error when clearing the caches or whatnot (and can't run drush updb for the same reason):

     [error]  ArgumentCountError: Too few arguments to function Drupal\Core\Cache\MemoryBackend::__construct(), 0 passed and exactly 1 expected in Drupal\Core\Cache\MemoryBackend->__construct() (line 36 of /code/web/core/lib/Drupal/Core/Cache/MemoryBackend.php) #0 [internal function]: Drupal\Core\Cache\MemoryBackend->__construct()
    #1 /code/vendor/symfony/dependency-injection/ContainerBuilder.php(1119): ReflectionClass->newInstanceArgs(Array)
    #2 /code/vendor/symfony/dependency-injection/ContainerBuilder.php(577): Symfony\Component\DependencyInjection\ContainerBuilder->createService(Object(Symfony\Component\DependencyInjection\Definition), Array, false, 'cache.pantheon')
    #3 /code/vendor/symfony/dependency-injection/ContainerBuilder.php(1237): Symfony\Component\DependencyInjection\ContainerBuilder->doGet('cache.pantheon', 1, Array, false)
    #4 /code/vendor/symfony/dependency-injection/ContainerBuilder.php(1189): Symfony\Component\DependencyInjection\ContainerBuilder->doResolveServices(Object(Symfony\Component\DependencyInjection\Reference), Array, false)
    #5 /code/vendor/symfony/dependency-injection/ContainerBuilder.php(1649): Symfony\Component\DependencyInjection\ContainerBuilder->doResolveServices(Array, Array)
    #6 /code/vendor/symfony/dependency-injection/ContainerBuilder.php(1145): Symfony\Component\DependencyInjection\ContainerBuilder->callMethod(Object(Drupal\Core\Cache\CacheTagsInvalidator), Array, Array)
    #7 /code/vendor/symfony/dependency-injection/ContainerBuilder.php(577): Symfony\Component\DependencyInjection\ContainerBuilder->createService(Object(Symfony\Component\DependencyInjection\Definition), Array, true, 'cache_tags.inva...')
    #8 /code/vendor/symfony/dependency-injection/ContainerBuilder.php(1237): Symfony\Component\DependencyInjection\ContainerBuilder->doGet('cache_tags.inva...', 1, Array, true)
    #9 /code/vendor/symfony/dependency-injection/ContainerBuilder.php(1189): Symfony\Component\DependencyInjection\ContainerBuilder->doResolveServices(Object(Symfony\Component\DependencyInjection\Reference), Array, true)
    #10 /code/vendor/symfony/dependency-injection/ContainerBuilder.php(1089): Symfony\Component\DependencyInjection\ContainerBuilder->doResolveServices(Array, Array, true)
    #11 /code/vendor/symfony/dependency-injection/ContainerBuilder.php(577): Symfony\Component\DependencyInjection\ContainerBuilder->createService(Object(Symfony\Component\DependencyInjection\Definition), Array, true, 'router.route_pr...')
    #12 /code/vendor/symfony/dependency-injection/ContainerBuilder.php(1237): Symfony\Component\DependencyInjection\ContainerBuilder->doGet('router.route_pr...', 1, Array, true)
    #13 /code/vendor/symfony/dependency-injection/ContainerBuilder.php(1189): Symfony\Component\DependencyInjection\ContainerBuilder->doResolveServices(Object(Symfony\Component\DependencyInjection\Reference), Array, true)
    #14 /code/vendor/symfony/dependency-injection/ContainerBuilder.php(1089): Symfony\Component\DependencyInjection\ContainerBuilder->doResolveServices(Array, Array, true)
    #15 /code/vendor/symfony/dependency-injection/ContainerBuilder.php(1239): Symfony\Component\DependencyInjection\ContainerBuilder->createService(Object(Symfony\Component\DependencyInjection\Definition), Array, true)
    #16 /code/vendor/symfony/dependency-injection/ContainerBuilder.php(1189): Symfony\Component\DependencyInjection\ContainerBuilder->doResolveServices(Object(Symfony\Component\DependencyInjection\Definition), Array, true)
    #17 /code/vendor/symfony/dependency-injection/ContainerBuilder.php(1089): Symfony\Component\DependencyInjection\ContainerBuilder->doResolveServices(Array, Array, true)
    #18 /code/vendor/symfony/dependency-injection/ContainerBuilder.php(577): Symfony\Component\DependencyInjection\ContainerBuilder->createService(Object(Symfony\Component\DependencyInjection\Definition), Array, true, 'url_generator')
    #19 /code/vendor/symfony/dependency-injection/ContainerBuilder.php(522): Symfony\Component\DependencyInjection\ContainerBuilder->doGet('url_generator', 1)
    #20 /code/web/core/lib/Drupal.php(577): Symfony\Component\DependencyInjection\ContainerBuilder->get('url_generator')
    #21 /code/web/core/lib/Drupal/Core/Url.php(832): Drupal::urlGenerator()
    #22 /code/web/core/lib/Drupal/Core/Url.php(765): Drupal\Core\Url->urlGenerator()
    #23 /code/web/modules/custom/temp/webform/src/WebformHelpManager.php(1612): Drupal\Core\Url->toString()
    #24 /code/web/modules/custom/temp/webform/src/WebformHelpManager.php(146): Drupal\webform\WebformHelpManager->initHelp()
    #25 [internal function]: Drupal\webform\WebformHelpManager->__construct(Object(Drupal\Core\Session\AccountProxy), Object(Drupal\Core\Config\ConfigFactory), Object(Drupal\Core\Extension\ModuleHandler), Object(Drupal\Core\State\State), Object(Drupal\Core\Path\PathMatcher), Object(Drupal\webform\WebformAddonsManager), Object(Drupal\webform\WebformLibrariesManager), Object(Drupal\webform\Plugin\WebformElementManager))
    #26 /code/vendor/symfony/dependency-injection/ContainerBuilder.php(1119): ReflectionClass->newInstanceArgs(Array)
    #27 /code/vendor/symfony/dependency-injection/ContainerBuilder.php(577): Symfony\Component\DependencyInjection\ContainerBuilder->createService(Object(Symfony\Component\DependencyInjection\Definition), Array, true, 'webform.help_ma...')
    #28 /code/vendor/symfony/dependency-injection/ContainerBuilder.php(522): Symfony\Component\DependencyInjection\ContainerBuilder->doGet('webform.help_ma...', 1)
    #29 /code/vendor/drush/drush/src/Runtime/LegacyServiceInstantiator.php(289): Symfony\Component\DependencyInjection\ContainerBuilder->get('webform.help_ma...')
    #30 /code/vendor/drush/drush/src/Runtime/LegacyServiceInstantiator.php(253): Drush\Runtime\LegacyServiceInstantiator->resolveFromContainer(Object(Drupal\Core\DependencyInjection\ContainerBuilder), 'webform.help_ma...')
    #31 [internal function]: Drush\Runtime\LegacyServiceInstantiator->resolveArgument('@webform.help_m...')
    #32 /code/vendor/drush/drush/src/Runtime/LegacyServiceInstantiator.php(223): array_map(Array, Array)
    #33 /code/vendor/drush/drush/src/Runtime/LegacyServiceInstantiator.php(193): Drush\Runtime\LegacyServiceInstantiator->resolveArguments(Array)
    #34 /code/vendor/drush/drush/src/Runtime/LegacyServiceInstantiator.php(167): Drush\Runtime\LegacyServiceInstantiator->instantiateObject('\\Drupal\\webform...', Array)
    #35 /code/vendor/drush/drush/src/Runtime/LegacyServiceInstantiator.php(117): Drush\Runtime\LegacyServiceInstantiator->create('\\Drupal\\webform...', Array, Array)
    #36 /code/vendor/drush/drush/src/Runtime/LegacyServiceInstantiator.php(54): Drush\Runtime\LegacyServiceInstantiator->instantiateServices(Array)
    #37 /code/vendor/drush/drush/src/Boot/DrupalBoot8.php(242): Drush\Runtime\LegacyServiceInstantiator->loadServiceFiles(Array)
    #38 /code/vendor/drush/drush/src/Boot/DrupalBoot8.php(218): Drush\Boot\DrupalBoot8->addDrupalModuleDrushCommands(Object(Drush\Boot\BootstrapManager))
    #39 /code/vendor/drush/drush/src/Boot/BootstrapManager.php(211): Drush\Boot\DrupalBoot8->bootstrapDrupalFull(Object(Drush\Boot\BootstrapManager), Object(Consolidation\AnnotatedCommand\AnnotationData))
    #40 /code/vendor/drush/drush/src/Boot/BootstrapManager.php(352): Drush\Boot\BootstrapManager->doBootstrap(5, 5, Object(Consolidation\AnnotatedCommand\AnnotationData))
    #41 /code/vendor/drush/drush/src/Boot/BootstrapManager.php(304): Drush\Boot\BootstrapManager->bootstrapToPhaseIndex(5, Object(Consolidation\AnnotatedCommand\AnnotationData))
    #42 /code/vendor/drush/drush/src/Boot/BootstrapHook.php(36): Drush\Boot\BootstrapManager->bootstrapToPhase('full', Object(Consolidation\AnnotatedCommand\AnnotationData))
    #43 /code/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/InitializeHookDispatcher.php(44): Drush\Boot\BootstrapHook->initialize(Object(Symfony\Component\Console\Input\ArgvInput), Object(Consolidation\AnnotatedCommand\AnnotationData))
    #44 /code/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/InitializeHookDispatcher.php(36): Consolidation\AnnotatedCommand\Hooks\Dispatchers\InitializeHookDispatcher->doInitializeHook(Object(Drush\Boot\BootstrapHook), Object(Symfony\Component\Console\Input\ArgvInput), Object(Consolidation\AnnotatedCommand\AnnotationData))
    #45 /code/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/InitializeHookDispatcher.php(29): Consolidation\AnnotatedCommand\Hooks\Dispatchers\InitializeHookDispatcher->callInitializeHook(Object(Drush\Boot\BootstrapHook), Object(Symfony\Component\Console\Input\ArgvInput), Object(Consolidation\AnnotatedCommand\AnnotationData))
    #46 /code/vendor/consolidation/annotated-command/src/CommandProcessor.php(145): Consolidation\AnnotatedCommand\Hooks\Dispatchers\InitializeHookDispatcher->initialize(Object(Symfony\Component\Console\Input\ArgvInput), Object(Consolidation\AnnotatedCommand\AnnotationData))
    #47 /code/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(376): Consolidation\AnnotatedCommand\CommandProcessor->initializeHook(Object(Symfony\Component\Console\Input\ArgvInput), Array, Object(Consolidation\AnnotatedCommand\AnnotationData))
    #48 /code/vendor/symfony/console/Command/Command.php(245): Consolidation\AnnotatedCommand\AnnotatedCommand->initialize(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
    #49 /code/vendor/symfony/console/Application.php(1047): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
    #50 /code/vendor/symfony/console/Application.php(316): Symfony\Component\Console\Application->doRunCommand(Object(Consolidation\AnnotatedCommand\AnnotatedCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
    #51 /code/vendor/symfony/console/Application.php(167): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
    #52 /code/vendor/drush/drush/src/Runtime/Runtime.php(110): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
    #53 /code/vendor/drush/drush/src/Runtime/Runtime.php(40): Drush\Runtime\Runtime->doRun(Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
    #54 /code/vendor/drush/drush/drush.php(139): Drush\Runtime\Runtime->run(Array)
    #55 /code/vendor/drush/drush/drush(4): require('/code/vendor/dr...')
    #56 /code/vendor/bin/drush(119): include('/code/vendor/dr...')
    #57 {main}. 
    ArgumentCountError: Too few arguments to function Drupal\Core\Cache\MemoryBackend::__construct(), 0 passed and exactly 1 expected in Drupal\Core\Cache\MemoryBackend->__construct() (line 36 of /code/web/core/lib/Drupal/Core/Cache/MemoryBackend.php).
    

    Our plan doesn't include a cache server, so Pantheon seems to think the issue is stemming from Webform, which the error output supports. Not sure if this is related to the patch, Webform in general, PHP 8.3, or what exactly.

  • 🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

    A good debugging step would be to try to reproduce the issue on Drupal 10 and PHP 8.3.

  • 🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

    kim.pepper made their first commit to this issue’s fork.

  • Pipeline finished with Failed
    4 months ago
    Total: 411s
    #260987
  • Pipeline finished with Failed
    4 months ago
    Total: 560s
    #261003
  • 🇦🇺Australia VladimirAus Brisbane, Australia

    @chris matthews technically module will be the same.
    I just wanted to avoid the namespace clash with webform_bootstrap

  • First commit to issue fork.
  • Pipeline finished with Failed
    4 months ago
    Total: 2088s
    #261543
  • First commit to issue fork.
  • 🇭🇰Hong Kong hswong3i

    I give merge with https://www.drupal.org/node/3435903 with:

    curl -skL https://git.drupalcode.org/project/webform/-/merge_requests/429.patch | git am --keep-cr
    

    And apply this MR for D11 now with:

    ...
        "repositories": {
            "drupal": {
                "canonical": false,
                "type": "composer",
                "url": "https://packages.drupal.org/8"
            },
            "drupal/webform": {
                "canonical": false,
                "type": "vcs",
                "url": "https://git.drupalcode.org/issue/webform-3465838.git"
            },
        },
    ...
        "require": {
            "drupal/webform": "dev-3465838-drupal-11-compatibility",
        }
    ...
    
  • Pipeline finished with Failed
    4 months ago
    Total: 2085s
    #270242
  • 🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

    The next step is to get tests passing again on Drupal 10. Then we can see what the Drupal 11 failures are and get tests passing there.

  • Pipeline finished with Failed
    3 months ago
    Total: 1903s
    #281162
  • Assigned to nicxvan
  • 🇺🇸United States nicxvan

    Let me rebase now that tests are passing on the referenced issue

  • Issue was unassigned.
  • 🇺🇸United States nicxvan

    Ah Liam beat me to it.

  • 🇺🇸United States nicxvan

    Looks like one failure:

    1) Drupal\Tests\webform\Functional\Element\WebformElementAddressTest::testAddress
    Behat\Mink\Exception\ExpectationException: The string "address:
      country_code: US
      langcode: en
      given_name: John
      family_name: Smith
      organization: 'Google Inc.'
      address_line1: '1098 Alta Ave'
      address_line2: ''
      locality: 'Mountain View'
      administrative_area: CA
      postal_code: '94043'
      additional_name: null
      sorting_code: null
      dependent_locality: null
    address_advanced:
      country_code: US
      langcode: en
      address_line1: '1098 Alta Ave'
      address_line2: ''
      locality: 'Mountain View'
      administrative_area: CA
      postal_code: '94043'
      given_name: null
      additional_name: null
      family_name: null
      organization: null
      sorting_code: null
      dependent_locality: null
    address_none: null
    address_multiple:
      - country_code: US
        langcode: en
        given_name: John
        family_name: Smith
        organization: 'Google Inc.'
        address_line1: '1098 Alta Ave'
        address_line2: ''
        locality: 'Mountain View'
        administrative_area: CA
        postal_code: '94043'" was not found anywhere in the HTML response of the current page.
    
    • liam morland committed 51d26cd4 on 6.3.x
      Issue #3465838: Remove PHP version constraint
      
      Will use the minimum that...
  • 🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

    The next thing to do is to keep fixing the issues identified by the update_status test. The goal should be to get a clean report on upgrade_status (except for the errors about core_version_requirement).

  • 🇺🇸United States nicxvan

    There are also a bunch of deprecations that won't get removed until 12.0.0 I imagine those can be left alone too.

    For example:

    Ignore         234  Call to deprecated method renderPlain() of class            
                        Drupal\Core\Render\Renderer. Deprecated in drupal:10.3.0 and
                        is removed from drupal:12.0.0. Use                          
                        Drupal\Core\Render\RendererInterface::renderInIsolation()   
                        instead. 
    

    If you agree with ignoring future removals for this update I think the only issues are these:

    Fix now        207  Call to deprecated function file_validate(). Deprecated in  
                        drupal:10.2.0 and is removed from drupal:11.0.0. Use the    
                        'file.validator' service instead.    
    

    and these:

    Check manually 32   #access_callback callback '#access_callback' at key '0' is  
                        not callable.                                               
    --------------------------------------------------------------------------------
    Check manually 36   The "#lazy_builder" expects a callable array with arguments.
    --------------------------------------------------------------------------------
    Check manually 37   The "#post_render" render array value expects an array of   
                        callbacks.                                                  
    --------------------------------------------------------------------------------
    Check manually 38   The "#pre_render" render array value expects an array of    
                        callbacks.                                                  
    --------------------------------------------------------------------------------
    Check manually 45   The "#date_date_callbacks" render array value expects an    
                        array of callbacks.                                         
    --------------------------------------------------------------------------------
    Check manually 46   The "#date_time_callbacks" render array value expects an    
                        array of callbacks.   
    
    FILE: web/modules/custom/webform/css/webform.theme.claro.css
    STATUS         LINE                           MESSAGE                           
    --------------------------------------------------------------------------------
    Check manually 0    The #drupal-off-canvas selector is deprecated in            
                        drupal:9.5.0 and is removed from drupal:10.0.0. See         
                        https://www.drupal.org/node/3305664.   
    

    The only other messages are core_version_requirement related and some deprecated sub modules: This extension is deprecated. Don't use it.

  • 🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

    Webform 6.3.x requires Drupal 10.3, so we might as well update everything since none of the changes require a version newer than 10.3. Some of them have already been fixed in 6.3.x.

  • 🇺🇸United States nicxvan

    Great!
    In that case I think the job is the best source there are a LOT of changes so I won't copy them here.

    https://git.drupalcode.org/project/webform/-/jobs/2729810

  • First commit to issue fork.
  • 🇦🇺Australia acbramley

    Fixed merge conflict and allowed tests to get past composer issues with the ckeditor module.

    I think we need to spin out another issue to remove ckeditor support and require ckeditor5 though.

  • 🇦🇺Australia acbramley

    acbramley changed the visibility of the branch 6.x to hidden.

  • 🇦🇺Australia acbramley

    acbramley changed the visibility of the branch 6.3.x to hidden.

  • Pipeline finished with Canceled
    3 months ago
    Total: 469s
    #281586
  • 🇦🇺Australia acbramley

    Many of the upgrade_status messages are just plain wrong, are they not running on HEAD??

    Search for renderPlain in the codebase, it's only ever using our own WebformThemeManager::renderPlain which uses renderInIsolation

    All the errors about extending deprecated classes are also wrong...

  • Pipeline finished with Canceled
    3 months ago
    Total: 955s
    #281593
  • Pipeline finished with Canceled
    3 months ago
    Total: 287s
    #281607
  • Pipeline finished with Canceled
    3 months ago
    Total: 1071s
    #281609
  • Pipeline finished with Canceled
    3 months ago
    Total: 400s
    #281614
  • Pipeline finished with Canceled
    3 months ago
    Total: 342s
    #281617
  • Pipeline finished with Canceled
    3 months ago
    Total: 411s
    #281618
  • 🇦🇺Australia acbramley

    Finally got composer (next major) passing - sorry for the noise. Group module has major issues and doesn't seem needed by any tests (from my sleuthing). The issue is it depends on https://www.drupal.org/project/flexible_permissions which depends on https://www.drupal.org/project/variationcache neither of which are D11 compatible and are marked obselete.

  • Pipeline finished with Failed
    3 months ago
    Total: 2679s
    #281625
  • Pipeline finished with Failed
    3 months ago
    Total: 2085s
    #281682
  • Status changed to Needs review 3 months ago
  • 🇦🇺Australia acbramley

    This should be ready to go!

    I've created 📌 Speed up tests Active too because waiting 30 minutes for this was a tad painful.

  • 🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

    Looks great to me. Should we create followups to fix the linting warnings?

  • 🇺🇸United States nicxvan

    @mstrelan has a lead on speeding up tests. Don't the rest of the upgrade status issues need to be resolved?

  • Pipeline finished with Success
    3 months ago
    Total: 4336s
    #281705
  • 🇺🇸United States nicxvan

    Ok I looked through the changes and they all look pretty straightforward.

    I vote RTBC, but I'm leaving it open to answer the question about the upgrade status results.

  • Pipeline finished with Failed
    3 months ago
    Total: 461s
    #281785
  • 🇦🇺Australia acbramley

    Do the rest of the upgrade status issues need to be resolved or are those the ones you mentioned are wrong?

    They all look wrong to me, I went through half a dozen and they were all incorrect. I have asked in the gitlab channel if anyone knows why.

    I think if there were legit deprecations, they'd be caught and fail tests.

    Looks like we've still got some failures anyway...

  • 🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

    Created follow-up 📌 Fix gitlabci linting errors Active

  • Pipeline finished with Failed
    3 months ago
    Total: 590s
    #281810
  • Pipeline finished with Failed
    3 months ago
    Total: 476s
    #281816
  • Status changed to Needs work 3 months ago
  • 🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

    Thanks for your work.

    This merge request introduces some phpcs issues. That test used to pass.

    Deprecated file_validate() needs to be replaced. There may be other similar changes needed.

  • Pipeline finished with Failed
    3 months ago
    Total: 598s
    #283954
  • Pipeline finished with Failed
    3 months ago
    Total: 678s
    #283969
  • Pipeline finished with Failed
    3 months ago
    Total: 3231s
    #284432
  • 🇦🇺Australia acbramley

    @hswong3i why did you force push over all of my changes? Please don't do that.

  • 🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

    @acbramley when there is a force-push, it will create a tag pointing to the earlier version, so the work is not lost.

    It would probably be best to start by fixing each issue raised by upgrade_status. Once that is passing (except for the core_version_requirements), then work any remaining issues.

  • 🇦🇺Australia acbramley

    @liam morland right but it's a bit disruptive to lose all progress on a branch and have to force push again.

    As explained above, the upgrade_status run seems bugged and is reporting many issues that aren't correct.

    I'm first focussing on getting tests to pass as they should catch most of the real issues.

  • First commit to issue fork.
  • Pipeline finished with Failed
    3 months ago
    Total: 492s
    #284975
  • 🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

    @linhnm thanks for your commit. Please use separate commits for each change. For example, replacing file_validate() should be its own commit.

    Please use dependency injection for any new code. I know there is a lot of use of \Drupal:: currently; let's not add any more.

  • 🇦🇺Australia acbramley

    Please use dependency injection for any new code. I know there is a lot of use of \Drupal:: currently; let's not add any more.

    That's in procedural code, can't use DI there.

    Bit confused why you'd split up different file validator fixes, they are all consistent. There is no use of file_validate() in the project.

  • Pipeline finished with Canceled
    3 months ago
    Total: 695s
    #285794
  • Pipeline finished with Failed
    3 months ago
    Total: 687s
    #285797
  • 🇦🇺Australia acbramley

    The file tests are failing on next major due to
    The "webform_file_validate_extensions" plugin does not exist.

    This validator is added in WebformManagedFileBase. I don't know the background as to why this exists, it only seems to be used to support comma delimited extensions (in webform_preprocess_file_upload_help)

  • Pipeline finished with Failed
    3 months ago
    Total: 420s
    #285817
  • 🇦🇺Australia acbramley

    Hmm I removed the custom validators but it looks like they are needed for this "per form" file size limit... not really sure how to manage that without a decent amount of rework.

  • Pipeline finished with Failed
    3 months ago
    Total: 864s
    #285833
  • Pipeline finished with Failed
    3 months ago
    Total: 526s
    #286715
  • Pipeline finished with Failed
    3 months ago
    Total: 500s
    #286876
  • 🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

    'webform_file_validate_extensions' and 'webform_file_validate_name_length' are not actual file upload validators, but keys that were put in there to pass variables to hook_help().

    'webform_file_validate_extensions' was never set as far as I could see, so I removed it.

  • Pipeline finished with Failed
    3 months ago
    Total: 593s
    #286932
  • Pipeline finished with Failed
    3 months ago
    Total: 502s
    #287717
  • Pipeline finished with Failed
    3 months ago
    Total: 540s
    #287727
  • Pipeline finished with Failed
    3 months ago
    Total: 503s
    #287744
  • Pipeline finished with Failed
    3 months ago
    Total: 673s
    #287753
  • Pipeline finished with Failed
    3 months ago
    Total: 774s
    #287757
  • Pipeline finished with Failed
    3 months ago
    Total: 847s
    #287767
  • Pipeline finished with Failed
    3 months ago
    Total: 923s
    #287785
  • Pipeline finished with Failed
    3 months ago
    Total: 483s
    #287863
  • 🇫🇷France mably

    Hi, it could be interesting to add a branch-alias configuration to the composer.json file to facilitate testing of Webform related modules on Drupal 11 :

        "extra": {
            ...
            "branch-alias": {
                "dev-3465838-drupal-11-compatibility": "6.3.x-dev"
            }
        }
    

    Tested locally, seems to work fine.

  • Pipeline finished with Success
    3 months ago
    Total: 392s
    #289536
  • 🇭🇺Hungary nagy.balint

    I am not sure why an alpha release could not be made on the 6.3.x branch, since alpha releases would not be recommended for use anyways, but it would make it easier to test dependent contrib modules on drupal 11.
    I think it would help contrib to commit this work and continue with fixes on that branch instead of waiting for a big pull request.

  • 🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

    I would welcome small merge requests to make specific needed changes. For example, removing use of deprecated code. Remember, 6.3.x depends on Drupal 10.3.

  • 🇺🇦Ukraine evgen

    evgen changed the visibility of the branch 6.3.x to active.

  • 🇮🇳India nikunj.shah

    After applying the merge request, if anyone encounters cache-related issues on Pantheon, please ensure to update the "pantheon-systems/drupal-integrations" package to the latest version. This should help resolve any caching problems.

  • Pipeline finished with Failed
    3 months ago
    Total: 949s
    #298469
  • Pipeline finished with Failed
    3 months ago
    Total: 411s
    #298535
  • Pipeline finished with Failed
    3 months ago
    Total: 1235s
    #299409
  • Pipeline finished with Failed
    3 months ago
    Total: 587s
    #299423
  • Pipeline finished with Failed
    3 months ago
    Total: 602s
    #299466
  • 🇦🇺Australia acbramley

    Going to start splitting some of these changes into separate issues to make this more manageable.

    Modernizr deprecation has moved into 📌 Remove modernizr dependency and code Active
    Twig spaceless deprecation has moved into 📌 Twig spaceless filter is deprecated Active

  • 🇦🇺Australia acbramley

    Moved optional params issue into 🐛 Fix Optional parameter X declared before required parameter Y Active

  • 🇺🇸United States jrockowitz Brooklyn, NY

    @acbramley #16

    Going to start splitting some of these changes into separate issues to make this more manageable.

    Thank you for doing this. It will make is possible for us to quickly review and merge changes, while isolating the remaining challenges.

  • 🇦🇺Australia acbramley

    I've reset the branch behind some of the commits that were moved out, and then merged 6.3.x in. Much less changes now!

  • Pipeline finished with Canceled
    3 months ago
    Total: 593s
    #300342
  • Pipeline finished with Failed
    3 months ago
    #300346
  • 🇦🇺Australia acbramley

    The filter format failure is going to need some thinking

    3) Drupal\Tests\webform\Functional\Access\WebformAccessFilterFormatTest::testFilterFormatAccess
    Behat\Mink\Exception\ExpectationException: The string "webform_default" appears in the HTML response of this page, but it should not.
    

    In https://git.drupalcode.org/project/webform/-/merge_requests/254/diffs, webform_filter_format_load was added which doesn't seem to get invoked on D11. All this is doing is hiding the default webform filter format on the filter format overview. I'll do a bit more debugging but we may need an alternative solution (e.g override the list builder or something more robust).

  • Pipeline finished with Canceled
    3 months ago
    Total: 778s
    #300377
  • Pipeline finished with Failed
    3 months ago
    Total: 2035s
    #300386
  • Pipeline finished with Canceled
    3 months ago
    Total: 835s
    #300407
  • 🇦🇺Australia acbramley

    Getting to the tail end of these failures.

    WebformClientSideValidationJavaScriptTest is still failing locally with a javascript error. When reproducing this in the browser the error is:

    Can't set value before init

    Debugging into this it's coming from Drupal.behaviors.states so I'm assuming something has changed in that API that either webform or clientside_validation needs to fix.

  • Pipeline finished with Failed
    3 months ago
    Total: 2106s
    #300411
  • Pipeline finished with Running
    3 months ago
    #300425
  • 🇦🇺Australia acbramley
    2) Drupal\Tests\webform_ui\FunctionalJavascript\WebformUiElementJavaScriptTest::testElement
    TypeError: c.isArray is not a function

    This is a random fail and is coming from select2 CDN javascript... I'll see if there's a way we can stop this interfering in completely unrelated tests.

  • Pipeline finished with Failed
    3 months ago
    Total: 1905s
    #300453
  • Pipeline finished with Failed
    3 months ago
    Total: 3694s
    #300477
  • First commit to issue fork.
  • 🇮🇳India ankitv18

    FYI I've cherry-picked the commits from https://www.drupal.org/project/webform/issues/3477942 📌 Fix phpstan errors Active to move things proactively.

    cc: @acbramley

  • Pipeline finished with Failed
    3 months ago
    #302811
  • 🇮🇳India ankitv18

    Noticing one failure for next major phpunit pipeline: https://git.drupalcode.org/issue/webform-3465838/-/jobs/2973891
    Need to handle upgrade_status pipeline: https://git.drupalcode.org/issue/webform-3465838/-/jobs/2973888

    cc: @jrockowitz @acbramley

  • Pipeline finished with Canceled
    2 months ago
    Total: 740s
    #303718
  • Pipeline finished with Failed
    2 months ago
    Total: 2130s
    #303732
  • 🇮🇳India ankitv18

    Hi @jrockowitz,
    The next major pipeline is having only one failure which also weird ~~ same sub-module test I've run on my local machine
    Please check the screenshot below

    With all the changes on MR!501 can we consider atleast merge this MR to the develop so that rest of the open issues or related can move smoothly as there's lots of back and forth things going with all the related issues (Interdependent someway or other)

    cc: @acbramley

  • Pipeline finished with Success
    2 months ago
    Total: 7376s
    #304211
  • 🇮🇳India ankitv18

    Yay!! Test pipelines are green now!!!!

  • Pipeline finished with Running
    2 months ago
    Total: 8766s
    #304677
  • 🇺🇸United States jrockowitz Brooklyn, NY

    Wow!!! I reviewed all the changes and everything looks great. Awesome work. You rock!!!

    I would like to give other people a chance to review but from my review this is RTBC.

  • Pipeline finished with Success
    2 months ago
    Total: 4724s
    #305804
  • 🇺🇸United States jrockowitz Brooklyn, NY

    I think we can merge AS-IS this and deprecate the Webform Bootstrap module in a new ticket.

  • 🇮🇳India ankitv18

    @jrockowitz Only thing is remaining is to update the CR with the deprecation reason of this sub-module: https://www.drupal.org/docs/8/modules/webform/webform-frequently-asked-q...
    With that we can merge MR!501.

  • Pipeline finished with Success
    2 months ago
    Total: 5803s
    #306268
  • 🇺🇸United States BenStallings

    I can't vouch for all the functionality, but I was able to install and enable the MR!501 in Drupal 11.

  • 🇮🇳India ankitv18

    @lkmorlan @jrockowitz can we please move this issue ahead?

  • Pipeline finished with Skipped
    2 months ago
    #312904
  • 🇺🇸United States jrockowitz Brooklyn, NY

    All the tests are passing. I merged the MR. Thanks.

  • 🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

    Tests were passing in the merge request but are not passing now. I have opened 📌 Make tests pass Active .

  • 🇦🇺Australia acbramley

    Thanks so much for getting this across the line.

  • 🇦🇺Australia VladimirAus Brisbane, Australia

    Thanks, everyone.

  • heddn Nicaragua

    Will a 6.3.x alpha or something be release shortly? Or should we be testing that on the dev 6.3.x dev branch?

  • 🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

    I generally let major patches set for two weeks on the dev branch before making a release. Please test the dev branch for now.

  • 🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

    We should probably consider 📌 Remove legacy ckeditor from codebase. Active to be a release blocker. That is likely all that is needed for 📌 Make tests pass Active .

  • 🇺🇸United States tjtj

    https://www.drupal.org/project/webform/I am confused by this long issue. How do I get webform to work on Drupal 11?

     # composer require "drupal/webform:dev-3465838-drupal-11-compatibility as 6.3.x-dev" -W
    ./composer.json has been updated
    Running composer update drupal/webform --with-all-dependencies
    Loading composer repositories with package information
    Updating dependencies
    Your requirements could not be resolved to an installable set of packages.
    
      Problem 1
        - Root composer.json requires drupal/webform dev-3465838-drupal-11-compatibility as 6.3.x-dev, it is satisfiable by drupal/webform[dev-3465838-drupal-11-compatibility] from vcs repo (git https://git.drupalcode.org/issue/webform-3465838.git) but drupal/webform[dev-4.x, dev-5.x, dev-6.x, dev-6.0.x, dev-6.1.x, dev-6.2.x, dev-6.3.x, 4.x-dev (alias of dev-4.x), 5.0.0-beta1, ..., 5.x-dev (alias of dev-5.x), 6.0.0-alpha1, ..., 6.x-dev (alias of dev-6.x)] from composer repo (https://packages.drupal.org/8) has higher repository priority. The packages from the higher priority repository do not match your constraint and are therefore not installable. That repository is canonical so the lower priority repo's packages are not installable. See https://getcomposer.org/repoprio for details and assistance.
      Problem 2
        - drupal/webform_views is locked to version 5.4.0 and an update of this package was not requested.
        - drupal/webform_views 5.4.0 requires drupal/webform ^6.0 -> found drupal/webform[dev-6.x, dev-6.0.x, dev-6.1.x, dev-6.2.x, dev-6.3.x, 6.0.0-alpha1, ..., 6.x-dev (alias of dev-6.x)] but it conflicts with your root composer.json require (dev-3465838-drupal-11-compatibility as 6.3.x-dev).

    and

    # composer require drupal/webform:dev-3465838-drupal-11-compatibility
    ./composer.json has been updated
    Running composer update drupal/webform
    Loading composer repositories with package information
    Updating dependencies
    Your requirements could not be resolved to an installable set of packages.
    
      Problem 1
        - Root composer.json requires drupal/webform dev-3465838-drupal-11-compatibility, it is satisfiable by drupal/webform[dev-3465838-drupal-11-compatibility] from vcs repo (git https://git.drupalcode.org/issue/webform-3465838.git) but drupal/webform[dev-4.x, dev-5.x, dev-6.x, dev-6.0.x, dev-6.1.x, dev-6.2.x, dev-6.3.x, 4.x-dev (alias of dev-4.x), 5.0.0-beta1, ..., 5.x-dev (alias of dev-5.x), 6.0.0-alpha1, ..., 6.x-dev (alias of dev-6.x)] from composer repo (https://packages.drupal.org/8) has higher repository priority. The packages from the higher priority repository do not match your constraint and are therefore not installable. That repository is canonical so the lower priority repo's packages are not installable. See https://getcomposer.org/repoprio for details and assistance.
      Problem 2
        - drupal/webform_views is locked to version 5.4.0 and an update of this package was not requested.
        - drupal/webform_views 5.4.0 requires drupal/webform ^6.0 -> found drupal/webform[dev-6.x, dev-6.0.x, dev-6.1.x, dev-6.2.x, dev-6.3.x, 6.0.0-alpha1, ..., 6.x-dev (alias of dev-6.x)] but it conflicts with your root composer.json require (dev-3465838-drupal-11-compatibility).
    
    Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

    Please issue a real release ASAP.

  • 🇨🇦Canada nickdickinsonwilde Victoria, BC (T'So-uke lands)

    Strongly agree important to just get a release - even if marking it as alpha or beta - is important.
    That said, @tjtj use this https://www.drupal.org/project/webform/releases/6.3.x-dev for now rather than the custom branch. It should work, but chance that the dependences on webform_views won't allow it. If it doesn't allow it you could try 'as 6.3.0' or similar.

  • 🇺🇸United States tjtj

    Thanks. Why not put a link to this? Views claims they will do their update

  • 🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

    It would be best to get tests passing again first; see 📌 Make tests pass Active .

    I would also like to have resolution to 📌 Remove legacy ckeditor from codebase. Active .

  • Status changed to Fixed 29 days ago
  • 🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

    6.3.0-alpha1 released.

    It would still be nice to get 📌 Remove legacy ckeditor from codebase. Active resolved before beta.

  • Automatically closed - issue fixed for 2 weeks with no activity.

  • 🇺🇸United States tjtj

    where is the link to 6.3 alpha?

  • 🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

    I have created 📌 Document webform_bootstrap deprecation Active .

Production build 0.71.5 2024