-
Type: User story
-
Status: Resolved
-
Priority: Critical
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 23.0.0
-
Component/s: Admin Console
-
Epic Link:
-
Sprint:UI - 2024-6, UI - 2024-7, UI COOLDOWN - 2024-6
-
Story Points:3
As a system administrator, I can reindex the content of a folderish document (document and its children)
[REINDEX-FOLDER]
Context:
ES endpoint https://doc.nuxeo.com/rest-api/1/elasticsearch-endpoint/
AC
Within the elasticsearch reindex menu entry
An option is provided to reindex the content of a particular folderish document:
Tab name: "Folder"
Title
"Reindex a document and all of its children"
Parameters:
- Document ID(required)
- Placeholder: Document ID [Should display a message "* indicates a required field"]
An id should be provided, otherwise an error message is displayed
"Please provide a document id"
- Placeholder: Document ID [Should display a message "* indicates a required field"]
Errors are handled so that when a problem is detected:
- The error message coming back from the server is displayed. Sample errors that could happen:
- Document id does not exist
- Error returned by the server
- An error dialogue should appear with following format:
- 'Your action was not executed due to an internal error'
- Status: status code received from the server (like 404, 500)
- Details' Detail message received from the server
- And a "Close" button
- Instead of ID if enters a path
- An error dialogue should appear with following format:
- 'An error occourred'
- Document with id [path] was not found
- An error dialogue should appear with following format:
- I can go back to the form and parameters are kept so that I can fix any mistake easily and try again
When a valid id is provided:
- Reindex button selected
- Request is sent
- Confirmation is required, see [CONFIRMATION-REQUIRED] and [EXPLAINER-ES-REINDEXING-FOLDER]
- Impact of [CONFIRMATION-REQUIRED] a confirmation dialogue will appear after a spinner.
- Name "Confirm Reindex"
- Message: "The query could impact performance if it involves high volumes. Documents will not be available for search while reindexing is in progress. This action will impact [NUMBER] documents and this action could take approximately [TIME]. Would you like to continue?"
- "Abort" and "Continue" button.
- On "Abort" back to the form and retain Document ID.
- On "Continue" a "Action Launched" confirmation is displayed with the outcome, e.g. "Congratulations! Your action is launched with ID 3c55ecfb-3ea8-477a-b07c-0cc5c7e7a88e. Remember to take a note of the ID if you want to monitor the action later on."
- A "Copy Action ID" button should display to help user to copy the action ID for future reference and a "Close" button to close the "Action Launched" dialogue.
- Once "Copy Action ID" selected this should trigger a a javascript alert with a message "Action ID copied to clipboard!" and button "Ok" to cancel the alert.
- Then verify this action by passing this ID "3c55ecfb-3ea8-477a-b07c-0cc5c7e7a88e" as URL param via this bulk endpoint [_*envURL/api/v1/management/bulk/<action-id>*_] in order to check the status. [_**This step is just for testing purpose**_]
- state - completed
- A "Go back" action allows me to go launch another request. [_*This point is discontinued from current scope*_]
- Fields have been reset so that I don't launch the same request twice by accident.
1.
|
Markup | Resolved | Swarnadipa Choudhury | ||||||||||
2.
|
NG-Component | Resolved | Swarnadipa Choudhury | ||||||||||
3.
|
Service-Integration | Resolved | Swarnadipa Choudhury | ||||||||||
4.
|
Action | Resolved | Swarnadipa Choudhury | ||||||||||
5.
|
Effects | Resolved | Swarnadipa Choudhury | ||||||||||
6.
|
Reducer | Resolved | Swarnadipa Choudhury | ||||||||||
7.
|
Unit tests | Resolved | Swarnadipa Choudhury | ||||||||||
8.
|
QA Task | Resolved | Mansa Bajaj |
|