Altinn / altinn-studio

Next generation open source Altinn platform and applications.
https://docs.altinn.studio
BSD 3-Clause "New" or "Revised" License
109 stars 73 forks source link

Buggy filtering of data model repos on Dashboard #12998

Open ErlingHauan opened 1 week ago

ErlingHauan commented 1 week ago

Description

Currently, we're using Gitea's API for sorting and pagination handling when fetching apps on the dashboard.

The challenge here is that Gitea's API does not support sorting by updatedBy or description, and it also cannot use "excluding keywords" like -datamodels. In order to only show the actual apps, not including data models, we have to filter on the client side, after having received all repos.

This leads to bugs like the one shown below, where we fetch a page with 5 rows, filter out 1, and the user ends up with 4 rows being displayed, even though the page size is set to 5:

image

Potential solutions: