Page MenuHomePhabricator

Metadata dialog: execution debug logs are not shown to the user, even though they're available
Closed, ResolvedPublicBUG REPORT

Description

Description

Steps to reproduce:

  1. Go to https://www.wikifunctions.org/wiki/Z10005?uselang=en&action=edit
  2. Add debug logs in the code.
function Z10000( Z10000K1, Z10000K2 ) {
  Wikifunctions.Debug("one");
  Wikifunctions.Debug("two");
  return Z10000K1 + Z10000K2;
}
  1. Execute this implementation
  2. Open the Details dialog

Observed behavior:

  • ✅ The execution correctly returns a list of strings with all debug logs:
{
    "Z1K1": {
        "Z1K1": "Z7",
        "Z7K1": "Z882",
        "Z882K1": "Z6",
        "Z882K2": "Z1"
    },
    "K1": "executorDebugLogs",
    "K2": [
        "Z6",
        "one",
        "two"
    ]
}
  • ❌ The execution logs key is shown, but no details are shown

Screenshot from 2025-11-19 10-54-17.png (732×561 px, 43 KB)

Expected behavior (Acceptance criteria):

  • The logs should be shown in the dialog

Completion checklist

Event Timeline

Jdforrester-WMF renamed this task from debugs not passing back to the user to Metadata dialog: execution debug logs are not shown to the user, even though they're available.Nov 19 2025, 12:27 PM
Jdforrester-WMF changed the task status from Open to In Progress.
Jdforrester-WMF assigned this task to gengh.
Jdforrester-WMF updated the task description. (Show Details)
Jdforrester-WMF added a subscriber: gengh.

Change #1207139 had a related patch set uploaded (by Jforrester; author: Genoveva Galarza):

[mediawiki/extensions/WikiLambda@master] Add transform to show executorDebugLogs in the metadata dialog

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

Change #1207139 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Add transform to show executorDebugLogs in the metadata dialog

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