Incorrect number of observations returned in the content-range header when LastNObservations parameter is applied - SDMXRI-1836 - NSI WS 8.11.0
When the lastNObservations
parameter is applied to the data query, then the observation number returned in the range header doesn't correspond to the number of observations returned effectively. The range count seems to not take into account the reducing effect of the lastNObservation filter.
Example
In qa:stable the "0-2499 range" query https://nsi-qa-stable.siscc.org/rest/data/AGENCY,DF_TEST_CV,1.0/0176+0596.CASES_D+CASES_W...P.D.?lastNObservations=2&dimensionAtObservation=AllDimensions effectively returns 12 observations but the range header states:
Content-Range: values 0-2499/2592
This has the disturbing effect that DE visualisations wrongly warn about a selection above the 2500 observations limit, even though less observations are returned:
- Open https://de-qa.siscc.org/vis?lc=en&df[ds]=qa%3Astable&df[id]=DF_TEST_CV&df[ag]=AGENCY&df[vs]=1.0&av=true&pd=%2C&dq=0176%2B0596.CASES_D%2BCASES_W...P.D.&ly[rw]=REF_AREA&ly[cl]=TIME_PERIOD&ly[rs]=MEASURE%2CUNIT_MEASURE
- Change the "Last X periods" in the "Time & Frequency" filter to a small number, e.g. 2
- See the miss-leading waning icon for the tiny table:
Related ticket at ESTAT: SDMXRI-1836