Re: [Wikitech-l] Need example code in Javascript to login API

2016-10-28 Thread Moriel Schottlender
As a side note, chrome extensions can authorize a domain and use it as if
they're requesting while on the site, it seems, to prevent cors errors.

https://developer.chrome.com/extensions/declare_permissions

That may require that your user login directly in Wikipedia rather than
through your extension - but once the login is recognized, the API calls
pass through without CORS issues, as long as you add the URL format to your
permission declaration in the manifest.

I've created a small extension testing out some Echo functionality using
exactly that. The API calls were successful, the only issue I had was that
the user had to be logged into Wikipedia already.

This may not be a perfect solution, but it might save you the trouble of
working with OAuth and doing the login yourself.



On Thu, Oct 27, 2016 at 2:34 PM, Gergo Tisza  wrote:

> On Wed, Oct 26, 2016 at 12:26 PM, Bartosz Dziewoński 
> wrote:
>
> > Firstly, I'm afraid that page might not be up to date; there have been
> > some changes to modernize the login API recently, and that page was last
> > updated in 2013. The canonical documentation is <
> > https://www.mediawiki.org/wiki/API:Login> (in English).
> >
> > Secondly, login API is mostly intended for scripts running in the context
> > of the wiki you want to log in to, not for scripts running on other pages
> > or browser extensions. I'm not an expert on this, but I think you'll want
> > to look into using OAuth: .
>
>
> OAuth is unfortunately hard to do in a browser plugin, as its security
> relies on the assumption that the application secret is only known to the
> developer.
>
> It's not easy to give useful advice without knowing what is it you are
> trying to build (see the XY problem -
> http://meta.stackexchange.com/questions/66377/what-is-the-xy-problem ) or
> at least why the CORS manual was not helpful.
> ___
> Wikitech-l mailing list
> Wikitech-l@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>



-- 
No trees were harmed in the creation of this post.
But billions of electrons, photons, and electromagnetic waves were terribly
inconvenienced during its transmission!
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

[Wikitech-l] Discovery Weekly Update for the week starting 2016-10-24

2016-10-28 Thread Chris Koerner
Hello,
Here is the Discovery status update for the week starting 24 October.
Feedback and questions are welcome.

== Discussions ==
* Show globe icon 🌐 next to all  links [0]
* Request for Comment - All map location names should be shown in the
user's language [1]
* Merge Kartographer with commons-on-osm [2]
* Discussion and recommendations for the overall usability of the new
search engine results page with the Design team [3]


== Search ==
* Don't show the "results from other projects" box if empty [4]
* Check to see if popularity_score is wrong in a lot of articles [5]
* Disable highlighting on insource queries if experimental highlighter in
not turned on [6]
* Reindex search cluster for BM25 test [7]
* Search works incorrectly when the query contains words used as namespace
names and a colon (:) [8]
* ask for translations for 'showing results from' (Polish, Dutch, Arabic
and Chinese) [9]
* Configure varnish to include wdqs nodes in codfw [10]
* Started second BM25 A/B test (ja, zh, th) [11]
* Turn on second BM25 test [12]
* Fix in_array() expects parameter 2 to be an array or collection in
/srv/mediawiki/php-1.28.0-wmf.22/extensions/CirrusSearch/includes/Search/RescoreBuilders.php
on line 160 [13]
* Communicate to community the upcoming BM25 release [14]
* [Recurring task] CirrusSearch: what is updated during re-indexing [15]
* Review and fix the description of autocomplete profiles (completion
suggester) in the Search preference tab [16]
* Enable cross-wiki backend search functionality on it.wikipedia - we made
it faster [17]
* Enable GC (garbage collection) logs on Elasticsearch JVM [18]
* Argument 2 passed to SearchEngine::processCompletionResults() must be an
instance of SearchSuggestionSet, Elastica\Response in SearchEngine class
[19]
* [bug] cirrussearch fatal in 1.28.0-wmf.23 - [20]

== Analysis  ==
* Compare ZRR for query features across other search engines [21]
* Investigate what we'd need to do to ignore double quotes in search
queries [22]
* Maps Dashboard: fix and update [23]
* Analyze the variance of user-agent's, country, and other useful metrics
of google referred traffic with and without a search query available in
referrer [24]
* Add a PaulScore approximation to discovery.wmflabs.org [25]

== Portal ==
'Portal updates that got code reviews after rebasing - thanks! '
* update logo for new branding guidelines [26]
* add information for Wikipedia / Wikimedia apps availability [27]

== Interactive ==
* Deprecate  provided by MapSources in favor of Kartographer's
 [28]
* Illegal and unheralded removal of MapSourcesHooks::wfgeoLink function
hook on dewikivoyage [29]
* More details button should appear when map is loaded [30]
* maps1002 does not run latest kartotherian [31]
* Snapshot service not working with empty groups param [32]
* Kartographer no longer displays external data credits [33]
* Graph behaves differently on PHP7 - was fixed automagically [34]
* /: Invalid GeoJSON code in wgKartographerLiveData
prevents drawing of maps at Wikivoyage [35]
* Don't pollute history with map hashes [36]
* Fix Governor's demo - party affiliations (needed a fix with WDQS SPARQL
query - thanks, Stas!) [37]
* Show wikidata query results as map markers [38]
* Support geomask externaldata in Kartotherian [39]
* Geoshape service should return map mask polygon with holes [40]

