Page MenuHomePhabricator

Make Data Bridge load entity data from Special:EntityData again
Closed, DeclinedPublic

Description

As a Wikibase repository wiki operator, I want to reduce server load and have clients reuse cached data when possible.

Problem:
Wikidata Bridge currently gets its entity data from the wbgetentities API. We would like to use Special:EntityData, since that has a decent chance of being cached (if not in the client’s browser, then at least in datacenter-side caches); however, that’s currently not possible because that data may be out of date (T128486).

Example:

Screenshots/mockups:

BDD
GIVEN
AND
WHEN
AND
THEN
AND

Acceptance criteria:

  • Data Bridge uses the special page instead of the API.

Open questions:

Event Timeline

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

Change 592917 had a related patch set uploaded (by Lucas Werkmeister (WMDE); owner: Lucas Werkmeister (WMDE)):
[mediawiki/extensions/Wikibase@master] bridge: demote SpecialPageReadingEntityRepository

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

Change 592917 merged by jenkins-bot:
[mediawiki/extensions/Wikibase@master] bridge: demote SpecialPageReadingEntityRepository

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

Well, T128486: [Story] Make Special:EntityData be up to date after an edit was resolved, but it was solved by just disabling caching for Special:EntityData without a revision ID altogether… so we could switch back to loading entity data from there, but it wouldn’t really bring the performance benefit we had hoped for.

Well, T128486: [Story] Make Special:EntityData be up to date after an edit was resolved, but it was solved by just disabling caching for Special:EntityData without a revision ID altogether… so we could switch back to loading entity data from there, but it wouldn’t really bring the performance benefit we had hoped for.

Let’s decline this and get rid of the code in T278952: Remove Special:EntityData code from Data Bridge.

Change 676072 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: Lucas Werkmeister (WMDE)):

[mediawiki/extensions/Wikibase@master] bridge: make SpecialPageReadingEntityRepository implement ReadingEntityRepository again

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