Skip to content

Filter available roles in dropdown by config#1561

Open
Arnei wants to merge 1 commit intoopencast:developfrom
Arnei:filter-roles-in-dropdown-by-custom-prefix
Open

Filter available roles in dropdown by config#1561
Arnei wants to merge 1 commit intoopencast:developfrom
Arnei:filter-roles-in-dropdown-by-custom-prefix

Conversation

@Arnei
Copy link
Copy Markdown
Member

@Arnei Arnei commented Apr 2, 2026

Adds a feature that reduces the number of available options in the dropdowns in the access policy tab. It does this bx matching prefixes that are defined in the
config in the backend.
This can for example be used to filter out all roles with "ROLE_GROUP" prefix, to make the dropdowns more usable.

Will not break anything without the backend PR

How to test this

Requires you to be able to make config changes in the backend, else you can only test that everything works as usual.

Adds a feature that reduces the number of available options
in the dropdowns in the access policy tab. It does this bx matching
prefixes that are defined in the
config in the backend.
This can for example be used to filter out all roles with "ROLE_GROUP"
prefix, to make the dropdowns more usable.

// Filter available options by custom prefixes from the config
if (aclDefaults) {
if (aclDefaults["display_role_filter_prefixes"]) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

filter is unambiguous. Is it "filter out" or "filter for". Maybe change the config name to display_role_filter_blacklist_prefixes?

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 3, 2026

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/admin-interface:pr-1561

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/admin-interface:pr-1561

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.

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

Labels

type:enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants