Skip to content

Workflow upload/schedule display tags cannot be used separately in admin UI (using XML format) #1531

@scharnkn

Description

@scharnkn

Describe the bug

Using a workflow definition in XML format with display tags "schedule" or "upload" always leads to the workflow being shown in both parts of the admin UI, even when only one of the tags is used.

To Reproduce

  1. Create "WF upload" with the following tags definition:
...
  <tags>
    <tag>upload</tag>
  </tags>
...
  1. Create "WF schedule" with the following tags definition:
...
  <tags>
    <tag>schedule</tag>
  </tags>
...
  1. Create a new event in the admin UI and select "Upload" as source. The "Select workflow" dropdown shows both "WF upload" and "WF schedule".
  2. Create another new event in the admin UI and select "Schedule XXX events" as source. The "Select workflow" dropdown once again shows both "WF upload" and "WF schedule".

Expected behavior

When selecting "Upload" as source for the new event, the "Select Workflow" dropdown should only contain "WF upload". Respectively, when selecting "Schedule XXX event(s)" as source for the new event, the "Select workflow" dropdown should only contain "WF schedule".

User environment:

  • Device: PC
  • OS: Debian 12
  • Browser: Chrome
  • Version: 116.0.5845.96

Additional context

The newer YAML format is not affected by this.
In addition, if both tags are absent, the workflow is correctly hidden from both parts of the admin UI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions