-
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
Asset-Upload fixed #750
Asset-Upload fixed #750
Conversation
This patch fixes the asset upload.
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/750/2024-07-08_14-12-16/ . |
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.
Works and makes sense to me.
Ideally we would not have to make assumptions about magic variables in workflows and have the backend sort it out somehow, but arguably restoring the upload to working order is more important and the assumptions we have to make are not too annoying.
Minor nitpicks below:
src/slices/eventDetailsSlice.ts
Outdated
|
||
let processing: { | ||
workflow: string | undefined, | ||
configuration: typeof uploadAssetWorkflowConfiguration, |
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.
Should be using tabs instead of spaces for indentation.
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.
done
src/slices/eventDetailsSlice.ts
Outdated
} | ||
}); | ||
|
||
let uploadAssetWorkflowConfiguration: { |
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.
Minor stylistic nitpick: It is preferred to use const
instead of let
whenever possible.
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.
Thank you for the info. I've updated the PR.
src/slices/eventDetailsSlice.ts
Outdated
options: [], | ||
}; | ||
|
||
let assetFlavors: string = ""; |
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.
It is not necessary to type everything explicitly. For example, in this case typescripts type inference would have no problem inferring that this should be a string.
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.
done
Co-authored-by: Arne Wilken <[email protected]>
Thank you @Arnei. I've updated the PR with your suggestions. Please continue review. |
This patch fixes the asset upload.