[Wikitech-l] Gerrit ACL updates/phab mirroring

2019-04-05 Thread Tyler Cipriani

Hi All,

I wanted to send a heads-up that I've reverted some recent Gerrit ACL 
changes that I believe have been problematic from a Gerrit operational 
stability standpoint.


These ACL changes have been blocking some Phabricator mirroring, and you 
may receive emails from Phabricator about old changes being mirrored 
into Phabricator.


Sorry for the noise.

Your Gerrit Toiler,
-- Tyler

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

[Wikitech-l] MediaWiki-CodeSniffer 25.0.0 released

2019-04-05 Thread Kunal Mehta
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Hello!

MediaWiki-CodeSniffer 25.0.0 is now available for use in your
MediaWiki extensions and other projects. This release features an
upstream update, performance improvements, and tweaks to an existing
sniff.

Note that libraryupgrader isn't currently working[1], so I'm not
planning to bump all repos (I just did core manually). I expect that
we'll have another release later this month, so we might just bump
directly to that one.

Anyways, here's the changelog:
* Prohibit aliases is_long, is_double and is_real (mainframe98)
* Streamline PHPDoc comment parsing in UnusedUseStatement sniff
(Thiemo Kreuz)
* Upgrade PHP_CodeSniffer to 3.4.1 (Kunal Mehta)
* Whitelist more phan annotations (Kunal Mehta)

[1] https://phabricator.wikimedia.org/T218750

- -- Legoktm
-BEGIN PGP SIGNATURE-

iQIzBAEBCgAdFiEE2MtZ8F27ngU4xIGd8QX4EBsFJpsFAlyn4zIACgkQ8QX4EBsF
JpuUjA//TxzsAuTlSqZsGxrS3Rakf2JyEWKBV9OedTUql+a1h+V926eRB90Ec+Up
jrfHT9fSg7FaR5QkmstWkBOEIpzjfwGuUhke/3NWD/bgRLEQnmik9zwrPnHjMfvE
A646zZo2O5DpRCTvVUius6QQrQgwKXqqFX8vpl55cUgUT4kwFrWs8c7i0k/VcZzs
7zJystKSf/ML4V+jD4PrG0enw7VU7wt38fi1RQvwiJM2/dZUUXF6PrcBzB0vLSdS
2M8X4DpUa7ahy6NehoE28qC98K+B60gdN1VVpStDzDi684pdY9p93lsDCWWlOYH5
MNGrs3QAcP4gt9R+2aTRSQCsrvTI0fF+Ijqr6QYvTOo4NKt6m+AnWQURQnKGdyDH
b991cbJtoF75PpYJBJf3IJNPhykK7MRFzwReVL09i4kidwfxewSdH9jqu+PqIkZz
EAVG1SbuV0ntdC5BGZtGM02BQQTmyNX+RhNJebKI/n8pkFRf/dV2EMPODRW2kzKw
2fBJi0psCPZbjrwwZnbcf8jQUzit7wnbtAdfLPx+YJX96iSWCx6xhBFqrLsO6zjD
RkdiyzRSZGUQSB1YDssbw8YNYjioF7TGWB+U6R4Ci7GtmQHW2go2/0NXD5klw3cz
4i+03fBklnPxMy/sC1+OYpR204J6J3wZtHqhtud/DEgL6EvHA7w=
=Dwxc
-END PGP SIGNATURE-

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

[Wikitech-l] Visual Editor and Media namespace

2019-04-05 Thread Carles Pina i Estany

Hi,

I've setup a Mediawiki for internal usage with VisualEditor.

Using the "Edit Source" I can do something like:
[[Media:Traduccio.jpg|test]]

To have a direct link to a file (instead of the page landing page).

Can I achieve the same using VisualEditor?

Even a more important question maybe, if a page had a Media link and
then I use the Visual Editor somewhere in this page it gets changed by:

