Problem/Motivation

Drupal\Core\Config\Schema\SchemaIncompleteException: Schema errors for search_api.server.pantheon_search with the following errors: search_api.server.pantheon_search:backend_config.connector_config missing schema, 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

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 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

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

nitesh624 created an issue. See original summary.

nitesh624’s picture

Issue summary: View changes
jeffm2001’s picture

Status: Active » Needs review
StatusFileSize
new480 bytes

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

nitesh624’s picture

Title: Missing schema » Missing schema after 8.3.x upgrade
nitesh624’s picture

Status: Needs review » Needs work

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

dhruv.mittal’s picture

Assigned: Unassigned » dhruv.mittal

dhruv.mittal’s picture

Assigned: dhruv.mittal » Unassigned
Status: Needs work » Needs review

Kindly review

nitesh624’s picture

Status: Needs review » Needs work

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

dhruv.mittal’s picture

Status: Needs work » Needs review

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

nitesh624’s picture

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
nitesh624’s picture

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'
divyansh.gupta’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new267 KB
new36.38 KB

I was able to reproduce this error and this MR applied successfully for me,
Before:
before
After:
after
And the changes looks good to me.
Thus moving this to RTBC!!

roshnykunjappan’s picture

Status: Reviewed & tested by the community » Fixed

This issue is fixed in the latest release 8.3.2. Thank you all for the contribution.

roshnykunjappan’s picture

Status: Fixed » Closed (fixed)