Michael created this task.
Michael added projects: Wikidata, wdwb-tech, Wikidata Lexicographical data, 
Vue.js, wmde-wikidata-tech.

TASK DESCRIPTION
  As part of the migration of Vue 2 to Vue 3 for all code that is deployed on 
Wikimedia-deployed MediaWikis, we need to also migrate the Vue code in 
WikibaseLexeme. That code is still using the legacy Vue 2 feature of "filters". 
They are no longer available in Vue 3.
  
  In WikibaseLexeme we're using three different filters:
  
  - `gloss.language|languageName`
  - `gloss.language|directionality`
  - `'wikibaselexeme-sense-gloss-redundant-language'|message`
  
  There is already a change demonstrating how to replace these filter calls 
with method calls: Vue 3: Turn filters into methods (I28310c09) 
<https://gerrit.wikimedia.org/r/c/mediawiki/extensions/WikibaseLexeme/+/843986>
  
  However, one particular challenge is that we are using the wmde-built library 
php-vuejs-templating <https://github.com/wmde/php-vuejs-templating> to render 
these templates in a PHP process. That library needs to be modified to support 
the new syntax. On the positive side though, this library is currently only 
used for Lexeme, but is much more general than it needs to be for that purpose. 
Particularly, it supports arguments for filters, multiple variables and 
multiple filters, even though we have no instance where any of that is used.
  So we can simplify it down to supporting only our current use-case.
  
  You can see a current list of filter expressions in our templates in code 
search: filter expressions in *.vue.html files in WikibaseLexeme 
<https://codesearch-beta.wmcloud.org/search/?q=%5B%5C.%5Cw-%5C%27%5C%25%5D%2B%5C%7C%5Cw%2B&files=%5C.vue%5C.html%24&excludeFiles=&repos=Extension%3AWikibaseLexeme>
  
  Acceptance Criteria
  -------------------
  
  [ ] Migrate all filter expressions in Extension:WikibaseLexeme (5 files)
    - resources/templates/glossWidget.vue.html 
<https://gerrit.wikimedia.org/g/mediawiki/extensions/WikibaseLexeme/+/94b1ebca7fa8032d4e642f8c389bcb5d3a5831a4/resources/templates/glossWidget.vue.html>
 (8 matches)
    - resources/templates/languageAndLexicalCategoryWidget.vue.html 
<https://gerrit.wikimedia.org/g/mediawiki/extensions/WikibaseLexeme/+/94b1ebca7fa8032d4e642f8c389bcb5d3a5831a4/resources/templates/languageAndLexicalCategoryWidget.vue.html>
 (4 matches)
    - resources/templates/lemma.vue.html 
<https://gerrit.wikimedia.org/g/mediawiki/extensions/WikibaseLexeme/+/94b1ebca7fa8032d4e642f8c389bcb5d3a5831a4/resources/templates/lemma.vue.html>
 (5 matches)
    - resources/templates/lexemeHeader.vue.html 
<https://gerrit.wikimedia.org/g/mediawiki/extensions/WikibaseLexeme/+/94b1ebca7fa8032d4e642f8c389bcb5d3a5831a4/resources/templates/lexemeHeader.vue.html>
 (3 matches)
    - resources/templates/representations.vue.html 
<https://gerrit.wikimedia.org/g/mediawiki/extensions/WikibaseLexeme/+/94b1ebca7fa8032d4e642f8c389bcb5d3a5831a4/resources/templates/representations.vue.html>
 (5 matches)
  [ ] Modify php-vuejs-templating 
<https://github.com/wmde/php-vuejs-templating> so that our server-side 
rendering still works as it used to
  
  Notes
  -----
  
  - The midterm plan is for php-vuejs-templating 
<https://github.com/wmde/php-vuejs-templating> is to be replaced by proper 
general-purpose SSR.

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

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

To: Michael
Cc: Michael, Astuthiodit_1, karapayneWMDE, Invadibot, maantietaja, ItamarWMDE, 
Akuckartz, Nandana, Lahi, Gq86, GoranSMilovanovic, Mahir256, QZanden, 
LawExplorer, _jensen, rosalieper, Scott_WUaS, Wikidata-bugs, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org

Reply via email to