NOT_DISPLAYED annotation is not applied in case of defined for the dimension value
Following the release of #35 (closed),
The following scenario is not applied, where a dimension value is hidden from the sub-title when returning one single value.
Steps to reproduce
- Upload structure + data attached
OECD-ANN_NOT_SC2-1.0-all.xml
OECD-ANN_NOT_SC2-1.0-data.csv - In this example, the annotation type NOT_DISPLAYED is added to the dataflow definition for 2 codes ""GR11+GR12", AND in the codelist for one extra code "GR10", like so:
<structure:Dataflows>
<structure:Dataflow id="ANN_NOT_SC2" urn="urn:sdmx:org.sdmx.infomodel.datastructure.Dataflow=OECD:TEST_ANN2(1.5)" agencyID="OECD" version="1.0" isFinal="true">
<common:Annotations>
<common:Annotation id="ANN_DIMENSION_NOT_DIS">
<common:AnnotationTitle>DIMENSION_COLUMN2=GR11+GR12</common:AnnotationTitle>
<common:AnnotationType>NOT_DISPLAYED</common:AnnotationType>
</common:Annotation>
<common:Annotation>
<common:AnnotationType>NonProductionDataflow</common:AnnotationType>
<common:AnnotationText xml:lang="en">true</common:AnnotationText>
</common:Annotation>
<common:Annotation id="ANN_DIMENSION_COLUMN">
<common:AnnotationTitle>DIMENSION_COLUMN,DIMENSION_COLUMN2</common:AnnotationTitle>
<common:AnnotationType>LAYOUT_COLUMN</common:AnnotationType>
</common:Annotation>
<common:Annotation id="ANN_DIMENSION_SECTION">
<common:AnnotationTitle>DIMENSION_SECTION,DIMENSION_SECTION2,DIMENSION_SECTION3</common:AnnotationTitle>
<common:AnnotationType>LAYOUT_ROW_SECTION</common:AnnotationType>
</common:Annotation>
<common:Annotation id="ANN_DIMENSION_ROW">
<common:AnnotationTitle>DIMENSION_ROW</common:AnnotationTitle>
<common:AnnotationType>LAYOUT_ROW</common:AnnotationType>
</common:Annotation>
</common:Annotations>
<common:Name xml:lang="en">Annotation NOT_DISPLAYED scenario 2</common:Name>
<common:Name xml:lang="fr">Annotation NOT_DISPLAYED scénario 2</common:Name>
<structure:Structure>
<Ref id="DSD_ANN_TEST" version="1.1" agencyID="OECD" package="datastructure" class="DataStructure" />
</structure:Structure>
</structure:Dataflow>
</structure:Dataflows>
<structure:Code id="GR10" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=MA_545:CL_GRADE(1.0).GR10">
<common:Annotations>
<common:Annotation id="ANN_NOT_DIS_CL">
<common:AnnotationType>NOT_DISPLAYED</common:AnnotationType>
</common:Annotation>
</common:Annotations>
<common:Name xml:lang="en">Grade 10</common:Name>
</structure:Code>
- It respects the agreed SDMX-JSON syntax (see in #35 (closed)) but it is not applied as expected in the below scenario 2.
#35 (closed)
Expected scenario (scenario 2 fromScenario 2: Hide dimension values marked with annotation "NOT_DISPLAYED"
Given that I'm using the DE visualisation page
When a dimension value has an annotation "NOT_DISPLAYED" (see SDMX-JSON syntax below)
Then it is not shown in the table/chart sub title. It is still shown in the filter of the visualisation page.
Edited by jean-baptiste nonin