Page MenuHomePhabricator

Get list of types and their keys from wiki, including labels in requested language
Closed, ResolvedPublic

Description

The list of types currently seems hardcoded. It should request the list of types from the wiki, or use an autocomplete/search given what is typed.

The labels should be in the users language.

How to reproduce: add a new key. It then gives you a dropdown field with a list of types. This list does not correspond to the list of types available in the given wiki.

Event Timeline

Jdforrester-WMF renamed this task from Get list of types from wiki to Get list of types and their keys from wiki, including labels in requested language.Oct 22 2020, 6:10 PM
DVrandecic raised the priority of this task from Low to Medium.Dec 16 2020, 6:29 PM

Change 651795 had a related patch set uploaded (by Jforrester; owner: ArthurPSmith):
[mediawiki/extensions/WikiLambda@master] Replace TypeSelector with SelectZobject

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

Change 651795 merged by jenkins-bot:
[mediawiki/extensions/WikiLambda@master] Replace TypeSelector with SelectZobject

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

DVrandecic raised the priority of this task from Medium to High.Jan 13 2021, 5:22 PM

See also https://gerrit.wikimedia.org/r/c/mediawiki/extensions/WikiLambda/+/656176 which removes the remaining dependencies on the hard-coded types list except for the following:

this.keylabel = editingData.ztypes.Z3;

in OtherKeys.vue.

this.keylabel = editingData.ztypes.Z3;

which was fixed in a patch. All this now deployed!

Change 656230 had a related patch set uploaded (by ArthurPSmith; owner: ArthurPSmith):
[mediawiki/extensions/WikiLambda@master] Remove the hardcoded list of types (and English labels) from the editing context

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

Change 656233 had a related patch set uploaded (by Jforrester; owner: Jforrester):
[mediawiki/extensions/WikiLambda@master] Follow-up ecb516fe37: Drop TEMP_TYPES_IN_ENGLISH, no longer read

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

Change 656233 abandoned by Jforrester:
[mediawiki/extensions/WikiLambda@master] Follow-up ecb516fe37: Drop TEMP_TYPES_IN_ENGLISH, no longer read

Reason:
Arthur got there first in I973eaed760.

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

Change 656230 merged by jenkins-bot:
[mediawiki/extensions/WikiLambda@master] Remove the hardcoded list of types (and English labels) from the editing context

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

I think we're done here now? Thanks for all the help guys!