Created on 9 February 2025, 3 months ago

Problem/Motivation

this is an automated testing only issue. When you run PHPUnit tests, part of the testing procedure ensures that all config you are importing has a valid schema, and since the schema being provided by this module is being reported as invalid, when using this module as part of an automated test, the test always fails.

So as an example, if I have a my_module.info.yml, and in my dependencies of the module, I list search_api_pantheon, and then I have a Functional test in my module, my test will fail 100% of the time.

Steps to reproduce

To reproduce, you can probably just add a FunctionalTest to your project, and that should start to fail.

Proposed resolution

If you see changes between 8.2.2 and 8.3.1 the schema file config/schema/search_api_pantheon.connector.pantheon.schema.yml is deleted
https://git.drupalcode.org/project/search_api_pantheon/-/compare/8.2.2.....
This seems to be related to https://www.drupal.org/project/search_api_pantheon/issues/3262003 🐛 Missing schema Fixed which was fixed a while ago and its again broken in 8.3.1 release

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

8.3

Component

Code

Created by

🇮🇳India nitesh624 Ranchi, India

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

Merge Requests

Comments & Activities

  • Issue created by @nitesh624
  • 🇮🇳India nitesh624 Ranchi, India
  • 🇺🇸United States jeffm2001

    Here's a patch. It simply restores the schema file from 8.2.2 and everything works fine.

  • 🇮🇳India nitesh624 Ranchi, India
  • 🇮🇳India nitesh624 Ranchi, India

    Still I am getting the schema issue after applying patch
    Schema errors for search_api.server.pantheon_search with the following errors: search_api.server.pantheon_search:backend_config.disabled_request_handlers variable type is NULL but applied schema class is Drupal\Core\Config\Schema\Sequence, search_api.server.pantheon_search:backend_config.disabled_request_dispatchers variable type is NULL but applied schema class is Drupal\Core\Config\Schema\Sequence

  • Merge request !14Revert "Add missing schema" → (Open) created by dhruv.mittal
  • 🇮🇳India nitesh624 Ranchi, India

    Still seeing the below error
    Drupal\Core\Config\Schema\SchemaIncompleteException: Schema errors for search_api.server.pantheon_search with the following errors: search_api.server.pantheon_search:backend_config.disabled_request_handlers variable type is NULL but applied schema class is Drupal\Core\Config\Schema\Sequence, search_api.server.pantheon_search:backend_config.disabled_request_dispatchers variable type is NULL but applied schema class is Drupal\Core\Config\Schema\Sequence

  • previously I added ' { } ' instead of ' [ ] ' . Kindly review now.

  • Status changed to Needs review 4 days ago
  • 🇮🇳India nitesh624 Ranchi, India

    I am using https://www.drupal.org/files/issues/2025-03-06/search_api_pantheon-35053... from #3 and it solved the missing schema but after that I was getting schema mismatch error
    But apart from this I also had to make below changes

    --- a/config/install/search_api.server.pantheon_search.yml
    +++ b/config/install/search_api.server.pantheon_search.yml
    @@ -36,7 +36,10 @@ backend_config:
       disabled_field_types: {  }
       disabled_caches: {  }
       disabled_request_handlers:
    +    - request_handler_replicationslave_default_7_0_0
    +    - request_handler_replicationmaster_default_7_0_0
       disabled_request_dispatchers:
    +    - request_dispatcher_httpcachingnever_default_7_0_0
       rows: 10
       index_single_documents_fallback_count: 10
       index_empty_text_fields: false
  • 🇮🇳India nitesh624 Ranchi, India

    Here is my complete patch file content

    diff --git a/config/install/search_api.server.pantheon_search.yml b/config/install/search_api.server.pantheon_search.yml
    index 9b2839b..f4fea43 100644
    --- a/config/install/search_api.server.pantheon_search.yml
    +++ b/config/install/search_api.server.pantheon_search.yml
    @@ -36,7 +36,10 @@ backend_config:
       disabled_field_types: {  }
       disabled_caches: {  }
       disabled_request_handlers:
    +    - request_handler_replicationslave_default_7_0_0
    +    - request_handler_replicationmaster_default_7_0_0
       disabled_request_dispatchers:
    +    - request_dispatcher_httpcachingnever_default_7_0_0
       rows: 10
       index_single_documents_fallback_count: 10
       index_empty_text_fields: false
    diff --git a/config/schema/search_api_pantheon.connector.pantheon.schema.yml b/config/schema/search_api_pantheon.connector.pantheon.schema.yml
    new file mode 100644
    index 0000000..122d171
    --- /dev/null
    +++ b/config/schema/search_api_pantheon.connector.pantheon.schema.yml
    @@ -0,0 +1,3 @@
    +plugin.plugin_configuration.search_api_solr_connector.pantheon:
    +  type: plugin.plugin_configuration.search_api_solr_connector.standard
    +  label: 'Search API Solr Pantheon connector settings'
Production build 0.71.5 2024