Allow individually adding new dataflows in the search index
As Edgardo
I want to, directly from the DLM, easily add a newly created dataflow to the search index
In order to immediately see that dataflow in the DE search results (e.g. when giving demos to stakeholders and showcase the potentials and easiness of .Stat)
This ticket is only about the implementation in the search web service. The DLM feature will be done in a separate ticket.
Scenario: Add a specific dataflow to the search index
Given that I have access to the search API
And I have configured a datasource with a valid {datasourceId}
When I run a specific update query specifying the dataflow identification information {datasourceId, dataflowId, agencyId, version }
Then the dataflow gets added to the search index.
Notes:
- For the implementation, it would be useful to not differentiate between inserts and updates, because otherwise the related DLM feature implementation might get too complicated. The DLM cannot know if a dataflow exists in the index or not.
- The dataflow is allowed to be added to the index only if it was previously correctly categorised in the data source. This can be checked by verifying that the response to the dataflow structure request (the one that has the URL parameter "references=all") contains the appropriate CategoryScheme as referenced artefact. If the dataflow is not correctly categorised then the search API throws an error.
- 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 will later be shown to the user in the DLM.
Edited by jean-baptiste nonin