kitodo / kitodo-production

Kitodo.Production is a workflow management tool for mass digitization and is part of the Kitodo Digital Library Suite.
http://www.kitodo.org/software/kitodoproduction/
GNU General Public License v3.0
58 stars 65 forks source link

Database statistic widget shows data about all clients #5781

Open solth opened 10 months ago

solth commented 10 months ago

Describe the bug The desktop page of Kitodo.Production contains a widget called "Database statistics" with information about the number of processes, tasks, projects etc. of the Kitodo.Production installation. This information is not filtered by client, though, which means it displays the cumulative number of each object in the database and is of little use or even misleading on systems with multiple clients.

To Reproduce Steps to reproduce the behavior:

  1. Login into Kitodo with an account that has the permission to see the database statistics on the desktop page

Expected behavior The widget should only display information about database objects of the current client.

Screenshots

Bildschirmfoto 2023-09-13 um 10 29 32

Release all releases up to and including 3.6.0-SNAPSHOT

henning-gerhardt commented 9 months ago

One question: if an user has access to many clients which data should be shown to this user? Only the data from the current client or to a summarized data of all access-able clients?

solth commented 9 months ago

That is a good question which I also thought about. In my opinion it would be most consistent with the rest of the UI if this current "database widget" would only display data associated with the currently selected client, even if the current user has multiple clients assigned. Then the number of processes in this widget would match the number of processes in the process list, for example, preventing some potential cognitive disruption.

If neccessary we could add a switch to this widget to toggle displaying all objects a user can potentially access due to his multiple clients?

Information about all database objects (independent from the clients assigned to a specific user) should be displayed separately to some administrators with a global "Database" permission, I guess.