-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New admin-area task page #480
Comments
(fractal-server v2.0.5 is now available on PyPI) |
This is a first version of the tasks admin page. To avoid having a too big table I've displayed only some data in the table and I added an "Info" button that opens a modal showing the complete information. I'm not sure if we have to display the source column, since its content is usually quite long, but I think it would be a bit weird to have it in the filters and not in the table. The info modal displays the task properties and task relationships in separate accordions: I think we can use a dropdown to select the owner filter. I'm currently filling the list using the usernames, falling back to the email if the username is null. Is this approach correct? I imagined that a Delete button could be also useful but I'm not sure if we want to implement a mechanism that first delete all the references and then deletes the task. I've also started to see this error: How we should handle this case? Should I add the |
The correct fallback is slightly different. |
We included this option provisionally, until we test this page/endpoint a bit further. |
Addendum to our ongoing discussion The "info" messages could look like this:
|
now closed with #484 |
As of the upcoming 2.0.5 version, fractal-server has a new superuser-only
GET /admin/v2/task/
endpoint (thanks @ychiucco!). This is a first version of this endpoint, which we can still refine in the future. Its first use case is to help with issues like fractal-analytics-platform/fractal-server#1457.It's a GET request (without request body), with a bunch of optional query parameters to filter the task list:
On this page, the admin can set some query filters for tasks, and get a list of enriched task objects. Each one of this objects has some basic task properties (id, name, commands, ..) and a list of relationships (including the list of workflows-projects-users associated to it).
The specific response-body models are available in https://fractal-analytics-platform.github.io/fractal-server/openapi/openapi.json (see also https://github.com/fractal-analytics-platform/fractal-server/blob/main/fractal_server/app/routes/admin/v2.py), and an example response body (fractal-analytics-platform/fractal-server#1465 (comment)) looks like
The text was updated successfully, but these errors were encountered: