Webform states submodule does not work.

Created on 22 September 2023, over 1 year ago
Updated 2 October 2023, over 1 year ago

Problem/Motivation

The types defined in the submodule are not loaded by the graphql module.

Proposed resolution

Join the submodule with the main module fixes that issue.

📌 Task
Status

Closed: works as designed

Version

1.0

Component

Code

Created by

🇩🇪Germany DiDebru

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

Comments & Activities

  • Issue created by @DiDebru
  • Open in Jenkins → Open on Drupal.org →
    Core: 9.5.x + Environment: PHP 8.0 & MySQL 5.7
    last update over 1 year ago
    9 pass, 5 fail
  • @didebru opened merge request.
  • 🇧🇬Bulgaria pfrenssen Sofia

    Can you provide some more information on the circumstances under which this isn't working? We have a test that enables the submodule, installs a webform and then executes a query to retrieve all kinds of states, and then checks that the correct information is returned. It's all working as expected in the test.

    I verified the Type plugins and they are namespaced correctly, so they should be automatically discovered by the plugin manager, as long as the module is enabled. The plugins being located in the main module or the submodule shouldn't matter. They are loaded by GraphQL's TypePluginManager which uses the standard discovery mechanism from Drupal core.

    Just to be sure, could you verify that the submodule is enabled?

  • 🇩🇪Germany DiDebru

    I am not sure about the exact circumstances.
    The main and submodule are enabled. But I keep getting:
    LogicException: Missing type WebformElementStates. in Drupal\graphql\Plugin\GraphQL\Schemas\SchemaPluginBase->getType() (line 421 of /app/docroot/modules/contrib/graphql/src/Plugin/GraphQL/Schemas/SchemaPluginBase.php)

    And for me it's working fine when I merge the sub and the main module.
    I know it is odd.

  • 🇩🇪Germany DiDebru

    Sorry figured it out there was a placeholder module in our custom modules that has overridden the submodule.
    Ticket can be closed as works as designed :facepalm:

  • Status changed to Closed: works as designed over 1 year ago
Production build 0.71.5 2024