Remove the unused syncWithVuex Pinia plugin
Summary
The syncWithVuex Pinia plugin has no callers left. Remove it.
Background
The plugin was added in December 2024 to keep a Pinia store and a Vuex store in step during the Pinia migration. It had two consumers:
- The diffs app, synced from January 2025 until merge requests dropped Vuex in July 2025.
- The notes store, synced from June 2025 until !257865 (merged) removed the Vuex notes store on 2026-09-25.
On current master, no file in app/ or ee/app/ calls syncWith or passes a syncWith store option. The plugin is still defined and registered, but it does nothing.
Proposal
- Remove
syncWithVuexfromapp/assets/javascripts/pinia/plugins.js. - Remove its registration in
app/assets/javascripts/pinia/instance.js. - Remove the
syncWithVuexblock fromspec/frontend/pinia/plugins_spec.js. - Remove the
computed value is readonlyallowlist entry from !256639 (merged) if that MR is still open, or fromspec/support/browser_console_allowlist.ymlif it has merged. The plugin was the only source of that warning.
No user-facing change. Remaining Vuex stores have no Pinia counterpart and do not use the plugin. A future migration can go straight to Pinia.
References
- Removed the last consumer: !257865 (merged)
- Closed as obsolete because of this: !257066 (closed)
- Reviewer suggestion to drop the sync instead of patching it: !257066 (comment 3901341691)
- Allowlist that still carries the warning this plugin caused: !256639 (merged)
- Console error catalogue: #628901
Edited by 🤖 GitLab Bot 🤖