Page MenuHomePhabricator

[Task] Replace remaining StatementListHolder (setStatements) usages
Closed, ResolvedPublic

Description

Two usages are left:

Patches for review:

Related Objects

StatusSubtypeAssignedTask
OpenNone
OpenNone
DuplicateNone
OpenFeatureNone
OpenFeatureNone
DuplicateNone
ResolvedNone
ResolvedNone
ResolvedNone
DuplicateNone
InvalidLydia_Pintscher
OpenNone
OpenNone
StalledNone
OpenNone
ResolvedAddshore
Resolvedthiemowmde
ResolvedAddshore
Resolvedthiemowmde
Resolvedthiemowmde
Resolvedthiemowmde
Resolvedthiemowmde
Resolvedthiemowmde

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change 285911 had a related patch set uploaded (by Thiemo Mättig (WMDE)):
Move ChangeOpStatement away from requiring a StatementListHolder

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

Change 285912 had a related patch set uploaded (by Thiemo Mättig (WMDE)):
Make EntityChangeFactory optionally use StatementListProvider

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

Change 285912 merged by jenkins-bot:
Make EntityChangeFactory optionally use StatementListProvider

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

thiemowmde renamed this task from [Task] StatementListHolder to [Task] Replace remaining StatementListHolder (setStatements) usages.Apr 28 2016, 2:46 PM
thiemowmde updated the task description. (Show Details)

Change 285911 merged by jenkins-bot:
Move ChangeOpStatement away from requiring a StatementListHolder

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

Jonas updated the task description. (Show Details)
Jonas updated the task description. (Show Details)
Jonas moved this task from Backlog to Done on the Wikidata-Sprint-2016-04-26 board.

Possible ways forward, as discussed today:

  1. T134882: Track how often the index feature is used. The critical line of code is in ChangeOpStatement. The only caller is the SetClaim API module. Track two numbers: Total calls of SetClaim and how often a non-null index is provided.
  2. T134883: We need to check if our own UI uses the index feature.
  3. T134884: We can make ChangeOpStatement throw an exception when a user tries to specify an index on an entity type that does not implement StatementListHolder. Personally I like this very much and would love to work on a patch that does this.
  4. We could make MedieInfo implement StatementListHolder. But we want to avoid that. It will make the situation worse.
  5. We could release Wikibase-DataModel with https://github.com/wmde/WikibaseDataModel/pull/664, which added the possibility to move a statement to a specific position. Then implement a replacement for ByPropertyIdArray (or move it from Wikibase-DataModel-Services to MediaWiki-extensions-WikibaseRepository). This replacement will not require StatementListHolder any more.

So personally, I suggest to pick 1, 2 and 3 for the sprint.

thiemowmde moved this task from Backlog to Done on the Wikidata-Sprint-2016-04-26 board.
thiemowmde moved this task from Done to Backlog on the Wikidata-Sprint-2016-04-26 board.
thiemowmde moved this task from Backlog to Done on the Wikidata-Sprint-2016-05-10 board.