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

Traffic Station dataset doesn't work properly #574

Open
sseppi opened this issue Jun 21, 2024 · 2 comments
Open

Traffic Station dataset doesn't work properly #574

sseppi opened this issue Jun 21, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@sseppi
Copy link
Contributor

sseppi commented Jun 21, 2024

I tried to access the Traffic Station dataset (see the following link) but I experinsed some problems.

https://databrowser.opendatahub.com/dataset/table/mobility/v2/flat/Trafficstation

It seems that the Data Browser doesn't shows all traffic stations in the Table View.

  • Device: Desktop
  • Operating System: Ubuntu 24.04
  • Browser: Chrome (v 125.0.6422.141), Brave (1.67.119) and Firefox (127.0.1)
  • Problem Description:
    Accessing the data about the Traffic Station only the first 25 Station are loaded and the "Lines per page" dropdown shows a strange "Infinity" message. Ad the switcher to next page doesn't work

Screenshot from 2024-06-21 09-14-54

  • Expected behaviour:
    I would like that the user experience of the switch to next page and the setup of the lines per page, is the same for all dataset (see screenshot below). In case that the Dataset has few entry the user should have anyway the possibility to choose different page sizes and in case be notified that there aren't more pages to navigate.

Screenshot from 2024-06-21 09-20-49

@sseppi sseppi added the bug Something isn't working label Jun 21, 2024
@sseppi sseppi added this to the Data Browser 2.5 - Beta milestone Jun 21, 2024
@gappc
Copy link
Collaborator

gappc commented Jun 23, 2024

@sseppi the Traffic Station dataset (like all mobility datasets) uses a pagination type that is different than the one from the tourism domain. The response does not contain any information about how many records are available at all, so there is no way to show that information to the user.

For the Traffic Station dataset pagination we pass the parameters offset and limit with the request, as a result we get an object with the following properties:

  • data: contains an array of result records (25 by default)
  • offset: the offset used for the request
  • limit: the limit used for the requests

Regarding the other feedback "...the user should have anyway the possibility to choose different page sizes...": this is already possible using the "Lines per page" option. Did you mean something different?

@sseppi
Copy link
Contributor Author

sseppi commented Jun 24, 2024

@gappc thank you for your feedback and explanation.

I knew that the pagination is different, but it seems to me that the behavior of the Traffic Station dataset is different than the other mobility datasets.

As you can see in the screenshot below, if I try to change the page size I get a strange "Infinity" message (look at the red bordered square).

Screenshot from 2024-06-21 09-14-54

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