Page MenuHomePhabricator

DefaultView - ZReference and ZObjectSelector: Select component displays the Zid value instead of the label when the label is not ready on time
Closed, InvalidPublicBUG REPORT

Description

Description

This issue was detected and handled before with some very rough around the edges solution. This was removed as part of:

https://gerrit.wikimedia.org/r/c/mediawiki/extensions/WikiLambda/+/886048

This doesn't really work properly. The check should be there to avoid showing Zids when the label hasn't been computed yet, but the check should be factorized and part of ZObjectSelector instead of being responsibility of the caller components.

Observed behavior:

  • Sometimes when loading ZObjects that have references in defaut view and edit mode, the ZObjectSelector shows the selected Zid instead of showing the label.

Related issue:
https://phabricator.wikimedia.org/T328425


Devices and Design (URLs or screenshots, if applicable):

  • Desktop: ...
  • Small screens/mobile: ...

Completion checklist

Event Timeline

gengh renamed this task from ZReference and ZObjectSelector components: Componen shows the value instead of the label when the label is not ready to ZReference and ZObjectSelector components: Select component displays the Zid value instead of the label when the label is not ready on time.Feb 27 2023, 8:02 AM
gengh created this task.
gengh updated the task description. (Show Details)
gengh renamed this task from ZReference and ZObjectSelector components: Select component displays the Zid value instead of the label when the label is not ready on time to DefaultView - ZReference and ZObjectSelector: Select component displays the Zid value instead of the label when the label is not ready on time.Feb 27 2023, 10:27 AM

Closing as duplicate of T333325