Last modified: 2011-03-13 18:06:18 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 T12644, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 10644 - recentchanges query returns 'rc_user_text' in 'user'
recentchanges query returns 'rc_user_text' in 'user'
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.11.x
All All
: Lowest enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-07-19 18:45 UTC by Jean-Lou Dupont
Modified: 2011-03-13 18:06 UTC (History)
1 user (show)

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


Attachments

Description Jean-Lou Dupont 2007-07-19 18:45:21 UTC
The query returns the field 'rc_user_text' in the response's 'user' tag field. 

The expected behavior:
- The query should return the 'rc_user' field in the 'user' tag
- The query should return the 'rc_user_text' field in the 'user_text' tag.

<b>Example Query:</b>
http://localhost/wiki/api.php?action=query&list=recentchanges&rcprop=user|flags|ids|timestamp|title|sizes

Query Response:
<?xml version="1.0" encoding="utf-8"?>
<api>
  <query>
    <recentchanges>
      <rc type="3" ns="-1" title="Special:Log/newusers" rcid="6" pageid="0" revid="0" old_revid="0" user="WikiReplicator" oldlen="0" newlen="0" timestamp="2007-07-19T17:52:52Z" />
      <rc type="3" ns="-1" title="Special:Log/usetchglog" rcid="5" pageid="0" revid="0" old_revid="0" user="127.0.0.1" anon="" oldlen="0" newlen="0" timestamp="2007-07-19T17:52:52Z" />
      <rc type="0" ns="0" title="Test FetchPartnerRC" rcid="4" pageid="100" revid="893" old_revid="892" user="WikiSysop" oldlen="93" newlen="91" timestamp="2007-07-19T17:36:38Z" />
      <rc type="0" ns="0" title="Test FetchPartnerRC" rcid="3" pageid="100" revid="892" old_revid="891" user="WikiSysop" oldlen="92" newlen="93" timestamp="2007-07-19T17:35:18Z" />
      <rc type="0" ns="0" title="Test FetchPartnerRC" rcid="2" pageid="100" revid="891" old_revid="885" user="WikiSysop" oldlen="91" newlen="92" timestamp="2007-07-19T17:33:10Z" />
      <rc type="0" ns="8" title="MediaWiki:Sidebar/sysop" rcid="1" pageid="19" revid="890" old_revid="115" user="WikiSysop" oldlen="160" newlen="209" timestamp="2007-07-19T17:16:41Z" />
    </recentchanges>
  </query>
</api
Comment 1 Yuri Astrakhan 2007-07-30 06:52:47 UTC
This is by design. All relevant queries (revisions, recentchanges, and other) return the database field '*_user_text' as 'user' result. I see no point at exposing internal db field names as api results. Also, "anon" result is much more readable then understanding what "0" means in the '*_user' column.

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


Navigation
Links