Matthias Mullie has uploaded a new change for review. https://gerrit.wikimedia.org/r/133234
Change subject: Deprecate existing read API ...................................................................... Deprecate existing read API Change-Id: Iaf2b108596be3065a6bc9cea5d9608df6a82c8e2 --- M includes/api/ApiQueryFlow.php 1 file changed, 7 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Flow refs/changes/34/133234/1 diff --git a/includes/api/ApiQueryFlow.php b/includes/api/ApiQueryFlow.php index 35490c3..37d0a69 100644 --- a/includes/api/ApiQueryFlow.php +++ b/includes/api/ApiQueryFlow.php @@ -2,6 +2,12 @@ use Flow\Model\UUID; +/** + * This API is deprecated and should not be used. Instead use + * ApiFlowView(Header|Post|Topic|TopicList|TopicSummary) + * + * @deprecated + */ class ApiQueryFlow extends ApiQueryBase { protected $loader, $workflow, $definition, $container; @@ -50,6 +56,7 @@ $this->getResult()->setIndexedTagName( $result, 'block' ); $this->getResult()->addValue( 'query', $this->getModuleName(), $result ); + $this->setWarning( 'This API is deprecated and should not be used. Instead use ApiFlowView(Header|Post|Topic|TopicList|TopicSummary).' ); } public function getAllowedParams() { -- To view, visit https://gerrit.wikimedia.org/r/133234 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Iaf2b108596be3065a6bc9cea5d9608df6a82c8e2 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Flow Gerrit-Branch: master Gerrit-Owner: Matthias Mullie <mmul...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits