Skip to content

Fix playlist sync db issue #1366

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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Conversation

ferishili
Copy link
Contributor

This PR fixes #1255, which enhances playlist migration by enforcing foreign key constraints and make sure the non-nullable columns changes are correctly applied!

PS: the testing environement was a bit confusing for me to make sure that it is working properly, so please test this through!

@ferishili ferishili requested a review from tgloeggl May 12, 2025 12:45
@ferishili ferishili self-assigned this May 12, 2025
@ferishili ferishili added type:bug v:3 Everything related to the Stud.IP Opencast Plugin Version 3.x labels May 12, 2025
@dennis531
Copy link
Collaborator

dennis531 commented May 13, 2025

It seems that the playlists migration step fails in the tests:

image

With the change in #1368, the curl command should fail on errors.

@ferishili
Copy link
Contributor Author

ferishili commented May 22, 2025

The tests are green now!
However, I had to change the foreign key name from oc_playlist_ibfk_1 to oc_playlist_ibfk_2 in order for that to work!
This name change would be later confusing from developers because it happens not in migrations but in some files somewhere else!

Please help me make this name change known/notified!

[UPDATE]: with separate query we use the same fkey! So ignore this comment!

@ferishili
Copy link
Contributor Author

Separate query worked thanks @dennis531

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority:critical type:bug v:3 Everything related to the Stud.IP Opencast Plugin Version 3.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Synchronisierung aktivieren und Wiedergabelisten übertragen" funktioniert nicht
3 participants