Skip to content

New per-user and per-workflow job pages #318

@tcompa

Description

@tcompa

Let's move to two different "jobs" pages: one at the workflow level, and one with all jobs of a user

Per-workflow jobs

  1. This fetches all jobs related to a workflow, by fetching all jobs related to the corresponding project and then filtering on fractal-web side. Maybe we can improve this based on Expose per-user and per-workflow GET-job endpoints? fractal-server#920
  2. Data are filtered before filling the table, so that the table at first appears as clean (with all filters unset) and the URL does not include any query parameter
  3. The header of the page correctly says something like Jobs of workflow "My Workflow Name"
  4. The url&breadcrumbs of the page are appropriate (something like project/1/workflow/2/jobs in the URL, and the same structure in the breadcrumbs)
  5. A (top-right?) button brings you back to the workflow page
  6. The table does not include project and workflow columns

Per-user jobs

  1. It is always visible in the top menu, under the "Jobs" name
  2. It fetches all user's jobs, by first fetching all user's projects and then fetching all jobs of each project. Maybe we can have a single endpoint for this? (Expose per-user and per-workflow GET-job endpoints? fractal-server#920)
  3. It does not apply any filter on the job list
  4. It does show project.name and workflow.name columns
  5. The header of the page correctly says something like Jobs of user "admin@something.xxx"

Side effects

Other simplifications that are now possible

  1. The workflow-apply modal, upon success, redirects to the workflow page (without adding the job-id query parameter to the URL)
  2. We can probably fully disable the feature of URL query parameters being turned into table filters
  3. We automatically get rid of the "Job ID filters don’t show up in the interface" issue
  4. We most likely get rid of the "Transient display of other jobs during refresh: " issue

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions