Skip to content

Conversation

@Arnei
Copy link
Member

@Arnei Arnei commented Jun 7, 2023

Opencast 13 reworked some of their common db classes (in PR opencast#3903), which we also use in the Annotation Tool, thus breaking it.

This commit attempts to fix the breaking changes by using the new classes introduced in Opencast 13. From a user perspective, this should change exactly nothing. There is also no DB migration, as the db entries themselves have not changed.

This commit is based on groundwork by @KatrinIhler, massive thanks to her.

Should fix #595, and supersede #606

Opencast 13 reworked some of their common db classes (in PR opencast#3903),
which we also use in the Annotation Tool, thus breaking it.

This commit attempts to fix the breaking changes by using the new classes
introduced in Opencast 13. From a user perspective, this should change
exactly nothing. There is also no DB migration, as the db entries
themselves have not changed.

This commit is based on groundwork by @KatrinIhler, massive thanks to her.
Copy link
Member

@JulianKniephoff JulianKniephoff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall this is fine, but I do have a few questions and nitpicks.

Oh and as a general note, I don't think lol and lel are appropriate variable names. ;D

Arnei added 3 commits July 20, 2023 10:17
Fix various small oversights from temporary development code
There were two functionally very similar `findById` functions.
Now there is only one.
Minimum version is now Opencast 13.
Arnei and others added 5 commits July 24, 2023 09:59
Apparently if you set parameters on a namedQuery directly,
there are some shenanigans that can happen when it comes to dates.
Opencast has a function called `configureQuery` https://github.com/opencast/opencast/blob/develop/modules/common/src/main/java/org/opencastproject/db/Queries.java#L58
to handle this, but does not grant anyone access to it. In my
plight I just copied it over.
…g our own.

Co-authored-by: Julian Kniephoff <me@juliankniephoff.com>
Make every caller pass their preferred type instead of doing a cast.
@Arnei Arnei force-pushed the fix-db-rework-issues-oc-13 branch from 30561e8 to 4816134 Compare July 24, 2023 09:40
Arnei and others added 3 commits July 25, 2023 12:55
Co-authored-by: Julian Kniephoff <me@juliankniephoff.com>
Co-authored-by: Julian Kniephoff <me@juliankniephoff.com>
Copy link
Member

@JulianKniephoff JulianKniephoff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@JulianKniephoff JulianKniephoff merged commit 5ff454b into opencast:master Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add OAT compatibility with Opencast Version 13

2 participants