Page MenuHomePhabricator

DefaultView page-wide behavior: Make sure that all used and referred Zids and keys are fetched
Closed, ResolvedPublic

Description

Description

When using or referring a Zid or Key, we make sure that we call the store action fetchZKeys( { zids: [Z1, Z2, Z3, etc] } ). This action only requests zids to wikilambda php when they are not available in the vuex store. Once requesting all the zids in batch, it keeps track of the labels of Zids and Zkeys so that the UI presents human-readable texts instead of Znonsense.

For this to happen, the components that handle loading initial data or adding sub-zobjects or changing types (ZObjectKeyValue component most probably), needs to make this call whenever there's any change.

  • Make sure that this is always being done at the right time.
  • Try to avoid Zglitches

Desired behavior/Acceptance criteria

  • All zids and keys (labels, types, texts, selectors etc) are presented in human-readable form instead of Zshaped
  • Glitch between Zkeys and human readable strings is minimized!

Completion checklist

Event Timeline

Change 931311 had a related patch set uploaded (by Genoveva Galarza; author: Genoveva Galarza):

[mediawiki/extensions/WikiLambda@master] Fix initialization and control fetchZKeys when new zids appear

https://gerrit.wikimedia.org/r/931311

Change 931311 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Fix initialization and control fetchZKeys when new zids appear

https://gerrit.wikimedia.org/r/931311