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

wrong sort order - schema:identifier of type^^xsd:integer #973

Closed
Rdataflow opened this issue Feb 22, 2023 · 1 comment
Closed

wrong sort order - schema:identifier of type^^xsd:integer #973

Rdataflow opened this issue Feb 22, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@Rdataflow
Copy link
Contributor

Rdataflow commented Feb 22, 2023

Describe the bug
The sort order found in filter (a - filter list, b - drop down, c - metadata panel) is wrongly ordered by schema:identifier interpreted as xsd:string - while in LINDAS it has type xsd:integer. NB: Meanwhile the legend (preview & published) is fine 👍

To Reproduce
a) Steps to reproduce the behavior:

  1. Go to https://int.visualize.admin.ch/create/new?cube=https://environment.ld.admin.ch/foen/gefahren-waldbrand-warnung/1
  2. Click on Color > Canton
  3. Scroll down to selected filters / or edit filters
  4. See wrong sort order applied ("1":Zurich, "10":Fribourg, "11":Solothurn, ...)

b) Steps to reproduce the behavior:

  1. Go to https://int.visualize.admin.ch/create/new?cube=https://environment.ld.admin.ch/foen/gefahren-waldbrand-warnung/1
  2. Click on add filter > Canton
  3. Open DropDown List
  4. See wrong sort order ("1":Zurich, "10":Fribourg, "11":Solothurn, ...)
    image

c) Steps to reproduce the behavior:

  1. Go to https://int.visualize.admin.ch/create/new?cube=https://environment.ld.admin.ch/foen/gefahren-waldbrand-warnung/1
  2. Click on Metadata > Data
  3. Open Canton
  4. See wrong sort order ("1":Zurich, "10":Fribourg, "11":Solothurn, ...)
    image

Expected behavior
Identifier parsed according to the data in lindas as xsd:integer and thus ordered (1:Zurich, 2:Berne, 3:Lucerne ...)
xref: #937 (comment)

Environment (please complete the following information):

  • Visualize environment and version: [e.g. INT v3.19.5]

Additional information
required for the upcoming go live of forest fire warning.

@ptbrowne
Copy link
Collaborator

@Rdataflow Has this dataset changed ? I remember solving the integer interpretation bug, but now I cannot re-check since I cannot use a column chart due to the lack of number measure.

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