Page MenuHomePhabricator

TypeError: allLabels.filter is not a function
Closed, DuplicatePublicBUG REPORT

Description

Steps:

  1. Click Run function on https://www.wikifunctions.org/wiki/Special:ViewObject/en/Z811
  2. the Console displays

jQuery.Deferred exception: allLabels.filter is not a function TypeError: allLabels.filter is not a function
The Result is empty:

Screen Shot 2023-10-23 at 2.35.02 PM.png (944×1 px, 67 KB)

Testing Note:

  • the drop-down menu for Type will provide some suggestions, but they cannot be selected.

Event Timeline

Jdforrester-WMF changed the subtype of this task from "Task" to "Bug Report".Oct 23 2023, 10:58 PM

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

[mediawiki/extensions/WikiLambda@master] mixins/schemata.canonicalize: Don't try to use .filter() on a non-Array

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

Jdforrester-WMF moved this task from To triage to Backlog on the Abstract Wikipedia team board.

Testing notes: Verify the fix on Special:RunFunction page

I think it's best for us to just merge this into T337080.

I think it's best for us to just merge this into T337080.

Yes, I checked & agree - done.

Change 968002 abandoned by Jforrester:

[mediawiki/extensions/WikiLambda@master] mixins/schemata.canonicalize: Don't try to use .filter() on a non-Array

Reason:

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