[Wikitech-l] Discovery Weekly Update for the week starting 2019-04-15

2019-04-23 Thread Chris Koerner
Greetings,

This is the weekly update from the Search Platform team for the week
starting 2019-04-15.

As always, feedback and questions are welcome.

==  Highlights ==
* The Wikidata Query Service URL shortener has been switched to
Wikimedia shortener. [9] This means you can now post short URLs on
wiki!

== Discussions ==

=== Search ===
* Porting of search code from Wikibase to WikibaseCirrusSearch is
finished. [0] and [1]
* Trey worked on updating our Analysis Analysis Tools with some recent
ad hoc improvements [2]
* Mathew and Gehel created a cookbook to copy data between WDQS
servers to copy data between wdqs servers [3]
* A volunteer developer asked for our help to to be able to sort
search results by date, as well as by 'relevance'. Upon looking at
this again, we realized we had already implemented this functionality
[4] but probably need some UI updates that are detailed in [5]
* Erik and David worked on getting search sorted by creation date to
include some missing items, it's been complete for a while but our
mass indexing process takes about 8 weeks to finish up, and now it
appears that it's all done [6]
* Erik found that metrics were being reported for the wrong cluster
when $wgCirrusSearchClusterOverrides is used and fixed it [7]
* An error was found where a fatal error occurred when submitting
"insource" query on mediawiki.org [8]

=== Wikidata Query Service ===

* UI URL shortener has been switched to Wikimedia shortener. [9] This
means you can now post short URLs on wiki!

[0] https://phabricator.wikimedia.org/T190022
[1] https://phabricator.wikimedia.org/T190022
[2] https://phabricator.wikimedia.org/T220124
[3] https://phabricator.wikimedia.org/T213401
[4] https://phabricator.wikimedia.org/T18237
[5] https://phabricator.wikimedia.org/T197525
[6] https://phabricator.wikimedia.org/T215487
[7] https://phabricator.wikimedia.org/T221019
[8] https://phabricator.wikimedia.org/T221058
[9] https://phabricator.wikimedia.org/T112715



Subscribe to receive on-wiki (or opt-in email) notifications of the
Discovery weekly update.

https://www.mediawiki.org/wiki/Newsletter:Discovery_Weekly

The archive of all past updates can be found on MediaWiki.org:

https://www.mediawiki.org/wiki/Discovery/Status_updates

Interested in getting involved? See tasks marked as "Easy" or
"Volunteer needed" in Phabricator.

[1] https://phabricator.wikimedia.org/maniphest/query/qW51XhCCd8.7/#R
[2] https://phabricator.wikimedia.org/maniphest/query/5KEPuEJh9TPS/#R


Yours,
Chris Koerner (he/him)
Community Relations Specialist
Wikimedia Foundation

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

Re: [Wikitech-l] [Wikimedia Tech Talks] Sharing global opportunities for new developers in the Wikimedia community | April 24, 2019 at 18:00 UTC

2019-04-23 Thread Sarah R
Hi All,

Just a reminder that this is taking place tomorrow, *April 24, 2019 at
18:00 UTC. *I will send out another reminder tomorrow, just head of the
talk.

Here is the updated link to the YouTube stream:
https://www.youtube.com/watch?v=SXyeRujCrAs

Hope to see you there!

Kindly,

Sarah R.

On Wed, Apr 10, 2019 at 3:51 PM Sarah R  wrote:

> Hi Everyone,
>
> It's time for *Wikimedia Tech Talks 2019* Episode 3! This month's talk
> will take place *April 24, 2019 at 18:00 UTC. *
>
> *Topic: *Sharing global opportunities for new developers in the Wikimedia
> community
>
> *Speaker: *Sristhi Sethi, Developer Advocate, Wikimedia Foundation
>
> *Summary: *Wikimedia offers a plethora of opportunities for newcomers to
> get involved; however, as with many other free software projects, getting
> involved with the Wikimedia technical community can be a daunting prospect
> for newcomers. This talk is a gentle introduction to the Wikimedia
> ecosystem, and gives pointers on how to get involved as a volunteer. I will
> delve into the various ways newcomers can make successful contributions in
> areas ranging from design to documentation, from programming to testing,
> and much more.
>
> YouTube stream for viewers: https://www.youtube.com/watch?v=SXyeRujCrAs
> 
>
> During the live talk, you are invited to join the discussion on IRC at
> #wikimedia-office
>
> You can watch past Tech Talks here:
> https://www.mediawiki.org/wiki/Tech_talks
>
> If you are interested in giving your own tech talk, you can learn more
> here:
> https://www.mediawiki.org/wiki/Project:Calendar/How_to_schedule_an_event#Tech_talks
>
> As always, feel free to reach out to me with any questions!
>
>
> Kind regards,
>
>
> Sarah R. Rodlund
> Technical Writer, Developer Advocacy
> 
> srodl...@wikimedia.org
>
>
>
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] Help please! Database::close: mass commit/rollback... on Special Page

2019-04-23 Thread Gergo Tisza
> $dbw = wfGetDB( DB_SLAVE );
> $dbw->insert( 'omp_master.strain', array( 'id' => null, 'name' =>
$formData['strain_name_field'] ) );

