Skip to content

feat: add API package to register handlers in init scripts#2922

Merged
susnux merged 3 commits into
masterfrom
feat/viewer-api
Sep 2, 2025
Merged

feat: add API package to register handlers in init scripts#2922
susnux merged 3 commits into
masterfrom
feat/viewer-api

Conversation

@susnux

@susnux susnux commented Aug 5, 2025

Copy link
Copy Markdown
Contributor

This adds a small package allowing to interact with the viewer.
As of now it only provides an API to register a handler.

This way Viewer handlers can be registered within init scripts and thus are available as soon as the file list is rendered.
We could extend this in the future and also adjust for #2395 but for now this is more a fix for the broken (flaky) behavior we have with viewer handlers.

Based on this we can fix:

@susnux susnux requested a review from skjnldsv August 5, 2025 14:04
@susnux susnux added enhancement New feature or request 3. to review Waiting for reviews labels Aug 5, 2025
@susnux susnux requested a review from juliusknorr August 5, 2025 14:04
@susnux susnux force-pushed the feat/viewer-api branch 3 times, most recently from 403bfe7 to 84a5994 Compare September 1, 2025 14:09
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux

susnux commented Sep 1, 2025

Copy link
Copy Markdown
Contributor Author

/compile rebase

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux merged commit c473823 into master Sep 2, 2025
39 of 41 checks passed
@susnux susnux deleted the feat/viewer-api branch September 2, 2025 00:38
@susnux

susnux commented Sep 2, 2025

Copy link
Copy Markdown
Contributor Author

/backport 5732401 to stable31

@backportbot backportbot Bot added the backport-request Pending backport by the backport-bot label Sep 2, 2025
@susnux

susnux commented Sep 2, 2025

Copy link
Copy Markdown
Contributor Author

/backport 5732401 to stable30

@backportbot backportbot Bot removed the backport-request Pending backport by the backport-bot label Sep 2, 2025
@backportbot

backportbot Bot commented Sep 2, 2025

Copy link
Copy Markdown

The backport to stable30 failed. Please do this backport manually.

# Switch to the target branch and update it
git checkout stable30
git pull origin stable30

# Create the new backport branch
git checkout -b backport/2922/stable30

# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts, resolve them
git cherry-pick 57324010

# Push the cherry pick commit to the remote repository and open a pull request
git push origin backport/2922/stable30

Error: Failed to check for changes with origin/stable30: No changes found in backport branch


Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

susnux added a commit that referenced this pull request May 16, 2026
feat: add API package to register handlers in init scripts
susnux added a commit that referenced this pull request May 16, 2026
feat: add API package to register handlers in init scripts
susnux added a commit that referenced this pull request May 16, 2026
feat: add API package to register handlers in init scripts
susnux added a commit that referenced this pull request May 16, 2026
feat: add API package to register handlers in init scripts
susnux added a commit that referenced this pull request May 16, 2026
feat: add API package to register handlers in init scripts
susnux added a commit that referenced this pull request May 16, 2026
feat: add API package to register handlers in init scripts
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 enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

How to deal with updates (view, action)?

2 participants