'Interactive tickets completed this week, but awaiting next train in
order to be deployed: Nov 1, 2016:'
* Use maps snapshot service until user interacts (click/mouseover?) [41]
* Geoshape service should return map mask polygon with holes [42]
* Show preview with static maps is broken [43]
* [Bug] GeoData\Searcher fatal error in 1.28-wmf.23 [44]
* Support data.get() with optional language param [45]
* Remove static background from mapframes after going dynamic [46]

== Interactive Ops Tasks ==
* WV layers dropdown bug on vem.wmflabs.org [47]
* Maps - move traffic to eqiad instead of codfw [48]
* Configure new maps servers in eqiad [49]
* Unmet dependencies around postgis apt packages on maps* servers [50]
* increase replication factor for system_auth keyspace on maps / cassandra
[51]
* Upgrade PostGIS on maps servers to version 2.2+ [52]
* Maps-test was created with incorrect initial encoding [53]
* Update Node on Maps to v4.6.0 [54]
* elastic2020 is powered off and does not want to restart [55]
* Maps - error when doing initial tiles generation: "Error: could not
create converter for SQL_ASCII"" [56]


[0] https://phabricator.wikimedia.org/T145176
[1] https://phabricator.wikimedia.org/T112948
[2] https://phabricator.wikimedia.org/T149280
[3] https://phabricator.wikimedia.org/T139310#2748175
[4] https://phabricator.wikimedia.org/T96881
[5] https://phabricator.wikimedia.org/T148136
[6] https://phabricator.wikimedia.org/T148107
[7] https://phabricator.wikimedia.org/T147498
[8] https://phabricator.wikimedia.org/T148344
[9] https://phabricator.wikimedia.org/T143354
[10] https://phabricator.wikimedia.org/T146158
[11] http

[Wikitech-l] MediaWiki Language Extension Bundle 2016.10 release

2016-10-28 Thread Kartik Mistry
Hello all,

I would like to announce the release of MediaWiki Language Extension
Bundle 2016.10. This bundle is The bundle is compatible with MediaWiki
1.26 and 1.27 or above and requires PHP 5.5.9 or above.

