Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug Report: Misalignment of Column Names and Missing Column in "Data Semantics" Section #58

Open
Pepesob opened this issue Sep 23, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@Pepesob
Copy link

Pepesob commented Sep 23, 2024

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:

image

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 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.

@Biscgit Biscgit self-assigned this Sep 24, 2024
@Biscgit Biscgit added the bug Something isn't working label Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants