Skip to content

Allow stats to set textfilter#1120

Merged
gregorydlogan merged 2 commits intoopencast:mainfrom
Arnei:eth-text-filter-from-stats
Mar 7, 2025
Merged

Allow stats to set textfilter#1120
gregorydlogan merged 2 commits intoopencast:mainfrom
Arnei:eth-text-filter-from-stats

Conversation

@Arnei
Copy link
Copy Markdown
Member

@Arnei Arnei commented Feb 25, 2025

The stats over the events table (Today, Running etc.) can set filters for the events table if clicked on. However, it was not possible to use this to set a textfilter (text in the search field). This patch fixes that.

How to test this

Requires configuring the listprovider etc/listproviders/admiminui.stats.properties in Opencast. One example configuration would be:

FINISHED_WITH_COMMENTS=\
  {"filters": [{"name": "comments", "filter": "FILTERS.EVENTS.COMMENTS.LABEL", "value": "OPEN"},\
               {"name": "status", "filter": "FILTERS.EVENTS.STATUS.LABEL", "value": "EVENTS.EVENTS.STATUS.PROCESSED"},\
               {"name": "textFilter", "value": "-oaipmh"}],\
  "description": "DASHBOARD.FINISHED_WITH_COMMENTS",\
  "order":11}

The stats over the events table (Today, Running etc.) can set filters
for the events table if clicked on. However, it was not possible to use
this to set a textfilter (text in the search field). This patch fixes
that.
@Arnei Arnei added type:bug Something isn't working type:enhancement New feature or request labels Feb 25, 2025
@github-actions
Copy link
Copy Markdown
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-1120

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-1120

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.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 25, 2025

This pull request is deployed at test.admin-interface.opencast.org/1120/2025-02-25_13-47-10/ .
It might take a few minutes for it to become available.

Usually if the user clicks on the stats button,
they want to filter by exactly what the button promises, without the
results being further influenced by a textfilter.
@gregorydlogan gregorydlogan self-assigned this Mar 7, 2025
@gregorydlogan gregorydlogan merged commit 1f39761 into opencast:main Mar 7, 2025
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:enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants