Page MenuHomePhabricator

API's list=recentchanges should have rcrelated parameter (provide Special:RelatedChanges/Special:RecentChangesLinked functionality via API)
Open, MediumPublic


... to implement something akin to [[Special:RelatedChanges]].

Version: 1.21.x
Severity: enhancement



Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:17 PM
bzimport set Reference to bz15552.
bzimport added a subscriber: Unknown Object (MLST).
Catrope created this task.Sep 10 2008, 2:12 PM

Probably best to support titles= as well as rctitles= so [[Special:Recentchangeslinked]] can be emulated with a generator.

bug 14869 would technically take care of this too....

Reedy added a comment.Mar 6 2010, 6:08 PM

Closing as "resolved/later"

Will be fixed by bug 14869, and makes the API bug list a bit clearer (as these are essentially duplicates)

Bryan.TongMinh wrote:

RecentChanges is not a QueryPage based special page, right?

(In reply to comment #4)

RecentChanges is not a QueryPage based special page, right?

That's right and neither is RelatedChanges/RecentChangesLinked. Reopening.

Reedy added a comment.Mar 7 2010, 1:07 PM

Remove dependancy

Marking this bug as "easy" as I don't think it'd be very difficult to implement.

silas.ropac wrote:

I would like to see this. As a new user the very first thing I wanted to do with the API was get related changes for a page. Maybe there is a workaround today? But would be nice to do it directly with one call.

shreeshikha21 wrote:

I am new to FOSS and mediawiki how do I start on this bug and how do I replicate the error on my local machine.

Anomie moved this task from Unsorted to Needs Code on the MediaWiki-API board.Feb 20 2015, 8:17 PM
Emijrp added a subscriber: Emijrp.Aug 27 2015, 10:04 AM

Not solved yet?

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 27 2015, 10:04 AM

Marking this bug as "easy" as I don't think it'd be very difficult to implement.

@MZMcBride: Could you provide some implementation pointers for a new contributor who'd like to give this task a try?
I guess mw:API:Query + mw:API:RecentChanges + core/includes/specials/SpecialRecentchangeslinked.php are relevant, but is there any info on adding additional parameters to the codebase?
(Looks like there are no tests for RecentChanges under core/tests/phpunit/includes/api/?)

Restricted Application added a subscriber: TerraCodes. · View Herald TranscriptDec 15 2016, 6:08 PM
Emijrp removed a subscriber: Emijrp.Dec 15 2016, 9:02 PM
MER-C added a subscriber: MER-C.

Proposed for 2017 Developer Wishlist.

Anomie added a subscriber: Anomie.Jan 21 2017, 4:22 PM

Note that T57377 and T121468 are very similar tasks, if not quite duplicates.

The original idea here, to add rctitles, is fairly straightforward and could probably be done without a whole lot of trouble.

The second idea, to have it use titles instead (and be able to take input from a generator), is less straightforward but still should be doable. In that case, you'd need to either make ApiRecentChanges into a prop module rather than a list module (breaking existing clients) or add a "prop" version of recentchanges with a different name to be used for this functionality, much like the situation between list=backlinks|embeddedin|imageusage and prop=linkshere|transcludedin|fileusage.

In either case, it'll take some examination of the resulting database queries to make sure that they're at least not worse-performing than the queries for list=watchlist.

pkgodara moved this task from Documentation to API on the Developer-Wishlist (2017) board.

@MER-C Wondering if this task is too simple, we reserve it for new contributors and not for the developer wishlist? any thoughts?

MER-C added a comment.Feb 2 2017, 8:09 AM

If that were so, someone would have picked this task off in the preceding nine years. Either way, "recommended for volunteer developers" and "in the developer wishlist" are not mutually exclusive, they are complementary; just like in the Community Wishlist survey.

Qgil added a subscriber: Qgil.Feb 3 2017, 3:50 PM

Even in case of doubt, I would include it in the survey.

This proposal is selected for the Developer-Wishlist voting round and will be added to a MediaWiki page very soon. To the subscribers, or proposer of this task: please help modify the task description: add a brief summary (10-12 lines) of the problem that this proposal raises, topics discussed in the comments, and a proposed solution (if there is any yet). Remember to add a header with a title "Description," to your content. Please do so before February 5th, 12:00 pm UTC.