[//localhost:8080/images/c/ce/Traduccio.jpg test]

(note that this instance has $wgServer = "http://localhost:8080;; ,
but I would like the link to stay as Media:File.jpg or at least to be
like /images/c/ce/Traduccio.jpg without the hostname... but ideally
leaving the Media)

Is it possible using VisualEditor? Some configuration that needs to be
changed?

I downloaded it from here, shoul be this one:
https://extdist.wmflabs.org/dist/extensions/VisualEditor-REL1_31-6854ea0.tar.gz

Thank you very much,

-- 
Carles Pina i Estany
GPG Key 0x8CD5C157

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

Re: [Wikitech-l] resource loader; 1.32 alpha; 1.32 stable breaking change, loading scripts in widgets

2019-04-05 Thread Tom Schulze
I agree with Bartosz DziewoƄski. However, after checking out the code, I
think the reason why I need to change the RLQ push statements is due to
the resources/src/mediawiki.base/mediawiki.base.js modifications in
v1.32 stable.

window.RLQ = {
push: function ( entry ) {
if ( typeof entry === 'function' ) {
entry();
} else {
mw.loader.using( entry[ 0 ], entry[ 1 ] );
}
}
};


It seems hacky, but when using RLQ.push() and mw.loader.using in widgets
I now have to use

 RLQ.push([ [], function () {
  mw.loader.using('mymodule');
 }); 

Otherwise mw.loader.using won't be defined as the anonymous function is
executed instantly (why mw.using.loader is not available globally yet at
this time I dont know for sure).
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] s3 primary db master failover on Thursday 10th April 05:00AM UTC

2019-04-05 Thread Manuel Arostegui
Correction, this is the Thursday 11th of April not the 10th.
Sorry for the confusion!

On Fri, Apr 5, 2019 at 8:43 AM RhinosF1 Wikipedia 
wrote:

> Thanks for the information,
> I've seen you've added user notice to the Phab task but as far as I'm aware
> that needs to be added asap so it can be translated so I've added it with
>
> https://meta.wikimedia.org/w/index.php?title=Tech/News/2019/15=18991805=18990102
>
> On Fri, 5 Apr 2019 at 07:23, Manuel Arostegui 
> wrote:
>
> > Hello,
> >
> > Due to hardware malfunction on the current s3 database primary master
> > (T219115) we need to failover it to a different host.
> >
> > We are going to do this on Thursday 10th at 05:00 AM UTC, and we have
> > requested a 30 minutes window (T220080) as we have to go read only for
> all
> > the wikis living on s3 (P7994).
> >
> > Impact: Writes will be blocked, reads will remain unaffected.
> > Time: 05:00AM UTC - 05:30 AM UTC (we do not expect to use the full 30
> > minutes window).
> >
> > Communication will happen at #wikimedia-operations
> > If you are around at that time and want to help with the monitoring,
> please
> > join us!
> >
> > Thanks
> > ___
> > 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 mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] s3 primary db master failover on Thursday 10th April 05:00AM UTC

2019-04-05 Thread RhinosF1 Wikipedia
Thanks for the information,
I've seen you've added user notice to the Phab task but as far as I'm aware
that needs to be added asap so it can be translated so I've added it with
https://meta.wikimedia.org/w/index.php?title=Tech/News/2019/15=18991805=18990102

On Fri, 5 Apr 2019 at 07:23, Manuel Arostegui 
wrote:

> Hello,
>
> Due to hardware malfunction on the current s3 database primary master
> (T219115) we need to failover it to a different host.
>
> We are going to do this on Thursday 10th at 05:00 AM UTC, and we have
> requested a 30 minutes window (T220080) as we have to go read only for all
> the wikis living on s3 (P7994).
>
> Impact: Writes will be blocked, reads will remain unaffected.
> Time: 05:00AM UTC - 05:30 AM UTC (we do not expect to use the full 30
> minutes window).
>
> Communication will happen at #wikimedia-operations
> If you are around at that time and want to help with the monitoring, please
> join us!
>
> Thanks
> ___
> 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] s3 primary db master failover on Thursday 10th April 05:00AM UTC

2019-04-05 Thread Manuel Arostegui
Hello,

Due to hardware malfunction on the current s3 database primary master
(T219115) we need to failover it to a different host.

We are going to do this on Thursday 10th at 05:00 AM UTC, and we have
requested a 30 minutes window (T220080) as we have to go read only for all
the wikis living on s3 (P7994).

Impact: Writes will be blocked, reads will remain unaffected.
Time: 05:00AM UTC - 05:30 AM UTC (we do not expect to use the full 30
minutes window).

Communication will happen at #wikimedia-operations
If you are around at that time and want to help with the monitoring, please
join us!

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