You should use wfGetDB( DB_MASTER ) to get a DB handle for writing.


On Tue, Apr 23, 2019 at 9:16 AM Jim Hu  wrote:

> It’s a custom extension used by my lab only, and while a version is on our
> public github, it’s going to be hard to follow because of entanglement with
> some other custom code libraries we use that wrap the WikiPage class to
> accommodate our use of the TableEdit extension. If you want to look anyway,
> it’s here:
>
>
> https://github.com/microbialphenotypes/OMPwiki/blob/master/OMP/specialpages/StrainSpecialPage/SpecialNewPage.php
>
> But it would probably be more useful for you to wait until I can pare it
> down to something that is minimal to see if I can isolate the problematic
> part and then push that to github.
>
> I was hoping someone had seen a similar problem with Special page
> development and had a simpler answer!
>
> Thanks!
>
> Jim
>
> > On Apr 23, 2019, at 10:29 AM, Jaime Crespo 
> wrote:
> >
> >>> For one of our custom wikis we have a Special Page that creates new
> pages
> >>> based on form input. This used to work in MW1.23 but in the long
> overdue
> >>> update to MW1.31 it stopped working.
> >
> > I am not familiar with Special:StrainNewPage, I am guessing that is
> > custom code not available from a standard extension? If it is not
> > private and you could share that custom code (or at least part of it)
> > maybe someone can help you better to see what is the problem in your
> > case. :-)
> >
> > ___
> > 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] Help please! Database::close: mass commit/rollback... on Special Page

2019-04-23 Thread Jim Hu
It’s a custom extension used by my lab only, and while a version is on our 
public github, it’s going to be hard to follow because of entanglement with 
some other custom code libraries we use that wrap the WikiPage class to 
accommodate our use of the TableEdit extension. If you want to look anyway, 
it’s here:

https://github.com/microbialphenotypes/OMPwiki/blob/master/OMP/specialpages/StrainSpecialPage/SpecialNewPage.php

But it would probably be more useful for you to wait until I can pare it down 
to something that is minimal to see if I can isolate the problematic part and 
then push that to github.

I was hoping someone had seen a similar problem with Special page development 
and had a simpler answer!

Thanks!

Jim

> On Apr 23, 2019, at 10:29 AM, Jaime Crespo  wrote:
> 
>>> For one of our custom wikis we have a Special Page that creates new pages
>>> based on form input. This used to work in MW1.23 but in the long overdue
>>> update to MW1.31 it stopped working.
> 
> I am not familiar with Special:StrainNewPage, I am guessing that is
> custom code not available from a standard extension? If it is not
> private and you could share that custom code (or at least part of it)
> maybe someone can help you better to see what is the problem in your
> case. :-)
> 
> ___
> 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] Database schema diagram for MW 1.32

2019-04-23 Thread Jaime Crespo
On Mon, Apr 22, 2019 at 9:57 PM Krinkle  wrote:
> I've updated it yearly, or every other year, since 2011. – hoping to have it
> updated for MediaWiki 1.32. But, I'm currently struggling to find the time.
>
> Are you interested in learning about and creating the next diagram? Let me
> know :)

It would be nice to get that automated, that could be maybe a nice
GSoC project ?
I started working on
https://gerrit.wikimedia.org/r/#/c/mediawiki/core/+/337390/ as a first
step towards automation, but put it on pause.

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

Re: [Wikitech-l] Help please! Database::close: mass commit/rollback... on Special Page

2019-04-23 Thread Jaime Crespo
> > For one of our custom wikis we have a Special Page that creates new pages
> > based on form input. This used to work in MW1.23 but in the long overdue
> > update to MW1.31 it stopped working.

I am not familiar with Special:StrainNewPage, I am guessing that is
custom code not available from a standard extension? If it is not
private and you could share that custom code (or at least part of it)
maybe someone can help you better to see what is the problem in your
case. :-)

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

Re: [Wikitech-l] Developer account creation

2019-04-23 Thread bawolff
Hi,

I was going to register an account for you, but it looks like there's
already a Luca Mauri  registered in gerrit (from Jan
13, 2019 [1]).

In any case, if all else fails, you can upload a patch via
https://tools.wmflabs.org/gerrit-patch-uploader/ . Its also possible to add
a patch as an attachment (using the git format-patch format) to
phabricator, and ask someone to upload it to gerrit for you.

Sorry for the inconvenience.

--
Brian

[1] https://wikitech.wikimedia.org/wiki/Special:Log/Luca_Mauri

On Mon, Apr 22, 2019 at 11:54 AM Luca Mauri  wrote:

> Dear All,
> I would need to create a developer account for a modification I'd like
> to propose as per https://phabricator.wikimedia.org/T221149
>
> I followed the documentation to this link
> https://wikitech.wikimedia.org/wiki/Special:CreateAccount
> I see the account creation is temporarily unavailable and I read why
> this is happening.
> What it is not clear to me is if there is any forecast for the
> registration to be available again
> And, in the meantime, is there any other way to request an account?
>
> Thanks and have a nice day
>
> Luca
>
> ---
> Questa email è stata esaminata alla ricerca di virus da AVG.
> http://www.avg.com
>
>
> ___
> 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