Page MenuHomePhabricator

Extract GetLatestItemRevisionMetadata use case step
Closed, ResolvedPublic

Description

  • create GetLatestItemRevisionMetadata class with an execute( ItemId $id ): array method returning the revision id and last modified timestamp
  • throws redirect use case exception on redirect
  • throws item not found use case exception if the item does not exist

Straightforward GET use cases:

"Special" GET use cases:

Edit use cases:

"Special" edit use cases:

Details

SubjectRepoBranchLines +/-
mediawiki/extensions/Wikibasemaster+26 -65
mediawiki/extensions/Wikibasemaster+55 -89
mediawiki/extensions/Wikibasemaster+59 -73
mediawiki/extensions/Wikibasemaster+59 -77
mediawiki/extensions/Wikibasemaster+29 -65
mediawiki/extensions/Wikibasemaster+29 -58
mediawiki/extensions/Wikibasemaster+25 -62
mediawiki/extensions/Wikibasemaster+28 -63
mediawiki/extensions/Wikibasemaster+27 -67
mediawiki/extensions/Wikibasemaster+28 -63
mediawiki/extensions/Wikibasemaster+59 -71
mediawiki/extensions/Wikibasemaster+29 -45
mediawiki/extensions/Wikibasemaster+27 -60
mediawiki/extensions/Wikibasemaster+25 -62
mediawiki/extensions/Wikibasemaster+28 -64
mediawiki/extensions/Wikibasemaster+25 -58
mediawiki/extensions/Wikibasemaster+115 -0
Show related patches Customize query in gerrit

Event Timeline

There are a very large number of changes, so older changes are hidden. Show Older Changes

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

[mediawiki/extensions/Wikibase@master] REST: Extract metadata retrieval use case step

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

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

[mediawiki/extensions/Wikibase@master] REST: Use metadata use case step in GetItem

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

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

[mediawiki/extensions/Wikibase@master] REST: Use revision data use case step in AddStatement

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

Change 889969 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] REST: Extract metadata retrieval use case step

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

Change 923329 had a related patch set uploaded (by Silvan Heintze; author: Silvan Heintze):

[mediawiki/extensions/Wikibase@master] REST: Use revision data step in GetItemAliases

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

Change 923256 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] REST: Use revision data use case step in GetItem

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

Change 923299 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] REST: Use revision data use case step in AddStatement

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

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

[mediawiki/extensions/Wikibase@master] REST: Use revision data step in GetItemStatement

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

Change 923329 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] REST: Use revision data step in GetItemAliases

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

Change 923561 had a related patch set uploaded (by Silvan Heintze; author: Silvan Heintze):

[mediawiki/extensions/Wikibase@master] REST: Use revision data step in PatchItemLabels

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

Change 923600 had a related patch set uploaded (by Silvan Heintze; author: Silvan Heintze):

[mediawiki/extensions/Wikibase@master] REST: Use revision data step in SetItemDescription

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

Change 923606 had a related patch set uploaded (by Silvan Heintze; author: Silvan Heintze):

[mediawiki/extensions/Wikibase@master] REST: Use revision data step in SetItemLabel

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

Change 924489 had a related patch set uploaded (by Muhammad Jaziraly; author: Muhammad Jaziraly):

[mediawiki/extensions/Wikibase@master] REST: Use revision data step in GetItemAliasesInLanguage

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

Change 924524 had a related patch set uploaded (by Muhammad Jaziraly; author: Muhammad Jaziraly):

[mediawiki/extensions/Wikibase@master] REST: Use revision data step in GetItemDescriptions

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

Change 923600 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] REST: Use revision data step in SetItemDescription

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

Change 923606 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] REST: Use revision data step in SetItemLabel

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

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

[mediawiki/extensions/Wikibase@master] REST: Use revision data step in PatchItemStatement

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

Change 923374 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] REST: Use revision data step in GetItemStatement

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

Change 923561 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] REST: Use revision data step in PatchItemLabels

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

Change 924890 had a related patch set uploaded (by Muhammad Jaziraly; author: Muhammad Jaziraly):

[mediawiki/extensions/Wikibase@master] REST: Use revision data step in GetItemLabel

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

Change 924908 had a related patch set uploaded (by Muhammad Jaziraly; author: Muhammad Jaziraly):

[mediawiki/extensions/Wikibase@master] REST: Use revision data step in GetItemLabels

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

Change 924489 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] REST: Use revision data step in GetItemAliasesInLanguage

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

Change 924524 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] REST: Use revision data step in GetItemDescriptions

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

Change 924914 had a related patch set uploaded (by Muhammad Jaziraly; author: Muhammad Jaziraly):

[mediawiki/extensions/Wikibase@master] REST: Use revision data step in GetItemStatements

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

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

[mediawiki/extensions/Wikibase@master] REST: Use revision data step in RemoveItemStatement

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

Change 924908 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] REST: Use revision data step in GetItemLabels

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

Change 924914 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] REST: Use revision data step in GetItemStatements

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

Change 924890 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] REST: Use revision data step in GetItemLabel

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

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

[mediawiki/extensions/Wikibase@master] REST: Use revision data step in ReplaceItemStatement

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

Change 924530 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] REST: Use revision data step in PatchItemStatement

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

Change 924924 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] REST: Use revision data step in RemoveItemStatement

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

Change 924968 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] REST: Use revision data step in ReplaceItemStatement

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

Jakob_WMDE updated the task description. (Show Details)

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

[mediawiki/extensions/Wikibase@master] REST: Use revision data step in GetItemDescription

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

Change 925830 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] REST: Use revision data step in GetItemDescription

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