Page MenuHomePhabricator

Trying to create a Z14 throws "Cannot read properties of undefined (reading 'filter')" in Vue code
Closed, ResolvedPublicBUG REPORT

Description

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

  • go to Special:CreateZObject
  • select Z14/Implementation

What happens?:
Nothing.

What should have happened instead?:
I should be able to create an implementation

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

Related Objects

StatusSubtypeAssignedTask
OpenNone
OpenNone
StalledNone
Resolvedcmassaro
OpenNone
OpenNone
OpenNone
OpenNone
OpenNone
DuplicateNone
OpenNone
Resolvedcmassaro
OpenNone
ResolvedJdforrester-WMF
OpenNone
OpenNone
OpenNone
OpenNone
OpenNone
ResolvedNone
ResolvedNone
Resolvedcmassaro
Resolvedcmassaro
ResolvedNone
Resolvedgengh
Resolvedgengh
DeclinedLindsaykwardell
ResolvedLindsaykwardell
Resolvedcmassaro
Resolvedcmassaro
ResolvedNone
ResolvedNone
Resolvedcmassaro
ResolvedNone
InvalidNone
Invalidgengh
ResolvedNone
ResolvedNone
ResolvedJdforrester-WMF
ResolvedNone
ResolvedNone
DeclinedNone
ResolvedSimoneThisDot
ResolvedSimoneThisDot
Resolvedcmassaro
ResolvedSimoneThisDot
Resolvedcmassaro
ResolvedBUG REPORTJdforrester-WMF
ResolvedJdforrester-WMF
ResolvedSimoneThisDot
ResolvedJdforrester-WMF
ResolvedDVrandecic
ResolvedNone
ResolvedNone
Resolvedcmassaro
ResolvedDVrandecic
ResolvedLindsaykwardell
Resolvedarthurlorenzi
ResolvedNone
InvalidNone
Resolvedcmassaro
Resolvedcmassaro
Resolvedcmassaro
Resolvedcmassaro
Resolvedcmassaro
ResolvedJdforrester-WMF
Resolvedcmassaro
Resolvedcmassaro
Resolvedcmassaro
ResolvedNone
ResolvedSimoneThisDot
ResolvedSimoneThisDot
ResolvedSimoneThisDot
ResolvedJdforrester-WMF
Resolvedcmassaro
Resolvedgengh
Resolvedcmassaro
ResolvedJdforrester-WMF
Resolvedcmassaro
Resolvedcmassaro
ResolvedNone
ResolvedDVrandecic
Resolvedcmassaro
Resolvedarthurlorenzi
ResolvedAdesojiThisDot

Event Timeline

@DVrandecic I just created an implementation on my copy (just updated with the latest versions of everything pulled from gerrit). Seems like maybe it was a temporary problem?

No, it still happens. It also happens on Notwikilambda.

Here's the error message I get in the console:

load.php?lang=en&modules=ext.wikilambda.edit|jquery&skin=vector&version=101mc:58 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'filter')
  at Object.findKeyInArray (load.php?lang=en&modules=ext.wikilambda.edit|jquery&skin=vector&version=101mc:58)
  at addZImplementation (load.php?lang=en&modules=ext.wikilambda.edit|jquery&skin=vector&version=101mc:24)
  at Array.<anonymous> (<anonymous>:18:746)
  at a.dispatch (<anonymous>:20:459)
  at Object.dispatch (<anonymous>:16:122)
  at load.php?lang=en&modules=ext.wikilambda.edit|jquery&skin=vector&version=101mc:32

Change 730792 had a related patch set uploaded (by Simone Cuomo; author: Simone Cuomo):

[mediawiki/extensions/WikiLambda@master] Cannot create Z14s

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

Jdforrester-WMF changed the task status from Open to In Progress.Oct 14 2021, 5:03 PM
Jdforrester-WMF claimed this task.

Change 730859 had a related patch set uploaded (by Jforrester; author: Jforrester):

[mediawiki/extensions/WikiLambda@master] typeUtils.findKeyInArray: Don't error when asked to find a key in an empty array

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

Jdforrester-WMF renamed this task from Cannot create Z14s to Trying to create a Z14 throws "Cannot read properties of undefined (reading 'filter')" in Vue code.Oct 14 2021, 5:05 PM
Jdforrester-WMF added a project: WikiLambda.

Change 730792 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] addZObjects.addZImplementation: Fix target object to rootState

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

Change 730859 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] typeUtils.findKeyInArray: Don't error when asked to find a key in an empty array

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