-
Notifications
You must be signed in to change notification settings - Fork 269
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
feat(nextcloud): add support of imaginary an externalPreviewProvider #622
base: main
Are you sure you want to change the base?
Conversation
6ace176
to
44beda3
Compare
04d871c
to
5b0fc90
Compare
ping @jessebot / @provokateurin do you like to review? |
Sorry, I don't have the time for that atm. I hope I can do it at some point, but only at the beginning of next month the earliest. |
5b0fc90
to
13cba3b
Compare
oh this is neat! May I ask what the difference between this and the preview generator app are? (I'm not against it btw, just want to learn more) I will review this more thoroughly as soon as I have a moment 🙏 |
4389148
to
0c32ab9
Compare
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.
Looks good to me. Thanks for this! Perhaps we can add another PR for adding a CI test of some sort in the future?
Thank you for working on this 🚀 |
490e772
to
fd741c3
Compare
rebased on main and add docu in e393d90 like @SIMULATAN suggested |
fd741c3
to
e393d90
Compare
3f7a295
to
687f8b9
Compare
rebased, squashed und test added |
687f8b9
to
13c32f8
Compare
13c32f8
to
592b11f
Compare
rebased - Does i interprate you @jessebot last comment correct, that i could merge it? |
592b11f
to
cb01438
Compare
cb01438
to
bd13abf
Compare
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.
LGTM, just one question
charts/nextcloud/README.md
Outdated
'enabledPreviewProviders' => array( | ||
0 => 'OC\\Preview\\Imaginary', | ||
1 => 'OC\\Preview\\ImaginaryPDF', |
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.
Given that this is required for imaginary to be utilized, should it just be part of the defaultConfig?
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.
I am not sure which other PreviewProvider are default.
And which we should enable after enable Imaginary (like for office/collabora and txt files).
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.
I don't remember if the config values with arrays are merged or overwritten, but if they are just merged then there is no problem with adding these. Maybe you can check how that works and based on that we enable them by default or not.
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.
Found defaults: https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html#enabledpreviewproviders
I will change it
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.
changed in f910cc6
bd13abf
to
f910cc6
Compare
It would be nice to add a test that generating the preview works (similar to how we test S3 in the job). |
Yes, it would be nice - i do not know when a preview generation is triggered (i believe in viewing) |
You can request a preview via https://github.com/nextcloud/server/blob/b5ac989ecd4e6f380af4699cb8c0aae872284459/core/openapi.json#L8178 |
df7cedf
to
d61c3e1
Compare
Signed-off-by: WrenIX <[email protected]>
Signed-off-by: WrenIX <[email protected]>
1d58fc3
to
fb41953
Compare
Signed-off-by: WrenIX <[email protected]>
fb41953
to
3613d83
Compare
Description of the change
Benefits
Possible drawbacks
Works for me.
TODO:
Checklist
Chart.yaml
according to semver.