dashjoin / platform

Dashjoin Is an Open Source & Cloud Native Low Code Development and Integration Platform that helps teams deliver applications faster 🚀 Uses a data-driven approach inspired by Linked Data to make use of your existing assets
https://dashjoin.com
GNU Affero General Public License v3.0
89 stars 7 forks source link

Set default "Rows per page" for Action table #380

Open pgrill79 opened 1 week ago

pgrill79 commented 1 week ago

We use many Action tables and Tables and most of the time we want to show more than 10 rows per page (which is the default).

So it would be great to have the possiblity to set a default "Rows per page" for each action table or that this value is stored permanently.

aeberhart commented 1 week ago

The sort order, filters and rows to display are stored in the local storage (visible in the dev console / Application). A sample key is:

RaStore.preferences.$gitStatus().{"type":type, "path":path, "diff": diff}5.listParams = 
{"filterValues":{},"sort":{"field":"diff","order":"ASC"},"perPage":50}

As the key, we chose the jsonata expression appended with the result length. This reason for that is to make sure the table is updated when an entry is deleted.

This has the negative side effect, that the settings are lost if the row count changes for other reasons.

We need to come up with another way of handling updates while not including the result count in the resource key

aeberhart commented 1 week ago

guess this issue #363 is also related

both tables get the ConstDataProvider with the same ID ($ call("fn")). The fact that they have different arguments makes no difference when computing the resource