Next MLEB is expected to be released in 3 months. If there are major
changes or important bug fixes, we will do intermediate release.
Please give us your feedback at
[[Talk:MLEB|https://www.mediawiki.org/wiki/Talk:MLEB]].

* Download: 
https://translatewiki.net/mleb/MediaWikiLanguageExtensionBundle-2016.10.tar.bz2
* sha256sum: f82ac16b1a71433d68066c684c2e67379d3c435d1938044a9f0f0582cb6549b3

Quick links:
* Installation instructions are at: https://www.mediawiki.org/wiki/MLEB
* Announcements of new releases will be posted to a mailing list:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-i18n
* Report bugs to: https://phabricator.wikimedia.org/
* Talk with us at: #mediawiki-i18n @ Freenode

Release notes for each extension are below.

-- Kartik Mistry

== Highlights and upgrade notes ==
* Easy way to access wikitext editor from Special:Translate. T48955
* Special:Translate now works with MobileFrontend. T102922
* Special:Translate now works better in mobile devices. T146134
* WebAPI module to query user's babel languages.
* The style of ULS's dialogs have been updated and polished to be more
streamlined (for real this time, was incorrectly claimed to be
included in 2016.08).

== Babel ==
* Kunal Mehta made is possible to store babel languages in the
database for efficient querying if a configuration option is enabled.
* Kunal Mehta added an WebAPI module to query user's babel languages.
* Kunal Mehta made it possible to read user's babel languages from a
central wiki if a configuration option is enabled. T95877
* Ricordisamoa added a configuration option that can be used to set
namespace limits to restrict for which pages are automatically
categorized to babel categories. T69334
* Niklas Laxström removed references to non-existing configuration
option BabelPreferISO639_3.
* Kunal Mehta made the new babel database table to start populating
automatically if it exists.
* Kunal Mehta changed the main babel category no longer include users
who set the skill level to zero. T146909

== CLDR and LocalisationUpdate ==
* Maintenance and localisation updates only.

== CleanChanges ==
* Niklas Laxström fixed a minor issue causing unnecessary code to load
on certain configurations. T146476

== Translate ==
* Glaisher improved how Translate checks and enforces restrictions for
non-translatable languages.
* C0nnex taught Translate to support new authentication method for
Microsoft Translate API. T46679
* Niklas Laxström removed the broken new line handling from Microsoft
Translate API support. T60121
* Jon Robson and Niklas Laxström made Special:Translate work with
Mobile Frontend. T102922
* Niklas Laxström polished Special:Translate to work better in mobile
devices. T146134
* Glaisher added way to access wikitext editor from Special:Translate. T48955
* Federico Leva and Niklas Laxström made "hide own translations"
button in Special:Translate only appear when relevant. T50972
* Erik Moeller added support for explicitly chosen namespace constant
in wfAddNamespace.
* Niklas Laxström fixed an issue causing email confirmation emails to
be sent twice for sandbox users. T147570
* Erik Moeller added support for CLDR-style plural keywords to JSON
file format support.

== UniversalLanguageSelector ==
* Amir Aharoni changed "Language search" to "Search for a language". T138235
* New design implemented by Niklas Laxström was imported from jquery.uls.
* Niklas Laxström improved language change tooltip positioning. T145483
* Amir Aharoni documented available hooks and added one new hook. T145755
* Fomafix improved and simplified the way the CSS is loaded for ULS
triggers to avoid flash.
* Ed Sanders updated beta feature image to use proper layout and
colours. T144428
* Niklas Laxström fixed an issue that caused unparsed plural syntax
appear in the compact language links. T148117

-- 
Kartik Mistry/કાર્તિક મિસ્ત્રી | IRC: kart_
{kartikm, 0x1f1f}.wordpress.com

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] Labs and Wikitech outages Friday, 2016-10-28 at 15:00 UTC

2016-10-28 Thread Andrew Bogott

All done.  Sorry for the interruption!

-Andrew

On 10/26/16 3:22 PM, Andrew Bogott wrote:
In order to address a security issue, we are patching and rebooting 
many physical Labs hosts.  The next round of this will begin at 15:00 
UTC on Friday, which is 8:00AM San Francisco time.


Interruptions will include:

- A labs-wide network outage

- Wikitech downtime

- Horizon downtime

- Possible failures in new instance creation

None of the above should last more than a few minutes.  For the most 
part Labs instances will be unaware of the outages, and no action is 
required from users.


Apologies for any inconvenience caused!


-Andrew




___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] Labs and Wikitech outages Friday, 2016-10-28 at 15:00 UTC

2016-10-28 Thread Andrew Bogott

Reminder:  These reboots will start in 30 minutes.


On 10/26/16 3:22 PM, Andrew Bogott wrote:
In order to address a security issue, we are patching and rebooting 
many physical Labs hosts.  The next round of this will begin at 15:00 
UTC on Friday, which is 8:00AM San Francisco time.


Interruptions will include:

- A labs-wide network outage

- Wikitech downtime

- Horizon downtime

- Possible failures in new instance creation

None of the above should last more than a few minutes.  For the most 
part Labs instances will be unaware of the outages, and no action is 
required from users.


Apologies for any inconvenience caused!


-Andrew




___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] 2016W43 ArchCom-RFC meeting: Allow HTML in SVG?

2016-10-28 Thread mathieu stumpf guntz

Thank you Brian ant Stephen, I think that should help me. :)


Le 27/10/2016 à 20:02, Brian Wolff a écrit :

On Thursday, October 27, 2016, Mathieu Stumpf Guntz <
psychosl...@culture-libre.org> wrote:


Le 27/10/2016 à 19:22, Brian Wolff a écrit :

On Thursday, October 27, 2016, Mathieu Stumpf Guntz <
psychosl...@culture-libre.org> wrote:

Hi,

Somewhat of topic, but could someone provide me some links related to
translatable SVG?

Kind regards



Do you have anything in particular you want to know about translatable
svgs? Are you looking more for a help page on how to make them, for the
relavent part of the svg spec or for technical information about MW's
implementation?

I'm looking for help pages to make them and use them within the
Wikimedia projects.


https://commons.wikimedia.org/wiki/Commons:Translation_possible/Learn_more#Multiple_translations_within_one_SVG_file
is probably the best help page for that.

--
bawolff
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

[Wikitech-l] 8 am UTC Oct 29, maintenance for dataset1001 (dumps.wikimedia.org)

2016-10-28 Thread Ariel Glenn WMF
On Saturday Oct 29, at 8 am UTC, the web server for the dumps and other
datasets will be unavailable due to maintenance.  This should take no
longer than 10 minutes.  Thanks for your understanding.

Ariel
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l