Skip to content
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

Make required metadata fields more visible #1566

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Arnei
Copy link
Member

@Arnei Arnei commented Mar 31, 2025

Helps with #1565.

Overall this PR aims at making the user more aware of required fields in the metadata tab, particularly if one of those required fields is missing a value which will result in an error in the backend. The individual changes can be found in the commit history.

Does not prevent the user from clicking "Save & Process" even if there are still validation issues. Would like to add that in a different PR as a more generalized version of #1517.

How to test this

Ideally this is tested with an Opencast you can control, so you can change which metadata fields are required in etc/org.opencastproject.ui.metadata.CatalogUIAdapterFactory-episode-common.cfg.

Arnei added 4 commits March 31, 2025 15:02
Metadata validation for dropdowns was no working,
this should help.
Validation for the metadata form was ignored for the
initial metadata values. This fixes that.
Mark required metadata fields with a "*"
like in the admin ui. This does not change
any functionality.
Instead of returning only one validation function per field,
allow returning multiple functions . For example, "duration"
may be required but should also be formatted correctly.
@Arnei Arnei added type:bug Something isn't working type:visual-clarity A part of the UI is not visually readable labels Mar 31, 2025
Copy link

This pull request is deployed at test.editor.opencast.org/1566/2025-03-31_15-16-12/ .
It might take a few minutes for it to become available.

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 type:visual-clarity A part of the UI is not visually readable
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant