Skip to content

Conversation

@marwyg
Copy link
Member

@marwyg marwyg commented Nov 11, 2025

If the workflow parameters for a scheduled event are not set, the default values didn't get used. The values also couldn't be changed.

With this change, the default values from the workflow parameters should be set for the workflow parameters in the workflow tab of the scheduled event. Here a screenshot of the tab:

image

To test this, you can schedule an event and change the workflow properties in the database and also set different workflow parameters in the workflow xml:

You could change the database with this sql for example:

update oc_scheduled_extended_event 
set workflow_properties = '{"not_existing_property1":"true","foobar":"false"}' 
where mediapackage_id = "af041d5d-1b75-4a6d-9f57-45321a80c4b4";

You could also set an empty list for testing.

In the workflow xml you can edit the configuration_panel_json and set different default values. If a value is not present in the database, the default value from the workflow xml should be used.

@github-actions
Copy link
Contributor

Use docker or podman to test this pull request locally.

Run test server using develop.opencast.org as backend:

podman run --rm -it -p 127.0.0.1:3000:3000 ghcr.io/opencast/opencast-admin-interface:pr-1476

Specify a different backend like stable.opencast.org:

podman run --rm -it -p 127.0.0.1:3000:3000 -e PROXY_TARGET=https://stable.opencast.org ghcr.io/opencast/opencast-admin-interface:pr-1476

It may take a few seconds for the interface to spin up.
It will then be available at http://127.0.0.1:3000.
For more options you can pass on to the proxy, take a look at the README.md.

@marwyg marwyg added the type:bug Something isn't working label Nov 11, 2025
@github-actions
Copy link
Contributor

This pull request is deployed at test.admin-interface.opencast.org/1476/2025-11-11_17-05-05/ .
It might take a few minutes for it to become available.

@Arnei
Copy link
Member

Arnei commented Dec 1, 2025

workflowPanelUtils.ts has similar code for getting default workflow parameters. Could we reuse that here and if not why not?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants