Allow empty DF version number in viz URL to use latest DF version
As Yavuz,
I want to be able to leave the version number empty in the viz URL,
So that I can always see the data for the current latest DE version.
Details
When trying to use a URL to reach data table
- with missing version number parameter
OECD Prod: https://data-explorer.oecd.org/vis?lc=fr&ac=false&tm=DF_LE&pg=0&snb=1&vw=tb&df[ds]=dsDisseminateFinalDMZ&df[id]=DSD_HEALTH_STAT%40DF_LE&df[ag]=OECD.ELS.HD&pd=2015%2C&dq=.A...Y0........&ly[rw]=REF_AREA&ly[cl]=TIME_PERIOD&ly[rs]=MEASURE%2CSEX&to[TIME_PERIOD]=false
QA: https://de-qa.siscc.org/vis?tenant=oecd&lc=fr&ac=false&tm=DF_LE&pg=0&snb=1&vw=tb&df[ds]=dsDisseminateFinalDMZ&df[id]=DSD_HEALTH_STAT%40DF_LE&df[ag]=OECD.ELS.HD&to[TIME]=false👎 - or with empty version number parameter
OECD Prod: https://data-explorer.oecd.org/vis?lc=fr&ac=false&tm=DF_LE&pg=0&snb=1&vw=tb&df[ds]=dsDisseminateFinalDMZ&df[id]=DSD_HEALTH_STAT%40DF_LE&df[ag]=OECD.ELS.HD&df[vs]=&pd=2015%2C&dq=.A...Y0........&ly[rw]=REF_AREA&ly[cl]=TIME_PERIOD&ly[rs]=MEASURE%2CSEX&to[TIME_PERIOD]=false
QA: https://de-qa.siscc.org/vis?tenant=oecd&lc=fr&ac=false&tm=DF_LE&pg=0&snb=1&vw=tb&df[ds]=dsDisseminateFinalDMZ&df[id]=DSD_HEALTH_STAT%40DF_LE&df[ag]=OECD.ELS.HD&df[vs]=&to[TIME_PERIOD]=false&pd=2015%2C&dq=.A...Y0........&ly[rw]=REF_AREA&ly[cl]=TIME_PERIOD&ly[rs]=MEASURE%2CSEX👍
then this currently only works perfectly in OECD Prod for the latest version of the structure and the data (which use API V1) but not in QA and not for the ref. metadata query (which uses the API V2).
Instead of:
- OECD Prod:
- QA:
Use:
- API V1 structure: leave version empty: https://sdmx.oecd.org/public/rest/dataflow/OECD.ELS.HD/DSD_HEALTH_STAT@DF_LE/?references=all&detail=referencepartial
- API V1 data: leave version empty: https://sdmx.oecd.org/public/rest/data/OECD.ELS.HD,DSD_HEALTH_STAT@DF_LE,/.A...Y0........?startPeriod=2015&dimensionAtObservation=AllDimensions
- API V2 ref metadata: use tilde (~) as version number: https://sdmx.oecd.org/public/rest/v2/data/dataflow/OECD.ELS.HD/DSD_HEALTH_STAT@DF_LE/~/*.A.LFEXP.Y.Y0._T._Z._Z._Z._Z._Z._Z._Z?attributes=msd&measures=none
Edited by SSandrine