This issue has been created
There is 1 update.
 
 
XWiki Platform / cid:jira-generated-image-avatar-dbdb031b-605c-4177-9754-f1e962b85a0d XWIKI-22323 Open

Refactoring operation should wait for the Solr index to be empty before proceeding

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-7a480acd-6cbb-4fbc-9c67-368e1fc64854 Vincent Massol created this issue on 11/Jul/24 13:28
 
Summary: Refactoring operation should wait for the Solr index to be empty before proceeding
Issue Type: cid:jira-generated-image-avatar-dbdb031b-605c-4177-9754-f1e962b85a0d Improvement
Affects Versions: 15.10
Assignee: Unassigned
Components: Refactoring
Created: 11/Jul/24 13:28
Priority: cid:jira-generated-image-static-major-008ec2bf-025c-48cc-8b6a-ac53e6faa63b Major
Reporter: Vincent Massol
Description:

Renaming a page for example will also refactor links pointing to that page, but that's only if the Solr indexer has indexed these links. An example use case is a loop where you're renaming several pages, this will trigger some reindexing and some renames may fail if the Solr indexing is in progress and hasn't finished.

Thus the idea is to introduce some new request.setWaitForIndexing(true|false), and to set it to true by default (better be safe than sorry) and allow scripts to change the behavior for the cases where it's not needed.

Note that if the wiki is being indexed (after a large XAR has been imported for example), then any refactoring operation may take a long time (the time to index). Thus any refactoring operation must be done in a job with a progress bar, and it would also be nice to indicate in refactoring UIs the solr indexing level somewhere.

 
 

1 update

 
cid:jira-generated-image-avatar-7a480acd-6cbb-4fbc-9c67-368e1fc64854 Changes by Vincent Massol on 11/Jul/24 13:29
 
Description: Renaming a page for example will also refactor links pointing to that page, but that's only if the Solr indexer has indexed these links. An example use case is a loop where you're renaming several pages, this will trigger some reindexing and some renames may fail if the Solr indexing is in progress and hasn't finished.

Thus the idea is to introduce some new {{request.setWaitForIndexing(true|false)}}, and to set it to true by default (better be safe than sorry) and allow scripts to change the behavior for the cases where it's not needed.

Note that if the wiki is being indexed (after a large XAR has been imported for example), then any refactoring operation may take a long time (the time to index). Thus any refactoring operation must be done in a job with a progress bar, and it would also be nice to indicate in refactoring UIs the solr indexing level somewhere.


This issue might need a forum proposal.