Skip to content
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

fix: Make loading the viewer an init script #2486

Merged
merged 4 commits into from
Sep 9, 2024
Merged

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Sep 9, 2024

Move all init logic into an init script so that the viewer action is always registered before the file list is loaded.

@susnux susnux added bug Something isn't working 3. to review Waiting for reviews labels Sep 9, 2024
@susnux susnux added this to the Nextcloud 31 milestone Sep 9, 2024
@@ -4,7 +4,7 @@
"optimize-autoloader": true,
"classmap-authoritative": true,
"platform": {
"php": "8.0"
"php": "8.1"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

otherwise nextcloud/ocp stays at some very old version due to other dependencies that could not be updated.
Meaning this is required to update a version that known addInitScript...

@susnux
Copy link
Contributor Author

susnux commented Sep 9, 2024

/compile

@susnux susnux force-pushed the fix/load-viewer-init branch from d3a822f to d71d305 Compare September 9, 2024 11:44
Copy link
Member

@mejo- mejo- left a comment

Choose a reason for hiding this comment

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

Works well.

@mejo- mejo- merged commit f22b619 into master Sep 9, 2024
28 checks passed
@mejo- mejo- deleted the fix/load-viewer-init branch September 9, 2024 12:49
@juliusknorr
Copy link
Member

@susnux Do you think it would make sense to also backport this for nextcloud/richdocuments#3815 ? I would imagine this also helps there.

@susnux
Copy link
Contributor Author

susnux commented Sep 9, 2024

@juliushaertl yes this makes sense, but this does not work with Nextcloud 30 and before on public shares. As for those versions the legacy file actions need to be registered after the file list.
I try to adjust the code.

@susnux
Copy link
Contributor Author

susnux commented Sep 9, 2024

/backport to stable30

@backportbot backportbot bot added the backport-request Pending backport by the backport-bot label Sep 9, 2024
@backportbot backportbot bot removed the backport-request Pending backport by the backport-bot label Sep 9, 2024
@skjnldsv
Copy link
Member

/backport to stable29

@backportbot backportbot bot added the backport-request Pending backport by the backport-bot label Sep 11, 2024
@skjnldsv
Copy link
Member

/backport to stable28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants