Page MenuHomePhabricator

Two versions of WVUI loaded
Closed, InvalidPublicBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):

  • opt into modern Vector
  • go to Special:GlobalWatchlist
  • perform a search

What happens?:

Both wvui and wvui-search modules are loaded at the same time

What should have happened instead?:

Only wvui should be loaded, or wvui-search should be a subset of wvui aided by code splitting

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc:

Event Timeline

@Jdlrobson by default Special:GlobalWatchlist shouldn't be loading WVUI (or Vue), thats only if $wgGlobalWatchlistUseVue is true, which isn't done anywhere, or if $wgGlobalWatchlistDevMode is true (currently only on the beta cluster) *and* you specify a displayversion=vue parameter in the URL. So, if this is occurring in production (or locally without those overrides) then there is a separate issue that the vue code is being loaded when it shouldn't. Is this double loading specific to Special:GlobalWatchlist? Or does it happen elsewhere too?

It can also happen in production if a QuickSurvey is enabled.

It's going to become more of a problem as more things adopt Vue.js using components outside the wvui-search bundle.

Per T310243: Deprecate WVUI in favor of Codex and with TypeaheadSearch now being Codex based. For similar issue around Codex see above mentioned T310553.