Last modified: 2014-06-12 20:29:29 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 T36967, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 34967 - FeaturedFeeds API documentation is unclear
FeaturedFeeds API documentation is unclear
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
FeaturedFeeds (Other open bugs)
unspecified
All All
: Low normal (vote)
: ---
Assigned To: Max Semenik
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-03-04 19:13 UTC by MZMcBride
Modified: 2014-06-12 20:29 UTC (History)
1 user (show)

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


Attachments

Description MZMcBride 2012-03-04 19:13:50 UTC
The current documentation for action=featuredfeeds reads:

---
* action=featuredfeed *
  Returns a user contributions feed

This module requires read rights
Parameters:
  feedformat          - The format of the feed
                        One value: rss, atom
                        Default: rss
  feed                - Feed name
                        This parameter is required
                        One value: 
  language            - Feed language code. Ignored by some feeds.
Examples:
  Retrieve feed `featured'
      api.php?action=featuredfeed&feed=featured
---

I find this documentation incredibly confusing.

First, "Returns a user contributions feed". Is this true? You're not inputting a username or user ID to get a list of contributions, so this seems to be at least misleading.

Second, the "feed" parameter is associated with some kind of magical "Feed name". It's a required parameter without a default (apparently) and the possible values are... null (though it only takes one!).

Third, the "language" parameter doesn't specify what kind of language code you're looking for. Two letters? Three letters?

The example also doesn't really make much sense to me, though perhaps I'm just being thick.
Comment 1 MZMcBride 2012-03-04 19:16:18 UTC
(In reply to comment #0)
> Third, the "language" parameter doesn't specify what kind of language code
> you're looking for. Two letters? Three letters?

As this is technical documentation, if there's a technical answer here (such as ISO-639-2 or  ISO-639-3 or whatever), you can say so. :-)  You can also cross-reference to some other list of language codes if possible (maybe they're exposed in action=sitematrix or elsewhere?).
Comment 2 Max Semenik 2012-03-04 19:50:59 UTC
(In reply to comment #0)
> Third, the "language" parameter doesn't specify what kind of language code
> you're looking for. Two letters? Three letters?

How many letters are there in "zh-min-nan"?

> As this is technical documentation, if there's a technical answer here (such as
> ISO-639-2 or  ISO-639-3 or whatever), you can say so. :-)  You can also
> cross-reference to some other list of language codes if possible (maybe they're
> exposed in action=sitematrix or elsewhere?).

And which of them standardises "simple" or "be-x-old"?

We have *MediaWiki* language codes and nothing else, now matter how much we pretend that it's not the case.
Comment 3 MZMcBride 2012-03-04 20:17:02 UTC
(In reply to comment #2)
> (In reply to comment #0)
> > Third, the "language" parameter doesn't specify what kind of language code
> > you're looking for. Two letters? Three letters?
> 
> How many letters are there in "zh-min-nan"?
> 
> > As this is technical documentation, if there's a technical answer here (such as
> > ISO-639-2 or  ISO-639-3 or whatever), you can say so. :-)  You can also
> > cross-reference to some other list of language codes if possible (maybe they're
> > exposed in action=sitematrix or elsewhere?).
> 
> And which of them standardises "simple" or "be-x-old"?
> 
> We have *MediaWiki* language codes and nothing else, now matter how much we
> pretend that it's not the case.

Okay, so is there a way to list "MediaWiki language codes"? The current documentation reads kind of like magic. People need to be able to read it and figure out what you mean by language codes. Provide documentation or cross-reference to list=mediawikilanguagecodes or something, right?
Comment 4 Max Semenik 2012-03-05 12:04:12 UTC
(In reply to comment #0)
> First, "Returns a user contributions feed". Is this true? You're not inputting
> a username or user ID to get a list of contributions, so this seems to be at
> least misleading.

r113021

> Second, the "feed" parameter is associated with some kind of magical "Feed
> name". It's a required parameter without a default (apparently) and the
> possible values are... null (though it only takes one!).

It shows only feeds actually available and set up on site.

> The example also doesn't really make much sense to me, though perhaps I'm just
> being thick.

On wikis with no feeds set up it indeed doesn't work. Just like examples for prop will fail if pages they mention don't exist.
Comment 5 Bingle 2014-06-12 20:29:29 UTC
Prioritization and scheduling of this bug is tracked on Trello card https://trello.com/c/CAnlNLT8

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


Navigation
Links