view using a split solr index, being incorrectly split?

Created on 2 April 2024, about 1 year ago

HI Folks,

I am tentatively posting this as a bug, as I don't believe this is the behaviour I should be seeing - happy to be corrected however!

Problem/Motivation

I have an otherwise working config split / config sync setup, my environment is DDEV (local) / Pantheon (remote).
I have a split for SOLR, using different modules / SOLR 8 server in each environment.
I have an index, with the same ID on each server. (also working, and in config split)
I have a view, using the named index - I want this view to be part of config sync, and not split.
The view has not been selected in the config split UI.

The view is perpetually split, but I see no reason for this to be the case.

<h4 id="summary-steps-reproduce">Steps to reproduce</h4>

1) Have a working split for search_api :

a) ddev - config/splits/ddev/search_api.index.product_index.yml
<code>uuid: bd30b8d3-e2e9-44c9-8a92-d89b169010f1
langcode: en-gb
status: true
dependencies:
  config:
    - search_api.server.ddev_solr_server
  module:
    - search_api_solr
    - commerce_product
    - search_api
** Other Config **
id: product_index
name: 'Product Index'
description: 'Index of all enabled products and variations. (On DDEV)'
** Other Config **
server: ddev_solr_server

b) Pantheon - config/splits/pantheon_dev/search_api.index.product_index.yml

uuid: 26248e86-ec12-4e08-b1dd-af03a8d62d71
langcode: en-gb
status: true
dependencies:
  config:
    - search_api.server.pantheon_solr8
  module:
    - search_api_solr
    - commerce_product
    - search_api
** Other Config **
id: product_index
name: 'Product Index'
description: 'Index of all enabled products and variations. (On Pantheon)'
** Other Config **
server: pantheon_solr8

2) Create a view using the index in question:

uuid: f4fe8f40-af54-4b08-97a2-36a8080fd97a
langcode: en-gb
status: true
dependencies:
  config:
    - field.storage.commerce_product.field_catalogue_image
    - search_api.index.product_index
  module:
    - search_api
    - views_bootstrap
id: product_index
label: 'Product Index'
module: views
description: ''
tag: ''
base_table: search_api_index_product_index
base_field: search_api_id
** other config **

With no settings for the view in the config split UI (or any override hooks in code / modules), the view perpetually appears in the ddev config split directory. It is not exported to the remote.

Deleting from the split directory, and copying to the sync directory is reverted as soon as you run 'ddev drush cex -y' (and git show pending deletion).

Am I right in thinking this is a bug, as the view actually has no dependency that's not already met?

If not any suggestions to resolve would be greatly appreciated!

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇬🇧United Kingdom martin@manarock.co.uk

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

Comments & Activities

  • Issue created by @martin@manarock.co.uk
  • 🇬🇧United Kingdom alanhdev

    I am seeing this too with a similar Solr configuration. I also believe this is a bug.

    We have five splits, four for Acquia environments and one for DDEV local. We have config for a view in the main sync directory. With the DDEV split active, exporting the config results in removal of the view config from the sync directory and it is added to the local split directory.

    Adding the view config to the partial_list on each split still results in the config being deleted from the main sync directory.

    Copying the view config to each split directory and adding it to the complete_list on each split also removes it from the main sync folder, but at least each split still has the config which is safer than accidentally deleting it.

    I'll add this to my list of stuff to investigate.

Production build 0.71.5 2024