[MGNLEESOLR-63] Allow update from old solr module Created: 27/May/15  Updated: 22/Jun/15  Resolved: 02/Jun/15

Status: Closed
Project: Solr Search Provider
Component/s: None
Affects Version/s: 2.0
Fix Version/s: 2.2.1

Type: Task Priority: Neutral
Reporter: Tomáš Gregovský Assignee: Milan Divilek
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Date of First Response:

 Description   

Will be nice instead of displaying message that old solr configuration (content indexer module and solr search provider module before version 2.0) needs to be manually removed first, check and if exist remove that configuration (or backup).

Working with 2.2 version.

        installTasks.add(new RemoveNodeTask("Remove solr-search-provider","", "config", "/modules/solr-search-provider"));
        installTasks.add(new RemoveNodeTask("Remove content-indexer","", "config", "/modules/content-indexer"));
        installTasks.add(new RemoveNodeTask("Remove SearchServlet","", "config", "/server/filters/servlets/SearchServlet"));

Thank you



 Comments   
Comment by Roman Kovařík [ 27/May/15 ]
  1. Misssing task for "/server/filters/servlets/SearchServlet".
  2. Use RemoveNodesTask instead of four RemoveNodeTask's.
  3. Node name "standard-templating-kit/templates/pages" Aren't there invalid characters?
  4. Optionally you can create a task for node backup since that's used three times in the code.
Comment by Roman Kovařík [ 28/May/15 ]

Should DisableUpdateTask really throw an UnsupportedOperationException instead of TaskExcecutionException or executing installContext.error(...)? with a description how to fix the issue?

Generated at Mon Feb 12 10:59:44 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.