Re-enhance :-) attribute display definition logic
As Gyorgy,
I want to be able to clearly define per DE and alternatively per dataflow which attributes are displayed through flags, footnotes or in the side panel or which are not displayed at all,
So that not all non-hidden and non-flag attributes are displayed with (i) icons and side panel, as it is currently the case.
Note: This will undo the configuration logic defined in ticket #265 (closed) that removed the footnotes
section from the DE configuration. The re-introduction of this feature is made already with #132 (closed), but it now needs to be changed from footnotes
to notes
.
Functional specifications
The DE config can contain any of the following optional parameters (the content represents examples):
"attributes": {
"flags": ["OBS_STATUS", "CONF_STATUS"],
"notes": ["NOTE"]
}
The dataflow annotations can contain any of the following optional annotations (the content represents examples):
annotations: [
{
title: "OBS_STATUS,CONF_STATUS",
type: "LAYOUT_FLAG"
},
{
title: "NOTE1,NOTE2",
type: "LAYOUT_NOTE"
},
{
title: "DECIMALS",
type: "NOT_DISPLAYED"
}
],
The following display rules are applied with ascending prevalence for any attribute
(7) The DE configuration notes
defines which attributes are displayed in the cell note
.
(6) The DE configuration flags
defines which attributes are displayed in the cell flag
.
(5) The DF annotation LAYOUT_NOTE
fully overwrites the list in DE configuration notes
and instead defines which attributes are displayed in the cell note
.
(4) The DF annotation LAYOUT_FLAG
fully overwrites the list in DE configuration flags
and instead defines which attributes are displayed in the cell flag
.
(3) The DF annotations UNIT_MEASURE_CONCEPTS
, DRILLDOWN_CONCEPTS
and DRILLDOWN
define which attributes are displayed differently due to other (already existing, being implemented or planned) features, even if they have been listed in any of the previously mentioned settings.
(2) The DF annotation NOT_DISPLAYED
defines which attributes are not displayed at all even if they have been listed in any of the previously mentioned setting.
(1) All attributes not defined by the previously listed settings are shown in the information
side panel with (i) icon.
Reminder of the rule's exception for Flags
If the value ID of an attribute that is defined as flag is longer than 4 characters, then this value will not be displayed as a flag but as a footnote.
Examples:
- https://de-qa.siscc.org/vis?lc=en&df[ds]=qa%3Astable&df[id]=SNA_TABLE1&df[ag]=OECD&df[vs]=1.0&av=true&pd=2015%2C2020&dq=AUS..VOB
- https://de-qa.siscc.org/vis?lc=en&df%5Bds%5D=OECD-staging&df%5Bid%5D=NAMAIN%40NAMAIN_T0102_Q_main&df%5Bag%5D=OECD.SDD.NAD&df%5Bvs%5D=1.0&av=true&pd=2019-Q1%2C&dq=Q.Y.....XDC.V.N.T0102&ly%5Brw%5D=STO%2CREF_SECTOR&ly%5Bcl%5D=TIME_PERIOD