Skip to content

12.0.7 readiness: feature-detect MenuUtil tooltip + DoReadyCheck move#154

Open
Krathe82 wants to merge 1 commit into
DanderBot:mainfrom
Krathe82:pr/12-0-7-readiness
Open

12.0.7 readiness: feature-detect MenuUtil tooltip + DoReadyCheck move#154
Krathe82 wants to merge 1 commit into
DanderBot:mainfrom
Krathe82:pr/12-0-7-readiness

Conversation

@Krathe82

Copy link
Copy Markdown
Contributor

With addons disabled on the PTR, we audited the full 12.0.5 → 12.0.7 interface diff (generated API docs, secure templates, restricted environment, deprecation list) against everything the addon calls. The good news: C_UnitAuras, the secure group header layer, the secret-values predicates, and the Duration object pipeline are all unchanged or purely additive. Two call sites are affected by the patch, both fixed here with feature detection so the same code runs correctly on live today:

  1. MenuUtil.ShowTooltip / HideTooltip are deprecated in 12.0.7 (listed in Deprecated_12_0_7.lua) in favour of ShowTooltipEx / HideTooltipEx taking an explicit tooltip — the old names only survive behind the loadDeprecationFallbacks CVar. The addon-compartment tooltip now uses the Ex variants (+ GetAppropriateTooltip()) when present, falling back to the old API on 12.0.5 where the Ex variants don't exist.

  2. DoReadyCheck moves into C_PartyInfo in 12.0.7, and Blizzard migrated their own UI callers with no compat shim for the old global. The permanent mover's Ready Check action now prefers C_PartyInfo.DoReadyCheck, falling back to the global on 12.0.5.

No behaviour change on live; both paths activate automatically when 12.0.7 ships.

PTR API audit (Gethe 12.0.5 vs 12.0.7 tags) found two DF call sites touched
by the patch:

- MenuUtil.ShowTooltip/HideTooltip (addon compartment tooltip) are DEPRECATED
  in 12.0.7 (Deprecated_12_0_7.lua) in favour of the *Ex variants taking an
  explicit tooltip; the old names only survive behind the
  loadDeprecationFallbacks CVar. Feature-detect: use ShowTooltipEx/
  HideTooltipEx + GetAppropriateTooltip() when present (12.0.7), fall back to
  the old API (12.0.5, where the Ex variants don't exist).

- DoReadyCheck moves into C_PartyInfo in 12.0.7 and Blizzard migrated their
  own callers with NO compat shim for the old global. The permanent mover's
  Ready Check action now prefers C_PartyInfo.DoReadyCheck, falling back to
  the global on 12.0.5.

Both dual-compatible; no behaviour change on live.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant