https://bugzilla.wikimedia.org/show_bug.cgi?id=16421

           Summary: list=logevents leuser= and list=usercontribs ucuser=
                    parameters inconsistent
           Product: MediaWiki
           Version: 1.14-svn
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: API
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
                CC: [EMAIL PROTECTED], [EMAIL PROTECTED]


First: leuser does not allow underscores in place of spaces, but ucuser does,
can they be made consistent? Preferred is to have _ always an alias for %20.
Compare:

http://test.wikipedia.org/w/api.php?action=query&list=usercontribs|logevents&lelimit=1&uclimit=1&ucprop=timestamp&leprop=timestamp|user&ucuser=Tim_Starling&leuser=Tim_Starling

http://test.wikipedia.org/w/api.php?action=query&list=usercontribs|logevents&lelimit=1&uclimit=1&ucprop=timestamp&leprop=timestamp|user&ucuser=Tim_Starling&leuser=Tim%20Starling

Second: leuser errors out if the user doesn't exist, but ucuser simply returns
an empty contributions list. I am not sure which is ideal.
Compare:

http://test.wikipedia.org/w/api.php?action=query&list=usercontribs&uclimit=1&ucprop=timestamp&ucuser=NOSUCHUSER

http://test.wikipedia.org/w/api.php?action=query&list=logevents&lelimit=1&leprop=timestamp|user&leuser=NOSUCHUSER


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to