Limit the Time Period and Frequency values according to the current data availability and to the current selection
As Tze Ming,
I want to be guided so that I can select only Frequencies and Time Periods for which data exists,
So that I do not end up with an empty data table or chart.
The time period availability issue was also highlighted in the usability tests with:
- Tze Ming, min. 35:35: "It's not super clear. It doesn't tell you if there is no data available for particular years that you selected."
- Benoit, min. 17:00: "I could not understand the reason why I could not display 2 years. The reasons was that there was no data for 2018. This was not intuitive."
Specifications
Scenario 1: Default state of filter values
When I have nothing selected myself (default view),
Then the Frequency and Time period values are updated automatically (enabled/disabled) according to the current dynamic data availability within the current default data selection.
Scenario 2: Selection change of filter values
When I have made a new selection in one of the other filters (select or unselect) and I open the Frequency & Time Period filter,
Then the values in the Frequency & Time period filter are updated automatically (enabled/disabled) according to the current dynamic data availability within the current data selection.
Example
Currently after the selection of Afghanistan and sex total to the default view of the DF
Expected: only 2014 should be enabled in the time period fields as there is data only for this year. All other years should be disabled (greyed out).
Notes
- Frequency values and Time period ranges to display and the data availability for the time period dimension can be obtained from the actual and the available content constraints (e.g. https://nsi-qa-stable.siscc.org/rest/dataflow/ILO/DF_SDG_ALL_SDG_A871_SEX_AGE_RT/1.0?references=contentconstraint and https://nsi-qa-stable.siscc.org/rest/availableconstraint/ILO,DF_SDG_ALL_SDG_A871_SEX_AGE_RT,1.0/.AFG.A..SEX_T.).
- In both scenarios and all cases, the data availability must be applied for all available frequencies.
- The design requirements are similar to #112 (closed).
Note to PM
- last N periods is also updated with available CC.