ideonate / cdsdashboards

JupyterHub extension for ContainDS Dashboards
https://cdsdashboards.readthedocs.io/
Other
200 stars 38 forks source link

Pagination for large number of dashboards #46

Open ricky-lim opened 3 years ago

ricky-lim commented 3 years ago

Is your feature request related to a problem? Please describe. To scale with large number of created dashboards

Describe the solution you'd like A configurable pagination using config from jupyterhub 1.2.

Pagination(Configurable) options
--------------------------------
--Pagination.default_per_page=<Int>
    Default number of entries per page for paginated results.
    Default: 100
--Pagination.max_per_page=<Int>
    Maximum number of entries per page for paginated results.
    Default: 250

Describe alternatives you've considered Pagination in the admin panel in jupyterhub: https://github.com/jupyterhub/jupyterhub/pull/2929

Background context I am a scientific programmer and currently testing the feasibility of this software to create a large number of dashboards.

Configuration

I am using Zero to JupyterHub

danlester commented 3 years ago

Ricky, thank you for this idea, and for pointing to the functionality in JupyterHub. As you are perhaps implying, it would make sense to borrow the libraries etc from JH 1.2.

The lists of 'my dashboards' and 'others dashboards' may need different approaches. Perhaps it would be best to split those into two separate pages now.

ricky-lim commented 3 years ago

Hi Dan,

Agreed that sounds a good approach to split the dashboards into two sections

I think in general having paginations for "my dashboard" would also be desirable.

On top of that, it would be also very nice to have a simple search functionality like using FTS3 with sqlite, for a simple full text search. I think FTS feature would fit well in this use case.