Page MenuHomePhabricator

🟩️ Conditionally request the data of statements of an item
Closed, ResolvedPublic3 Estimated Story Points

Description

As a tool developer I want to only get statements data when it has changed so that I do not need to process data I already have

If-None-Match and If-Modified-Since request headers should be used for consistency with conditional requests to /entities/items/{item_id}

Use item's revision ID and item's last modification date as values to check against the user-specified ETag or modification date. Same behavior as T302060.

See also https://wmde.github.io/wikibase-rest-api-proposal/#/statements/get_entities__entity_type___entity_id__statements

Event Timeline

Jakob_WMDE set the point value for this task to 5.
Jakob_WMDE changed the point value for this task from 5 to 3.May 25 2022, 10:48 AM

Change 799346 had a related patch set uploaded (by Jakob; author: Jakob):

[mediawiki/extensions/Wikibase@master] REST: Use RequestBuilder in GetItemStatementsTests

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

Change 801333 had a related patch set uploaded (by Jakob; author: Jakob):

[mediawiki/extensions/Wikibase@master] REST: Extract conditional request tests

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

Change 801338 had a related patch set uploaded (by Jakob; author: Jakob):

[mediawiki/extensions/Wikibase@master] REST: Implement conditional statement list requests

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

Jakob_WMDE renamed this task from Conditionally request the data of statements of an item to 🟩️ Conditionally request the data of statements of an item.May 30 2022, 10:51 AM

Change 799346 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] REST: Use RequestBuilder in GetItemStatementsTests

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

Change 801333 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] REST: Extract conditional request tests

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

Change 801338 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] REST: Implement conditional statement list requests

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