Problem/Motivation

The server edit form has the Backend field disabled after initial server creation. This was part of a large commit here: #2445251: Plugin form validation/submission logic. I ran into an issue where I had to switch from a Solr backend to a Multilingual Solr backend which would have forced me to create a new server, a new index, and then recreate the associated View too. Ideally, I could simply toggle the Backend option which seems to work fine.

Proposed resolution

Don't disable the Backend field. I did not have an issue enabling the field and switching my Backend. If there is a reason that I am not aware of for disabling this field then maybe it would be possible to only allow switching to similar backends? For example, the Database backend could be disabled, but the Solr backends (Solr and Multilingual Solr) would be enabled if the original Backend was Solr.

Comments

Daniel Korte created an issue. See original summary.

daniel korte’s picture

Assigned: daniel korte » Unassigned
Status: Active » Needs review
StatusFileSize
new536 bytes
mahtab_alam’s picture

StatusFileSize
new536 bytes
gchauhan’s picture

@mahtab_alam instead of review the earlier patch added by daniel korte you have created the same patch.

drunken monkey’s picture

Status: Needs review » Closed (won't fix)

which would have forced me to create a new server, a new index, and then recreate the associated View too.

Just a new server – you can then simply set that as the index's new server and everything will continue working the same as before. That's why we designed it this way.
Therefore, I don't see any necessity to allow switching the server backend. It's the same as saying you want to switch a block's plugin – just create a new block instead!

daniel korte’s picture

Okay, but there's no technical reason why you can't simply switch the backend of an existing server... So why make it more difficult than it has to be?