rucio / webui

RucioWebUI (v2.0)
Apache License 2.0
4 stars 15 forks source link

Dashboard: remove mocks and connect with real data #436

Closed maany closed 1 month ago

maany commented 3 months ago

Description

The dashboard currently renders mock data. We need to create api endpoints and features to retrieve the required data. This may require adding new endpoints to rucio

Motivation

No response

Change

No response

Additional Information

MytsV commented 2 months ago

Proposed request flow

Here's a draft of the request flow to the Rucio Server. The assumption currently is that the bar chart is supposed to be "locks per RSE".

Locks per RSE

image image

RSE usage

image

Notes

MytsV commented 2 months ago

There's an existing API page for only one of these features (list-account-rse-quotas). However, the usecase is calling two gateways, one of which isn't utilized in the UI and requires additional parameters.

There's a list rules endpoint, but it's missing a way to specify an account.

The list-rule-replica-lock-states endpoint fulfills the requirements.

There's no gateway for fetching the general RSE usage.

Summary

MytsV commented 2 months ago

Proposed UI changes

The dashboard should be made more convenient with the usage of tabs or some delimiters for the widgets. Problems with accessibility should be addressed. Human readable amount of disk space should be displayed.

I feel like building it from scratch may be quicker and more reliable than working on top of the current implementation.