Skip to content

feat(appstore): add a "Check for updates" button - #66707

Open
skjnldsv wants to merge 2 commits into
masterfrom
feature/appstore-force-refresh
Open

skjnldsv wants to merge 2 commits into
masterfrom
feature/appstore-force-refresh

Conversation

@skjnldsv

@skjnldsv skjnldsv commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Summary

The app list is cached for an hour (Fetcher::INVALIDATE_AFTER_SECONDS), so an app released in the meantime doesn't show up in the app store page. This adds a "Check for updates" button to the app list toolbar, next to the filters.

It calls a new admin endpoint, POST /ocs/v2.php/apps/appstore/api/v1/apps/refresh, which marks the cached apps and categories as outdated, then reloads both lists and recounts the apps with an update. The cached data and its ETag stay, so when nothing changed the app store answers with a 304.

Before After

The 5 minute back-off after a failed fetch still applies, so the button can't hammer the app store.

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

👾 This pull request was assisted by Claude Code, commits carry an Assisted-by trailer.

The app list is cached for an hour, so a release made in the meantime
stays invisible. POST /api/v1/apps/refresh marks the cached apps and
categories as outdated; the cached data and ETag stay, so an unchanged
list costs a 304.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: John Molakvoæ <14975046+skjnldsv@users.noreply.github.com>
In the toolbar of the installed, enabled, disabled and updates lists.
It reloads the apps and categories, and recounts the apps with an
update.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: John Molakvoæ <14975046+skjnldsv@users.noreply.github.com>
@skjnldsv
skjnldsv requested review from a team and provokateurin as code owners November 18, 2026 00:38
@skjnldsv skjnldsv added this to the Nextcloud 36 milestone Nov 18, 2026
@skjnldsv skjnldsv self-assigned this Nov 18, 2026
@skjnldsv
skjnldsv requested review from kristian-zendato, pringelmann and salmart-dev and removed request for a team November 18, 2026 00:38
@skjnldsv
skjnldsv force-pushed the feature/appstore-force-refresh branch 3 times, most recently from 037e718 to 1511183 Compare November 18, 2026 00:56
@skjnldsv
skjnldsv requested a review from a team November 18, 2026 00:59
@skjnldsv

Copy link
Copy Markdown
Member Author

integration & reuse failures are unrelated

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant