-
Notifications
You must be signed in to change notification settings - Fork 23
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
Properly hide Tobira tab #1048
Properly hide Tobira tab #1048
Conversation
In the event details tabs, the Tobira tab is showing up even if Tobira is not configured. This patch should fix that.
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. |
This pull request is deployed at test.admin-interface.opencast.org/1048/2025-01-09_13-27-29/ . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See my comment. But yeah, I'm not surprised that the 503
check alone isn't enough/fails when Tobira is not configured. Somehow I don't know how to unconfigure Tobira, so I can't test this properly 🥲
- Makes sure that a web request is actually send, so that status and error fields will contain useful values. - Changes the check to include "status === failed". - Changes the check back to checking explicitly for a 503 response, instead of assuming that the service is unavailable if the error is undefined.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is working now.
In the event details tabs, the Tobira tab is showing up even if Tobira is not configured. This patch should fix that.
How to test this
Ideally this is tested by someone with a Tobira setup, so that they can confirm that the tobira tab still correctly shows up if Tobira is indeed configured. Properly setting up Tobira is somewhat involved, so I'll direct all questions about that to the Tobira docs and the main Tobira developers.