Closed elbotho closed 4 months ago
And indeed, it's due to a strange code for the video See https://github.com/serlo/database-layer/blob/main/server/src/uuid/model/entity_revision/video_revision.rs
impl From<&AbstractEntityRevision> for VideoRevision {
fn from(abstract_entity_revision: &AbstractEntityRevision) -> Self {
let url = abstract_entity_revision.fields.get_or("content", "");
let title = abstract_entity_revision.fields.get_or("title", "");
let content = abstract_entity_revision.fields.get_or("description", "");
So the DB migration caused this bug. I'll update the migration
It seems the fix has worked
content
should be the description (editor state) of the video and url the actual video url.e.g.
return with
same query result in prod: