(Re-)index manually a dataflow in Search Index from within DLM
As Edgardo
I want to be able to easily (re-)index dataflows for which data have been added/updated
So that I can demo a smooth user journey from the upload of structures and data in the DLM to the search and visualisation in the DE to stakeholders and future users.
-
Add a contextual dataflow menu to manually (re-)index a dataflow e.g. after the user has added or updated data.
Add "(Re-)index dataflow" action at the end of the menu
As for the new icon, Material UI like this one could fitfrom material-ui/icons/LibraryAdd'
-
The menu item should be displayed only for dataflows belonging to an internal space and only if the user has structure edit permissions on the underlying dataflow. -
[ ] At the same time also enhance the behaviour of the "Categorise dataflow" menu item to be displayed only for dataflows belonging to an internal space and only if the user has structure edit permissions on the underlying dataflow.--> moved to #281
DLM Notifications: The search API should include in the response the success or failure state of the execution together with sufficiently clear indications of reasons (and what the user can do to solve any issues), as appropriate. This message can thus be shown to the user in the DLM and displayed the same way (if possible) than for any other transactions in the application.
PS. Currently, there seem to be different search service methods for re-indexing an already indexed dataflow (already exists) and for adding a dataflow to the index (new development dotstatsuite-sdmx-faceted-search#28 (closed)). It's up to the DLM to call the appropriate method.
This DLM feature should be able to use the DLM backend gateway to connect securely to sfs without exposing the secret-key in the client app.