Description
Z16K3 is a new Boolean key of Z16/code (see T413943), which will be used to inform the orchestrator whether it needs to be prepared to enact one or more Evaluator-Orchestrator callbacks. The following handling is needed in WikiLambda:
- Upgrade all relevant PHP code to handle Z16K3 as an optional key (for a transition period).
- Upgrade all relevant JavaScript/Vue code to handle Z16K3 as an optional key (for a transition period).
- Upon Publish of a code implementation, use regular expressions to determine whether the code contains one or more Evaluator-Orchestrator callbacks (using the syntax determined by T415235). If so, set Z16K3 to true; otherwise set it to false.
Desired behavior/Acceptance criteria
- Setting Z16K3 should be done reliably for the obvious Evaluator-Orchestrator callback syntax (determined by T415235), but does not need to detect nonobvious ways in which Python or JavaScript code could specify a callback.
- After the initial Publish of the code implementation, Z16K3 should always be set in accordance with the most-recent published content (Z16K2 of the relevant Z16/code object).
Completion checklist
- Before closing this task, review one by one the checklist available here: https://www.mediawiki.org/wiki/Abstract_Wikipedia_team/Definition_of_Done#Front-end_Task/Bug_Completion_Checklist