Page MenuHomePhabricator

Z861/'Wrap mono-lingual text' fails with 'this.functor_ is not a function'
Closed, ResolvedPublicBUG REPORT

Description

Description

Steps to reproduce (step by step instructions, with links, commands and necessary data to reproduce the error)

  1. Visit https://www.wikifunctions.org/view/en/Z861
  2. Under Try a function, enter a string and a language as the input arguments
  3. Run function

Observed behavior

  • In Details, notice the evaluation error and Unspecified error notations. The unspecified error, which can be seen using Developer Tools, includes the string 'this.functor_ is not a function'

We see this error occasionally in logstash, but to my knowledge we don't know if it's always associated with calls to this particular function.

A community member made the following comment in Telegram, on August 6: Why do we need a built-in Z861? Since the built-in implementation didn't work on the first test, I made a composition just switching the arguments of the similar function we already have: Z26107

Expected behavior/Acceptance criteria (returned value, expected error, performance expectations, etc.)

  • The error should not arise with valid inputs.

Completion checklist

Details

Related Changes in Gerrit:
Related Changes in GitLab:
TitleReferenceAuthorSource BranchDest Branch
Add orchestrator code implementing Z861/Wrap mono-lingual textrepos/abstract-wiki/wikifunctions/function-orchestrator!473dmartinT406540main
Customize query in GitLab

Event Timeline

Jdforrester-WMF subscribed.

David suggests we never finished writing this code, which would explain.

DMartin-WMF changed the task status from Open to In Progress.Oct 23 2025, 5:12 AM

Change #1199504 had a related patch set uploaded (by Cory Massaro; author: Cory Massaro):

[operations/deployment-charts@master] Wikifunctions: Upgrade orchestrator from 2025-10-22-011302 to 2025-10-28-205854.

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

Change #1199504 merged by jenkins-bot:

[operations/deployment-charts@master] Wikifunctions: Upgrade orchestrator from 2025-10-22-011302 to 2025-10-28-205854.

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

Confirming that this is now fixed in prod.