Page MenuHomePhabricator

ApiShortenUrl: TransactionProfiler warnings created by API as it is not marked as performing writes
Closed, ResolvedPublic

Description

The MediaWiki-extensions-UrlShortener extension has an API named ApiShortenUrl which is currently marked as not performing writes. This means that there are lots of TransactionProfiler warnings present (one for each API call).

Marking the API as performing writes just needs defining ::doesWrites as true.

Acceptance criteria
  • ApiShortenUrl no longer raises TransactionProfiler warnings when called

Event Timeline

Change #1145268 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/UrlShortener@master] Mark ApiShortenUrl as an API that performs writes

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

Dreamy_Jazz renamed this task from ApiShortenUrl: Lots of TransactionProfiler warnings because API is not marked as performing writes to ApiShortenUrl: TransactionProfiler warnings created by API as it is not marked as performing writes.May 13 2025, 5:04 PM

Change #1145268 merged by jenkins-bot:

[mediawiki/extensions/UrlShortener@master] Mark ApiShortenUrl as an API that performs writes

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

Dreamy_Jazz claimed this task.

Thanks for the quick review.