Last modified: 2012-10-14 20:30:46 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 T42714, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 40714 - ULS geoclient needs proper interface
ULS geoclient needs proper interface
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
UniversalLanguageSelector (Other open bugs)
master
All All
: Normal normal (vote)
: ---
Assigned To: Santhosh Thottingal
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-10-02 13:56 UTC by Aude
Modified: 2012-10-14 20:30 UTC (History)
8 users (show)

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


Attachments

Description Aude 2012-10-02 13:56:48 UTC
For production use, ULS should use an internal system (same as fundraising?) for geolocation, rather than freegeoip.net.

Wikimedia already has https://bits.wikimedia.org/geoiplookup for central notice and other stuff and sure it could somehow be adapted for use in the ULS also or ULS be adapted to use that.
Comment 1 Niklas Laxström 2012-10-02 14:06:08 UTC
There is no dependency. freegeoip is default implementation which can be turned off and uls was designed so that the geoiplookup of WMF will work without further changes.

It is not used by default because it only works for Wikimedia, which is of course a show stopper :)
Comment 2 Platonides 2012-10-12 19:27:35 UTC
https://bits.wikimedia.org/geoiplookup provides the country code in item country but http://freegeoip.net/json/ uses country_code (and that's the member expected by resources/js/ext.uls.init.js:76)
Comment 3 Niklas Laxström 2012-10-12 20:01:12 UTC
Grumble. Not too hard to fix I hope.
Comment 4 Santhosh Thottingal 2012-10-13 05:22:49 UTC
See gerrit Id8d7356e
Comment 5 Niklas Laxström 2012-10-14 19:05:36 UTC
Not exactly what I had mind when I said proper interface but fixes the issue.
Comment 6 Aude 2012-10-14 19:39:54 UTC
The patch looks good.  Thanks Santhosh!

PS - https://bits.wikimedia.org/geoiplookup is intended for Wikimedia use but don't see why it can't be the default settings and used on third-party ULS installs.  

It would be nice to make it the default ULS setting, which of course people could set to something else in their own instances if they prefer.
Comment 7 Niklas Laxström 2012-10-14 19:53:38 UTC
Aude: it's not available to third parties.

XMLHttpRequest cannot load http://bits.wikimedia.org/geoiplookup. Origin http://translatewiki.net is not allowed by Access-Control-Allow-Origin.
Comment 8 Platonides 2012-10-14 20:30:46 UTC
It would work in a <script> tag. Of course, it shouldn't be used by translatewiki if wmf ops don't like it.

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


Navigation
Links