-
Notifications
You must be signed in to change notification settings - Fork 36
Make event metadata load faster by fetching series options asynchronously #1375
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
base: r/18.x
Are you sure you want to change the base?
Conversation
Use Run test server using develop.opencast.org as backend:
Specify a different backend like stable.opencast.org:
It may take a few seconds for the interface to spin up. |
Should this be in develop when the backend changes will land in When applied (front and back-end), new events don't seem to load the series at all - no series are ever listed. |
Yes, they should go into the same branch, thanks for pointing that out. Unless, of course, they are broken. Will check. |
…usly If you have many series in your Opencast, any modal that displays event metadata can take several seconds to load. This patch aims at pushing the loading time back into millisecond terrritory no matter how many series there are. The problem is that when fetching event metadata from the backend, the backend also fetch all series options, which can take too long. So we change the backend to not do that, and change the frontend to fetch the series options separately. ideally we could also do this for other metadata fields with options (notably contributors and presenters), but the endpoint lacks the necessary filter capabilities.
Apparently our textFilter is now automatically treated as wildcard search and the "*" we used to trigger wildcard search are now breaking it, so we can just remove them.
a33b909
to
59f7ae0
Compare
Not quite sure why the build workflow is failing now. Builds on my machine. The issue with the series not loading should be fixed now though. |
Could this be node related? The workflows install a 20.x release, and when I use 20 I see this:
|
Probably not? If I read the workflow logs correctly the workflow is using node v20.19.4 which should be fine with vite 7. |
Breaks without the associated backend changes opencast/opencast#6924
Hopefully helps with #1230.
If you have many series in your Opencast, any modal that displays event metadata can take several seconds to load. This patch aims at pushing the loading time back into millisecond terrritory no matter how many series there are.
The problem is that when fetching event metadata from the backend, the backend also fetch all series options, which can take too long. So we change the backend to not do that, and change the frontend to fetch the series options separately.
Ideally we could also do this for other metadata fields with options (notably contributors and presenters), but the endpoint lacks the necessary filter capabilities.
How to test this patch
Install together with the required backend PR. Try to change series for new or existing events.
If you want to check for performance benefits, use an Opencast with ~10000 series.
Bildschirmaufzeichnung.vom.2025-07-22.13-54-35.webm