Last modified: 2014-05-19 19:12:47 UTC
We should provide a public interface for mapping RC_* constants to human-readable descriptions (e.g. RC_EDIT => "edit"). ApiQueryRecentChanges::parseRCType() does this, but it is a private method, and it is on the wrong class -- there is nothing API-specific about this functionality.
There's also a duplicate of this function in ApiWatchlist.
Actually, ApiQueryRecentChanges::parseRCType() does the opposite, parsing text to RC_* constants. But both ApiQueryRecentchanges and ApiWatchlist implement both both, the latter is just embedded in the middle of their extractRowInfo() functions.
Change 133441 had a related patch set uploaded by Kishanio: Move ApiQueryRecentChanges::parseRCType to static method on RecentChange https://gerrit.wikimedia.org/r/133441
Change 133441 merged by jenkins-bot: Move ApiQueryRecentChanges::parseRCType to static method on RecentChange https://gerrit.wikimedia.org/r/133441
was successfully merged