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 syncWithVuex from app/assets/javascripts/pinia/plugins.js.
  • Remove its registration in app/assets/javascripts/pinia/instance.js.
  • Remove the syncWithVuex block from spec/frontend/pinia/plugins_spec.js.
  • Remove the computed value is readonly allowlist entry from !256639 (merged) if that MR is still open, or from spec/support/browser_console_allowlist.yml if 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

Edited by 🤖 GitLab Bot 🤖