Page MenuHomePhabricator

[PHP/DB]: Audit and fix the way lightweight enum types are registered in the secondary tables to make them searchable
Closed, ResolvedPublic

Description

Description

  • For wikilambdasearch_labels: the return type should be Z4
  • Consider whether there are other implications for filter functions and special pages

Open questions

  • Should type be Z4. As in 'wikilambdasearch_type=Z4' ? Because it already returns when 'wikilambdasearch_return_type=Z4'. The Frontend uses the wikilambdasearch_type=Z4' in the ZObjectSelector

current vars on fe:
wikilambdasearch_search: enum
wikilambdasearch_type: Z4
wikilambdasearch_return_type: Z4
wikilambdasearch_strict_return_type: true

  • Add more detailed description + Acceptance criteria to this ticket
  • We should describe the other implications. Unsure what Special Pages might be implicated here

Desired behavior/Acceptance criteria

  • ...

Completion checklist

Event Timeline

DSmit-WMF updated the task description. (Show Details)
DSmit-WMF changed the task status from Open to In Progress.May 12 2025, 1:00 PM
DSmit-WMF claimed this task.

Change #1144597 had a related patch set uploaded (by Daphne Smit; author: Daphne Smit):

[mediawiki/extensions/WikiLambda@master] Add additional handling of lightweight enum types in secondary tables

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

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

[mediawiki/extensions/WikiLambda@master] [WIP] Fix label search so that it can aggregate return types from wikilambda_zobject_join

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

Change #1144597 abandoned by Genoveva Galarza:

[mediawiki/extensions/WikiLambda@master] Add additional handling of lightweight enum types in secondary tables

Reason:

This change is not needed anymore

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

Change #1149452 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Fix label search so that it can aggregate return types from wikilambda_zobject_join

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