Extend the behaviour of the DEFAULT filter selections by applying also items from search (part 1: use of search facet selections)
As a .Stat DE user,
I need the dataflow visualisations to include default representations,
Using the sdmx DEFAULT annotation combined with the end-user's actions performed on search/browse.
References
- The first implementation of the DEFAULT annotation is based on Aha! specifications' https://oecd.aha.io/features/ONEDATA-72. DEFAULT annotations attached to DSDs and Dataflows (in addition to the attachment to codes in codelists) are also specified there.
- Tests, feedback and analysis is made through #58 (closed).
- Part 2 is implemented in ticket #99 (closed).
Acceptance Criteria
The annotation type "DEFAULT" indicates an item of an ItemScheme to be selected by default in the dataflow visualisation.
-
When free-text search and if no search hit within dimension values used in the resulting dataflow (e.g. search hit only within dataflow name), or when no free-text search:
1a. when also facet selection and no facet selection within dimension values used in the resulting dataflow (e.g. facet selection only on data source or topics), or no facet selection --> apply all DEFAULT selections
1b. when also facet selection and with selection(s) within dimension values used in the resulting dataflow --> apply DEFAULT selections except for the concerned dimension(s) where the values selected in the facets are to be selected also in the viz filter(s) -
(not part of this ticket as included in a separate ticket #99 (closed)) when free-text search and search hit within dimension values used in the resulting dataflow:
2a. when also facet selection and no facet selection within dimension values used in the resulting dataflow (e.g. facet selection only on data source or topics), or no facet selection --> **apply DEFAULT selections except for the concerned dimension(s) where the values found in the free-text search are to be selected in the viz filter(s)**
2b. when also facet selection and with selection(s) within dimension values used in the resulting dataflow --> apply DEFAULT selections except for the concerned dimension(s) where the values found in free-text search or selected in the facets are to be selected also in the viz filter(s)
annotation attachment level
Ideally, DEFAULT annotation attached to individual codes in codelists, DEFAULT annotation attached to DSDs as well as DEFAULT annotation attached to dataflows should be taken into account, where the DEFAULT annotation attached to dataflow fully supersedes/replaces those attached to DSDs, which fully supersedes/replaces again those individual codes in codelists.
Therefore, DEFAULT annotation attached to individual codes in codelists are only to be used when there is no DEFAULT annotation attached to the dataflow nor to the DSD, and those of DSD are only to be used when there is no DEFAULT annotation attached to the dataflow.
This would give most flexibility in the data modelling and data presentation.