Page MenuHomePhabricator

[MEX] M3.3.2 refactor addQualifier and addReference in editStatement.vue
Closed, ResolvedPublic

Description

wikibase.wbui2025.editStatement.vue has a lot of complex code in its methods, with specifically addReferences and addQualifers being long functions.

To maintain the pattern of having simple views, refactor editStatement.vue to move most of the code currently in addReferences and addQualifiers to one of the stores. Where there is common functionality between the two functions, refactor them to reduce code duplication.

Acceptance Criteria

  • the methods of editStatement.vue are shorter and simpler
  • the methods have been moved to their related stores by logic

Event Timeline

ArthurTaylor renamed this task from [MEX] M3.1.2 refactor addQualifier and addReference in editStatement.vue to [MEX] M3.3.2 refactor addQualifier and addReference in editStatement.vue.Oct 28 2025, 8:43 AM

Change #1200037 had a related patch set uploaded (by Sadiya.mohammed13; author: Sadiya.mohammed13):

[mediawiki/extensions/Wikibase@master] refactor addQualifier and addReference in editStatement.vue

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

Change #1200037 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] refactor addQualifier and addReference in editStatement.vue

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