Michael added a comment.

  **breakdown notes**
  
  - The scope of this task is to ensure that language codes that include a Q-id 
are saved in a standardized way
  
  Subtask 1: make sure only codes with an uppercase `Q`-id  are saved (sub-task 
will be created when this story is picked up)
  
  - show error if saving a language `mis-x-` code with a lowercase item id
  - this will need adjusting the LexemeTermLanguageValidator 
<https://gerrit.wikimedia.org/g/mediawiki/extensions/WikibaseLexeme/+/60ffd38a76d3c59f3ad2aeba429be519e9651737/src/DataAccess/ChangeOp/Validation/LexemeTermLanguageValidator.php>
 as discussed in T268689#6646820 
<https://phabricator.wikimedia.org/T268689#6646820>
  - this should get us ~80% of the benefit of this story
  
  Subtask 2: automatically normalize lowercase `q` in item IDs to uppercase `Q` 
when saving instead of showing an error
  
  - this task might benefit from having its priority reconfirmed by @Manuel
  - it might make sense to do this for other parts of the language code as well
  - This might have to happen in ChangeOpLemmaEdit 
<https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/WikibaseLexeme/+/60ffd38a76d3c59f3ad2aeba429be519e9651737/src/DataAccess/ChangeOp/ChangeOpLemmaEdit.php>

TASK DETAIL
  https://phabricator.wikimedia.org/T268689

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Michael
Cc: Michael, Manuel, ItamarWMDE, Esc3300, Lydia_Pintscher, 
Lucas_Werkmeister_WMDE, LucasWerkmeister, Nikki, mrephabricator, Astuthiodit_1, 
karapayneWMDE, Invadibot, maantietaja, Akuckartz, Nandana, Lahi, Gq86, 
GoranSMilovanovic, Mahir256, QZanden, LawExplorer, _jensen, rosalieper, 
Bodhisattwa, Scott_WUaS, Wikidata-bugs, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to