Only show indexed dataflows in the list of related dataflows in the Overview page
As Brunella,
I want to see in the Overview tab the list only of related indexed dataflows,
so that dataflows that are only for special purposes (e.g., API requests) do not pollute the list.
Functional requirements
This is a leftover requirement from ticket #616 (closed).
Only the dataflows that are indexed in the same DE scope are to be included in the list of related dataflows according to the doc.
Technical approach
As discussed the technical approach could be:
- Retrieve all dataflows of the current dataflows's DSD (as already the case now)
e.g. https://sdmx.oecd.org/public/rest/datastructure/OECD.ENV.EPI/DSD_ECH/1.1?references=dataflow&detail=allstubs - Unless there are no such dataflows, from sfs obtain the list of dataflows currently being indexed in the dataspace, e.g. https://sfs-qa.siscc.org/api/search?tenant=oecd with body:
{ "lang":"en", "search":"", "facets":{ "datasourceId":["ds:qa:stable"] } }
- Get the intersection of the dataflow(s) from 1) and 2)
- if the intersection is not empty, then use it
- if the intersection is empty, then use the full list from 1) if it exists
Note: The only new request to be executed is step 2). Could the result be cached (per dataspace per session)?
Edited by Jens Dossé