You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While working on the "Data Semantics" section of a record in the Open Data portal, I noticed a bug. The column names in this section do not correspond to the actual content, and one of the columns is missing entirely. The attached image shows the issue from a custom record on my local instance of the Open Data portal:
Upon investigating, I found the issue lies in the following lines of code.
The problem lies in how the keys in the dictionary record.dataset_semantics[0] are handled. They are not in the same order as the values displayed, and the unit value is not displayed at all. This results in a disorganized table layout.
Another issue occurs when the first item in record.dataset_semantics does not have all fields defined. For instance, if the first item only defines type, variable, and description, but the second item includes type, unit, variable, and description, the unit column will not be displayed at all.
The text was updated successfully, but these errors were encountered:
While working on the "Data Semantics" section of a record in the Open Data portal, I noticed a bug. The column names in this section do not correspond to the actual content, and one of the columns is missing entirely. The attached image shows the issue from a custom record on my local instance of the Open Data portal:
Similar error can also be observed here here.
Upon investigating, I found the issue lies in the following lines of code.
The problem lies in how the keys in the dictionary
record.dataset_semantics[0]
are handled. They are not in the same order as the values displayed, and theunit
value is not displayed at all. This results in a disorganized table layout.Another issue occurs when the first item in
record.dataset_semantics
does not have all fields defined. For instance, if the first item only definestype
,variable
, anddescription
, but the second item includestype
,unit
,variable
, anddescription
, theunit
column will not be displayed at all.The text was updated successfully, but these errors were encountered: