Closed (fixed)
Project:
Elasticsearch Connector
Version:
8.0.x-dev
Component:
Code
Priority:
Major
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
9 Mar 2024 at 18:28 UTC
Updated:
4 Jun 2025 at 15:31 UTC
Jump to comment: Most recent
Comments
Comment #2
mparker17I'm not certain how useful this is going to be in this situation, but when I plan out D6/D7 -> D10 migrations, I make a table of "new" (D10) configuration and figure out how to get it from the "old" (D7) configuration... so below is a table of how
elasticsearch_connector-8.0.xserver configuration maps toelasticsearch_connector-8.x-7.xconfiguration. Note that I still need to figure out how the index configuration maps.Note that you can get the
$CLUSTER_IDfrom the 8.x-7.xsearch_api.server.$SERVER_IDconfiguration by looking at the config with the keybackend_config.cluster_settings.clusterELSE do nothing
THEN connector = 'standard'
options.authentication_type
string
(backend must be "basicauth")
(backend must be "basicauth")
Comment #4
mparker17I've made some progress on the Server/Cluster configuration migrations; but I still need to figure out the Index migrations, so I'm leaving this as "needs work"
Does anyone offhand know of any part of core or contrib that tests configuration migrations between major versions? If so, I would very much like to see an example, so I can write tests here.
Comment #5
mparker17Adding #3427243: Plan for 8.0.0-alpha release as a parent issue.
Comment #6
sokru commentedHere's few examples for configuration migration tests:
https://git.drupalcode.org/project/metatag/-/blob/2.0.x/tests/src/Functi...
https://git.drupalcode.org/project/search_api/-/blob/8.x-1.x/modules/sea...
https://git.drupalcode.org/project/feeds/-/blob/8.x-3.x/tests/src/Functi...
Comment #7
mparker17I think this is ready for review.
Comment #8
mparker17Out of curiosity, I tried deleting the deprecated config schema definitions, but tests failed: https://git.drupalcode.org/project/elasticsearch_connector/-/jobs/1138070 - so I've put back the deprecated config schema definitions.
Comment #9
sokru commentedThe requirement for deprecated configs needs to come from core. Sorry for the hassle, lets keep them.
After handling the prefix I think we should merge this and create issue(s) for 8.x-7.x branch and deprecate the hooks and Events. Scope of the issue would just mark them deprecated and on change record describe how the EventSubscribers should be changed when updating to 8.0.x.
Comment #10
sokru commentedI was about to merge the MR, since it would be much easier to test on different projects if the upgrade path would be on -dev, but then I started to think if we should also add the suffix option. When the prefix+suffix was added on #3010955: Allow index name flexibility it was argued that it makes easier to alter the index for different environments eg.
not sure if there is an easy alternative now to accomplish the same...
Comment #11
mparker17@sokru, Thanks for your patience with me!
I have added support for an index suffix to the module in the latest changes, and updated the migration and migration tests accordingly!
Comment #12
sokru commented@marpker17 Thanks! I'll merge this now so its easier to test upgrade process with custom eventsubscribers. The remaining task is to update change record #3433223: Hooks, submodules, events, services, and classes deprecated 8.x-7.x, but I'd say its more related to #3427243: Plan for 8.0.0-alpha release, so marking this "Fixed".
Comment #15
mparker17Update the issue summary to document changes made in this ticket.