Last modified: 2014-10-15 22:42:11 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T16843, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 14843 - RCFeed: Send boolean flag indicating that target page is a redirect
RCFeed: Send boolean flag indicating that target page is a redirect
Status: NEW
Product: MediaWiki
Classification: Unclassified
Recent changes (Other open bugs)
unspecified
All All
: Normal enhancement with 2 votes (vote)
: ---
Assigned To: Krinkle
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-07-17 11:33 UTC by Conrad Irwin
Modified: 2014-10-15 22:42 UTC (History)
8 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Conrad Irwin 2008-07-17 11:33:41 UTC
This would aid all tools that need to take special action, or no action, on redirects by meaning that they don't have to load the page independantly to determine the redirect status for themselves.
Comment 1 Siebrand Mazeland 2008-08-11 13:07:52 UTC
I do not think that MediaWiki tags redirects in RC, like new pages, bot edits and minor edits, so the dumb IRC bot will also not know.

CANTFIX, I think.
Comment 2 Gurch 2008-12-09 19:23:48 UTC
MediaWiki does tag redirects in recent changes, because the API's recent changes query shows them. So it is possible.
Comment 3 Chad H. 2008-12-11 17:43:16 UTC
(In reply to comment #2)
> MediaWiki does tag redirects in recent changes, because the API's recent
> changes query shows them. So it is possible.
> 

No, it doesn't. That's handled because the API queries both the recentchanges and page tables, giving it access to page_is_redirect. This information isn't _directly_ stored in the database. However, implemented it in r44454 for the IRC output in a different manner.
Comment 4 Brion Vibber 2008-12-11 18:45:09 UTC
This doesn't work as intended; when editing existing articles, this'll pull the *previous* redirection state of the article, rather than the current state, so it's wrong whenever a page is changed into, or away from, being a redirect.

Reverted in r44456
Comment 5 Nemo 2012-08-23 18:53:23 UTC
This is about the MediaWiki recent changes IRC feed itself, isn't it?
I doubt the format will be changed, however; such info should probably wait for its reimplementation?
Comment 6 Krinkle 2014-06-05 09:07:10 UTC
The IRC RC Feed is no longer in active development (considered frozen for backwards compatibility).

It is superseded by the JSON RC Feed. It seems valuable to have a 'redirect' flag there.

There is currently no 'redirect' flag in the RecentChange object itself, however we do construct such a property in the RecentChanges API query module[1].

Seems interesting to consider adding that to RCFeedFormatter[2] as well.


[1] https://github.com/wikimedia/mediawiki-core/blob/77f9979e9/includes/api/ApiQueryRecentChanges.php#L511-L514
[2] https://github.com/wikimedia/mediawiki-core/blob/77f9979e9b6/includes/rcfeed/MachineReadableRCFeedFormatter.php#L40

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links