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

Properly hide Tobira tab #1048

Merged
merged 2 commits into from
Jan 15, 2025
Merged

Properly hide Tobira tab #1048

merged 2 commits into from
Jan 15, 2025

Conversation

Arnei
Copy link
Member

@Arnei Arnei commented Jan 9, 2025

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.

In the event details tabs, the Tobira tab is showing
up even if Tobira is not configured. This patch
should fix that.
@Arnei Arnei added the type:bug Something isn't working label Jan 9, 2025
@Arnei Arnei requested a review from owi92 January 9, 2025 10:07
Copy link
Contributor

github-actions bot commented Jan 9, 2025

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

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

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.

Copy link
Contributor

github-actions bot commented Jan 9, 2025

This pull request is deployed at test.admin-interface.opencast.org/1048/2025-01-09_13-27-29/ .
It might take a few minutes for it to become available.

Copy link
Contributor

@owi92 owi92 left a 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.
Copy link
Contributor

@owi92 owi92 left a 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.

@Arnei Arnei merged commit 9511948 into opencast:main Jan 15, 2025
5 checks passed
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants