[00:59:02] hey guys! is there a magic word or template that can do this: out of "google.com/anythinggoeshere", return only google.com? thanks! [01:09:28] Tks4Fish, #titleparts? [01:10:21] {{#titleparts:google.com/anythinggoeshere|1|1}} [01:10:49] let me check [01:11:43] yup, that's exactly it. thanks a lot, Krenair! :D [01:11:49] np [09:04:29] https://en.wikisource.org/w/index.php?title=Page:Baron_Trump%27s_marvellous_underground_journey.pdf/37&action=edit [09:04:38] The scripts in my my common.js aren't running [13:28:11] /win 25 [15:00:53] Technical Advice IRC meeting starting in 60 minutes in channel #wikimedia-tech, hosts: @bmansurov & @Thiemo_WMDE - all questions welcome, more infos: https://www.mediawiki.org/wiki/Technical_Advice_IRC_Meeting [15:50:34] Technical Advice IRC meeting starting in 10 minutes in channel #wikimedia-tech, hosts: @bmansurov & @Thiemo_WMDE - all questions welcome, more infos: https://www.mediawiki.org/wiki/Technical_Advice_IRC_Meeting [15:59:50] o/ I'm here to help. [15:59:58] o/ [16:00:01] * zeljkof is lurking [16:01:06] Hello. May I ask a question regarding Direct Access on my own Wikibase installation? [16:01:18] LucaMauri_: go ahead [16:02:52] Thanks. I have installed two instances of Wikibase, a Repo and a Client and I was able to make it work. I only have an issue with Statement: I am only able to use Arbitrary Access, but Direct Access return empty string [16:03:02] Hey, I know bawolff is involved with his but could you advise what's going on with T213616 (linked to T133821). Also, glad you got beta back up - I did the test I wanted to do and have given feedback now which is good. (see https://phabricator.wikimedia.org/T63737#4988260) [16:03:03] T133821: Content purges are unreliable - https://phabricator.wikimedia.org/T133821 [16:03:20] I think the issue is somewhere in InterWiki or Sitelinks, but I am unsure exactely where [16:04:14] Am I right that to be able to use Direct Access I need to create a link from a Item in Repo to a page in Client using SiteLinks? [16:04:40] I should add the page to the "Other Sites" section on the Itam's page, is this right? [16:04:43] LucaMauri_: hmm, I'm also tangentially familiar with Wikibase. Can you point me to a doc about Arbitrary vs Direct access? [16:05:59] Well, here https://www.wikidata.org/wiki/Wikidata:How_to_use_data_on_Wikimedia_projects#Direct_access [16:06:15] LucaMauri_: ok checking [16:06:20] Oh no, I missed the most interesting 5 minutes of the Technical Advice IRC Meeting. Hello there, I'm here to answer all the questions along with bmansurov! [16:06:25] rhinosf1: I don't have access to T213616. [16:06:43] What's your phab name? bmansurov [16:06:50] * Thiemo_WMDE neither [16:06:51] rhinosf1: bmansurov [16:07:00] one moment [16:07:15] hello there [16:07:18] two questions: [16:07:43] 1. how I can search in codebase? (on Gerrit) [16:08:04] 2. how to go ahead with https://gerrit.wikimedia.org/r/#/c/mediawiki/core/+/492038/ ? [16:08:30] hi all! two questions for me too: [16:08:33] 1. is there a way for tool developers to use something like Grafana to monitor metrics on their services? [16:08:56] bmansurov - should have now. Thiemo_WMDE, Who are you in phab? I'll grant it. [16:09:34] superyetkin: https://codesearch.wmflabs.org is awesome. Can you check if this is what you are looking for? [16:09:49] rhinosf1: thiemowmde, I think. [16:09:56] LucaMauri_: when you go to the Wikidata Item's page (that you're trying to link directly), do you see a link to your wiki? [16:10:03] * rhinosf1 checking [16:10:36] I am not using Wikidata, I sent you an example, but I am using my own Repo [16:10:39] Thiemo_WMDE: that is really good, thanks [16:10:49] rhinosf1: thanks, checking [16:10:53] I've added you both [16:13:07] LucaMauri_: I think what you did so far is exactly whats needed. You need to add the page name as a "sitelink" to the wikibase item it should belong to. If this succeeded, there should be a link "Wikidata item" in the sirebar of the page, and the same information in the "Page information". [16:13:47] Thiemo_WMDE: thanks for codesearch link, hadn't known about that one yet. [16:13:57] Ok, so it seems the SiteLink is my issue. When I open Other Sites window I am apparently only able to add a link to something called "wikimediawiki" [16:14:05] Which I suppose is a placeholder or something [16:14:15] LucaMauri_: The issue you might have run into is that the repos configuration of what other pages are allowed to be used in sitelinks is incomplete. [16:14:30] But I don't know how to add the real client Wiki to the SiteList [16:14:32] LucaMauri_: Also both wikis must use the same SQL database. [16:14:58] They are using the same RDBMS but two separate databases [16:16:06] rhinosf1: I've gone through the conversation. I'd give the people involved some time. Looks like they're looking into it more. [16:17:05] here is question 2 for me: I run https://tools.wmflabs.org/openrefine-wikidata/ which is basically a wrapper over Wikidata search. I would like to publish a dataset of a sample of queries that run through this services. Is it okay to do that policy-wise? [16:17:35] bmansurov - Good, from what i can see without a massive technical background essam server was the issue I saw but it looks like that was working now but it's been spotted in other servers. [16:18:12] pintoch: re q1: do you mean you want access to http://grafana.wikimedia.org/ for your tool? [16:18:23] LucaMauri_: Have a look at the siteLinkGroups as well as specialSiteLinkGroups settings. https://phabricator.wikimedia.org/diffusion/EWBA/browse/master/docs/options.wiki$14 [16:19:01] bmansurov: exactly [16:20:00] > superyetkin> how I can search in codebase? (on Gerrit) [16:20:27] you can also use github search: org:wikimedia search_string [16:20:40] something like https://github.com/search?q=org%3Awikimedia+test [16:21:33] pintoch: Take a look at https://phabricator.wikimedia.org/T108546 [16:21:45] superyetkin: gerrit also has search, but I'm not sure what you're searching for, an example would help [16:22:12] pintoch: you may have to create a Phabricator task and request access. [16:22:17] this is an example: https://codesearch.wmflabs.org/search/?q=brokenredirects&i=nope&files=&repos= [16:22:27] that works [16:22:42] github search does not come up with any results for that query [16:23:10] also, please take a look at https://gerrit.wikimedia.org/r/#/c/mediawiki/core/+/492038/ [16:23:11] bmansurov: thanks a lot - if that's not something that is intended to be used by toollabs users I totally understand though [16:23:25] superyetkin: yeah codesearch is great [16:23:32] I am not sure what Reedy means by "hook" there [16:23:46] how to hook in broken redirects special page? [16:24:19] superyetkin: You asked how to proceed with https://gerrit.wikimedia.org/r/492038. My suggestion would be to create a Toolforge tool or similar script on WMFLabs to solve the task in question. But not try to add code that is specific to one particular server to the MediaWiki core codebase. Such code definitely does not belong there. [16:24:21] I have provided an if-else block in my patch but Reedy objects [16:24:29] Thiemo_WMDE I looked at it, but I am not sure of the syntax. I looked at https://www.mediawiki.org/wiki/Wikibase/Installation/Advanced_configuration#Configuration for some help, but I only "Basic Settings with changesDatabase,siteLinkGroups,localClientDatabases (with examples)" Looks like somebody should adapt documentation [16:24:31] pintoch: for tool labs, I wouldn't worry about performance metric [16:24:39] Is there any example you think I can look at? [16:24:44] pintoch: re q2: Please refer to https://foundation.wikimedia.org/wiki/Privacy_policy [16:25:02] pintoch: labs may have their own privacy policy [16:26:12] superyetkin: you should ask Reedy to clarify in the patch, I'm not familiar with that [16:26:15] Thiemo_WMDE: I understand but how to "fix" this brokenredirects thing? it currently misleads people [16:26:19] LucaMauri_: I think it works best when you use the "wikipedia" group for both of your wikis. That's what I remember. If this doesn't help, I suggest to ask at https://www.wikidata.org/wiki/Wikidata:Contact_the_development_team [16:26:26] bmansurov: what do you mean by not worrying? My service is used by quite a lot of people who can get quite frustrated if the service slows down for one reason or another… I have set up my own ad-hoc monitoring tools but it's far from what grafana would offer (I think) [16:26:35] it displays red links whereas the meta page of a user exists [16:26:51] the result is complely wrong now [16:27:09] superyetkin: What is the problem with showing a red link when there is indeed no (local) user page? [16:27:14] (all I have is https://tools.wmflabs.org/openrefine-wikidata/monitoring that I check regularly, plus a downnotifier.com monitoring which notifies me when the service goes down) [16:27:54] pintoch: oh I see. I thought you were using it for experimental ad hoc stuff. [16:28:24] pintoch: btw, tools privacy statement redirects to the link I pasted earlier [16:28:27] Thiemo_WMDE: yes, a local page does not exists but a "universal" one does, and it should replace the other, I think [16:28:56] pintoch: let me check grafana and see if it's also being used for tools. [16:29:08] superyetkin: The feature is in an extension. https://www.mediawiki.org/wiki/Extension:GlobalUserPage This means the code you are looking for must be in this extension. What you need is a way to interact with the existing special page. Hooks are one way to do this. Not sure if using a hook is the best solution. But you can try. [16:29:43] Thiemo_WMDE I am not sure how to assign a group to my wikis. Is there a documentation for this? [16:29:45] Thiemo_WMDE: how to do that? [16:29:54] superyetkin: Do what? [16:30:01] how to understand whether we a re on a WMF wiki? [16:30:33] Thiemo_WMDE and the WikiData DevTeam will help me with a custom Repo also? [16:30:57] You don't need to. When the extension is installed, the extension knows where the global user pages are. It just needs a way to tell this the SpecialBrokenRedirects class, e.g. via a hook. [16:31:23] how? [16:31:30] is there an example? [16:31:43] LucaMauri_: They are trying hard to update the documentation, as well as help users to install wikibase on their own servers. Yes, they will help. [16:32:11] bmansurov: thanks! maybe the fact that I feel the need of Grafana is an indication that I shouldn't run the service in toollabs but somewhere more isolated - I can look for other options too [16:32:36] superyetkin: I'm afraid these questions are to vague. How hooks work is documented at https://www.mediawiki.org/wiki/Manual:Hooks [16:33:32] Thiemo_WMDE Ok, then I will try with them, I am really lost unfortunately :-( Thanks for your help [16:33:37] Thiemo_WMDE: ok, thanks for your insight [16:34:43] another question: is there any way on Gerrit to find the changes I contributed to? [16:35:16] superyetkin: this? https://gerrit.wikimedia.org/r/q/owner:self [16:35:17] superyetkin: Depending on what you actually want to do with the information available via SpecialBrokenRedirects, it might be better to create your own toolforge script for the task you are thinking of. Or just use existing services like https://de.wikipedia.org/wiki/Wikipedia:Technik/Labs/Quarry to query exactly what you want to know. [16:35:28] no, not owner [16:35:54] https://gerrit.wikimedia.org/r/#/q/reviewer:self [16:36:12] superyetkin: https://gerrit.wikimedia.org/r/q/committer:self [16:36:26] So many possibilities! \o/ [16:36:49] pintoch: Take a look at https://wikitech.wikimedia.org/wiki/Prometheus Looks like you can add monitoring to your instance, but I think you'd still need access to graphana too (if you already don't have it). [16:37:29] pintoch: here's the interface https://beta-prometheus.wmflabs.org/beta/graph [16:39:07] cannot find https://gerrit.wikimedia.org/r/#/c/operations/mediawiki-config/+/455887/ there [16:40:38] Thiemo_WMDE: I already have the query. What I was trying to do was to fix the special page [16:40:56] I am going to try the hook method as per your explanation [16:41:15] I hope Reedy accepts that :) [16:41:21] Hey, What's happening with Mobile UI redevelopment? I've just remembered an issue with the UI on my phone. It sometimes really awkward and the publish bar at the top gets hidden (moving too far up) and requires pinching to zoom out multiple times to bring in view. Where can I raise an issue? [16:41:59] bmansurov: thank you so much! [16:42:16] pintoch: no problem [16:43:23] rhinosf1: https://phabricator.wikimedia.org/maniphest/task/edit/form/1/ [16:43:30] rhinosf1: and tag it with MobileFrontend [16:43:45] Thanks bmansurov [16:44:43] rhinosf1: please include as much information as you can. things like your browser version, OS, etc. [16:44:52] Will do [16:44:55] rhinosf1: and screenshots too ;) [16:49:13] Did we missed a question so far? [16:52:56] rhinosf1: You asked about https://phabricator.wikimedia.org/T213616. I'm afraid I can't add any more information. Any discussion should happen in this ticket. [16:53:11] It's fine [16:54:43] do you know how to purge the cache on MariaDB? Some of my queries come up with outdated data, I think [16:55:23] superyetkin: https://mariadb.com/kb/en/library/flush-query-cache/ [16:56:31] can these be run on replicas? [16:56:36] LucaMauri_: The populateSitesTable.php script just came to my mind. It's mentioned a few times in https://www.mediawiki.org/wiki/Wikibase/Installation . Make sure to run it. [16:56:52] rhinosf1: what page did you try editing? Can you include some URLs to the task? [16:57:01] LucaMauri_: I also poked you in a separate chat window. Maybe you missed it. [16:57:56] rhinosf1: oh, you said you'd add it. Can you also indicate whether you were in the beta mode or not. [16:58:31] Some beta features are on [16:58:49] rhinosf1: I mean the beta mode in mobile. [16:59:12] rhinosf1: If I'm not mistaken, I don't think the desktop beta features affects mobile. [16:59:35] Won't let me add this https://usercontent.irccloud-cdn.com/file/DA6a7AJT/7658CE80-E96C-41CB-9A36-5345D3CD03CC.MP4 [16:59:53] Beta is not on [17:01:08] ok cool [17:01:36] It was fun hanging out here. I hope I didn't send anyone in the wrong direction. [17:01:36] That was the official 60 minutes of todays Technical Advice IRC Meeting. Thanks for all the amazing discussions! [17:01:52] Is that filled out correctly bmansurov [17:02:07] rhinosf1: yes looks good [17:02:21] Thanks for your help [17:02:49] np [18:34:24] This is probably a silly question, but is all that’s needed to associate an edit or action with an existing tag just adding “tags” to the api query? Nothing else? [19:19:22] Hey, Is the text placement a bug? https://usercontent.irccloud-cdn.com/file/jPKx60LQ/3E3AF344-F7EB-4783-98EF-F6174FAF842D.jpeg [19:20:14] rhinosf1: what gadget / user script is that? [19:20:16] This is how it should look https://usercontent.irccloud-cdn.com/file/btAAzw46/B4B2F151-4831-43F2-86D8-35648466C926.jpeg [19:20:28] One moment [19:22:06] andre_ here's all my scripts: https://en.wikipedia.org/wiki/User:RhinosF1/common.js - What I don't get is the view I get is really random? Either too big or normal. [19:23:25] it could be the .js isnt loading fully. i've had that issue every now and then a ctrl+f5 should fix it [19:25:00] ctrl+f5 fixes it, I just don't get why it happens. [19:27:36] There's a lot of text weirdness with desktop mode on mobile, https://phabricator.wikimedia.org/T177697 was an issue for a while [19:38:45] Thanks [19:40:40] I'll open a ticket and link later. [19:56:07] how to purge query cache in replica servers? [20:00:05] Superyetkin - see T133821 if it's not working [20:00:05] T133821: Content purges are unreliable - https://phabricator.wikimedia.org/T133821 [20:59:19] I'm not sure where to report the following, but giving it a quick try on this channel. On the Dutch Wikipedia there is an 'advertisement' running for Wikimania of 2018. If you click on the link it brings you to https://scholarships.wikimedia.org/apply which looks reasonable. But maybe it's something we want have fixed. Just replace 2018 by 2019. This doesn't look smart. [21:22:06] christopheambrec: can you give a link where the 'ad' appears? I guess it is a banner of some sort at the top of the page? [21:23:37] Community banner [21:23:48] I'll pull it and fix it [21:24:06] (I went to what I thought was the approprate wp main page but no banner) [21:24:07] thanks [21:35:05] I saw it on https://nl.wikipedia.org/wiki/Anuna_De_Wever but it only appeared once. After clicking it, it disappeared when I revisit the page. [21:36:17] a banner on top of the page is exactly what is was [22:08:57] https://en.wikipedia.org/wiki/Special:RecentChanges?damaging=likelybad%3Bverylikelybad&limit=50&days=30&goodfaith__likelybad_color=c4&goodfaith__verylikelybad_color=c5&urlversion=2 [22:09:18] I don't believe that there have been no problematic edits in the last 20 minutes. [22:11:16] Same for me [22:22:43] ^^^ Looks to be working now [22:28:16] Anyone around to glance over a phab ticket I've just filed? [22:30:59] ^^ I'll deal with it in the morning