Skip to content

fix(appstore): Fix conflict with unified search pinia's instance - #67079

Merged
artonge merged 2 commits into
masterfrom
fix/unified-search-active-pinia
Nov 27, 2026
Merged

artonge merged 2 commits into
masterfrom
fix/unified-search-active-pinia

Conversation

@artonge

@artonge artonge commented Nov 27, 2026 •

Copy link
Copy Markdown
Collaborator

Fix a flacky test seen here: https://github.com/nextcloud/server/actions/runs/45977092701/job/140437865835?pr=66521

  1. Stop unified search from setting the global active pinia
  2. Harden the appstore be specifically using the app's pinia instnace

🤖 Generated with Claude Code

@artonge
artonge requested a review from a team as a code owner November 27, 2026 12:15
@artonge
artonge requested review from kristian-zendato and susnux and removed request for a team November 27, 2026 12:15
@artonge
artonge marked this pull request as draft November 27, 2026 14:29
The unified search script runs on every page, so making its pinia the
active
one hijacks stores used outside of components by the page's own app.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Louis Chmn <louis@chmn.me>
@artonge
artonge force-pushed the fix/unified-search-active-pinia branch from 1fd646c to 8cf2102 Compare November 27, 2026 14:36
App actions and store functions call stores outside of a component setup,
so pinia falls back to the global active pinia, which any other script on
the page can replace. Pass the appstore pinia explicitly instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Louis Chmn <louis@chmn.me>
@artonge
artonge marked this pull request as ready for review November 27, 2026 14:56
@artonge artonge changed the title fix(core): do not set unified search pinia as the active one fix(appstore): Fix conflict with unified search pinia's instance Nov 27, 2026
@artonge
artonge requested review from lukasdotcom and oleksandr-nc and removed request for kristian-zendato and susnux November 27, 2026 15:10
@artonge
artonge merged commit 8a1b561 into master Nov 27, 2026
95 of 108 checks passed
@artonge
artonge deleted the fix/unified-search-active-pinia branch November 27, 2026 16:01
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.

4 participants