Last modified: 2009-07-28 11:28:51 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 T21937, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 19937 - Configuration settings not available via the API
Configuration settings not available via the API
Status: RESOLVED DUPLICATE of bug 17027
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Roan Kattouw
: patch, patch-need-review
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-07-26 05:31 UTC by brianna.laugher
Modified: 2009-07-28 11:28 UTC (History)
5 users (show)

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


Attachments
patch to add siprop=configsettings to meta=siteinfo (1.69 KB, patch)
2009-07-27 11:34 UTC, brianna.laugher
Details

Description brianna.laugher 2009-07-26 05:31:26 UTC
There are a number of configuration settings that affect things in the API e.g. $wgRCMaxAge. These should be available via the API.

(I am volunteering to write a patch to add this, if I can get enough guidance about the right way to do it.)
Comment 1 brianna.laugher 2009-07-27 11:34:23 UTC
Created attachment 6393 [details]
patch to add siprop=configsettings to meta=siteinfo

I only added 4 for now: $wgRateLimits, $wgRCMaxAge, $wgRightsIcon, $wgVersion. I am not sure which other ones are relevant and I wanted to avoid just adding virtually everything. Quite a few are also available indirectly through existing API modules.
Comment 2 Andrew Garrett 2009-07-27 11:59:18 UTC
At first blush, the patch looks pretty good.

I wonder if it would be sensible to allow users to request specific configuration settings...

In future, we'll want to integrate this with some sort of on-wiki configuration system, like Configure.
Comment 3 Roan Kattouw 2009-07-27 21:33:31 UTC
(In reply to comment #2)
> I wonder if it would be sensible to allow users to request specific
> configuration settings...
> 
Considered before and decided against (I think it was even committed and reverted).

(In reply to comment #1)
> I only added 4 for now: $wgRateLimits, $wgRCMaxAge, $wgRightsIcon, $wgVersion.
I seem to recall Brion reverted a rev of mine exposing $wgRateLimits, I'll ask him about it. $wgVersion is already exposed by siprop=general .
Comment 4 Roan Kattouw 2009-07-28 11:28:51 UTC
As Chad has pointed out, this is an obvious duplicate of bug 17027, which Brion WONTFIXed. I apologize for not noticing/remembering earlier.

*** This bug has been marked as a duplicate of bug 17027 ***

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


Navigation
Links