[02:05:47] !class IP [02:05:47] See https://doc.wikimedia.org/mediawiki-core/master/php/html/classIP.html [04:07:03] I'm looking for help to increase the allowed size of uploads. I'm working on a docker setup with containers for nginx to route between wordpress for the home page, and mediawiki for the content [04:08:58] I'm reading the manual about configuring file uploads, which says to locate the php.ini [04:09:04] I'm trying to find that file now [04:30:15] so I'm docker exec into the running wiki container, did which php, and found it in /usr/local/bin/php [04:45:36] but that is not a folder, oddly enough, it's a binary [08:06:02] Hi, is it possible to use something like ?uselang=qqx when saving an edit? This is done using POST request so nothing like ?action=submit&uselang=qqx doesn't work... [08:06:27] And as qqx isn't language in preferences, I can't use it this way. [10:47:30] is there a way to return the first paragraph from a section through the API, like TextExtracts? can't see such an option in TextExtracts [10:48:32] I could probably use exsectionformat and then parse that I guess [11:04:50] uh, I don't think it's meant to return \ufffd [11:04:52] https://werewolf.chat/w/api.php?action=query&prop=extracts&exsectionformat=raw&explaintext=true&titles=Roles&format=json [11:53:26] > No revision has been approved for this page. View the most recent revision. [11:53:56] I see this message on one wiki for newly created pages. How do I get a list of all pages in the approve queue via API? [11:55:18] It is using https://www.mediawiki.org/wiki/Extension:Approved_Revs but I don't see much info in /w/api.php about it. [12:03:59] gry: Because it doesn't have any API modules [12:04:21] Really? How do I get a list of pages which are not yet approved programmatically? [12:04:27] I guess you don't [12:04:47] Ouch. Can I request API module to be written? [12:04:48] The special page isn't even a query page... [12:04:58] So you can't even pull it that way [12:05:22] https://directory.fsf.org/wiki?title=Special:ApprovedRevs&limit=500&offset=0&show=unapproved [12:06:11] fuck yeah, screen scraping :( [12:06:18] I now have to parse this html by hand you mean? [12:06:30] That's about all you can do atm, unfortunately [12:06:30] gry: you can always file a bug against the extension for a API module [12:06:47] p858snake|L2: I see no phab tag for the extension though [12:06:47] but that doesn't guarantee that the extension developer will do anything about it [12:07:31] Mediawiki-Extensions-Other and assign to yaron [12:07:54] or just give me the rights, and then I will make one >.> [12:07:55] gry: Extract the
    and regex for ">(.*?)" [12:07:58] Horrible, I know [12:09:48] I filed a bug and added a few people from https://phabricator.wikimedia.org/diffusion/EARE/history/master/ to CC. [12:10:29] https://phabricator.wikimedia.org/T149480 [12:11:36] Thanks :) [12:11:49] In theory, it shouldn't be difficult to write something to do that [12:11:54] Thank you both too. [12:12:07] I'm sorry there's not a better solution [12:12:46] It's ok. I commend you to do that API modules writing any time you want a change of task once to break a routine. :) [12:13:11] Depends how bad the code actually is [12:13:40] Oh, improving code is such a wonderful task. It claims to be lightweight ... [12:14:03] I don't mind usually [12:14:07] :) [12:14:17] But when I start, I end up spending a lot of time just making things consistent, fixing up general crap [12:14:33] You need more hugs. [12:14:46] Wait, hang on [12:14:46] class SpecialApprovedRevsPage extends QueryPage { [12:14:51] Ooooo. [12:15:02] Where's the link to your API?? [12:15:12] http://directory.fsf.org/w/api.php [12:15:20] MediaWiki 1.20.2 [12:15:23] That *should* be new enough [12:15:34] FWIW, you really should upgrade to a supported version :) [12:15:52] I'm not FSF staff so I can't do that, but I'll pass it on. Thanks. :) [12:16:08] Well, that sucks [12:16:09] * list=querypage (qp) * [12:16:31] Why doesn't that appear? [12:16:49] (the approved revs under querypage) [12:17:36] Aha [12:17:37] Hooks::run( 'wgQueryPages', [ &$qp ] ); [12:17:57] gry: I can probably fix this, at least one way, easily for you [12:18:07] You'll need them to update the extension... [12:18:17] But you could be being hampered by old MW too [12:18:44] Yes I have installing a mediawiki on a little test server on my todo for next week because I would like to do some theming work. [12:18:53] Meanwhile I'm rather useless. [12:19:32] If you could fix it and tell me whether old mediawiki is a problem, I can pass on some specific information about what to do. [12:19:55] Although I guess upgrading mediawiki should be easy and useful either way. [12:23:03] Untested, but... https://gerrit.wikimedia.org/r/318676 [12:23:11] That should be enough to make it appear as an API query page [12:23:17] Not as good as writing a whole api module [12:23:29] But should be enough to get your list, with minimal work [12:29:15] gry: But yeah, I'd highly reccommend they upgrade to at least 1.23, if not 1.27 [12:29:21] 1.27 will require PHP >= 5.5.9 [22:43:56] Zppix: Hey, why did you tag https://phabricator.wikimedia.org/T149501 with #Community-IdeaLab ? Is there a related proposal on the IdeaLab site or why? [22:44:23] It just came up with create subtask [22:44:53] I didnt "directly" tag it [22:45:05] Zppix, I see... why is there a poll? [22:45:27] To aid discussion [22:45:57] Zppix, but "discussion" happens by writing arguments in comments, not by saying Yes or No? [22:46:10] Hence other option [22:46:25] Zppix, how is Yes or No a discussion? [22:46:29] I just don't believe in software development being a popularity contest... [22:46:35] hold on [22:46:45] this is the protection task correct [22:47:02] https://phabricator.wikimedia.org/T149501 [22:48:04] Its about agreeing or not to giving users that access [22:48:10] Zppix, .....and then? [22:48:18] If I agree or disagree, how does it matter? [22:48:23] Explaining if they feel inclined [22:48:44] Okay. And if I agree or disagree, how does it matter? [22:52:11] It shows that other people are willing to have this change implemented and such [22:52:45] Zppix: Okay. How is that helpful? [22:53:00] I still can't work out the point of it [22:53:49] andre__: Zppix: https://meta.wikimedia.org/wiki/Grants:IdeaLab/Protect_user_space_by_default [22:54:10] Dereckson: yeah, I understand that. [22:54:19] Dereckson, however I'm confused by seeing a poll in the task itself. [22:54:23] To show if its a feature to add thats worthwhile and not likely to be or likely to be overruled by the community [22:54:33] @ andre__ [22:55:03] Zppix: how do you make sure that "the community" registers on Phabricator and takes place in that poll? Instead of having the usual Support / Oppose votes on wiki? [22:55:26] (should have a Condorcet when there are 5 options to pick from) [22:55:46] Good point i didnt think about that (im currently doing lots of things at the time) [22:55:59] sorry, 6 options — https://en.wikipedia.org/wiki/Wikipedia:Requests_for_comment/Protect_user_pages_by_default [22:57:06] Zppix: If I set up a poll, it's normally to find out something and having an idea of opinions before deciding whether to do something else. [22:57:08] fr.wikipedia loves A > B > D > C,E,F votes when there are so many possibiltiies, to allow participants to sort the options by order or preference [22:57:15] Zppix: What would be the "do something else"? [22:58:03] Ill remove poll per ^ [22:59:28] Zppix: My underlying point is: You should make clear what the poll does and especially what it not does. If I "voted" I might think that the more Yes votes a proposal gets, the more likely it is that a developer implements it. [22:59:54] I realise that now [23:00:23] Zppix: And maybe that's something that you cannot guarantee. I don't know - maybe you'd implement it after a certain number of votes. Or you've talked to others devs before (I don't know, maybe you did) [23:00:36] I'm simply afraid of a wrong impression that "my vote counts". [23:00:58] I removed and closed it [23:01:01] that's why I initially wrote that "software development is not a popularity contest" [23:01:02] thanks [23:01:08] By remove i meant the comment [23:01:54] No problem phab isnt my strongest suit right now... Getting to learn some of it still [23:02:16] ah, cool [23:02:37] I was more after understanding your idea behind. :) [23:03:39] Eh idk i guess my enwiki brain switch on instead of the developer one xD [23:05:20] hehe [23:46:55] andre__: im getting a report from an helpee complaining about images on enwiki showing as "?" Any ideas [23:47:04] S/he is on imac [23:49:27] Zppix: What is "?"? [23:49:48] Zppix andre__ dosent do enwiki images [23:49:48] The replacement image of a browser when an image cannot be loaded, I guess? [23:49:49] that would be -operations [23:50:06] paladox: I don't know what you want to express by "andre__ dosent do enwiki images" [23:50:07] Paladox just checking before i bug ops [23:50:19] Someone provide steps to reproduce, please :) [23:50:34] they ref https://en.wikipedia.org/wiki/Michael_Caine as one of prob pages [23:50:39] They are using safari [23:50:39] andre__ Just telling him that you doint deal with enwiki things, like you told me :) [23:50:55] paladox: errr. what? [23:50:59] Paladox but he is also the bugwrangler [23:51:00] paladox, quote welcome. [23:51:16] paladox, I'd be surprised if I ever said that. [23:52:04] andre__ i forgot the link for the page you linked to, that describes your job title [23:52:25] Mediawiki.org/Bugwrangler? [23:52:39] paladox: and I'm sure that pages does not say "does not deal with broken images on en.wp" [23:53:12] Its not a image itself paladox as it loads for me [23:53:24] But something else but im not sure what [23:53:42] Zppix, hard to say without a screenshot and location. [23:53:44] Zppix, Only recent thing coming to my mind is https://phabricator.wikimedia.org/T145661 but until that's not clear it's a 'separate' issue [23:53:53] Zppix, ask on the Village Pump? [23:54:05] also when i asked you about a user reverting edits, and i carn't remeber what you said exactly. [23:54:38] paladox: I said that content is content. [23:54:48] Yes the content is correct [23:54:48] They said page/link broken was error msg [23:55:09] https://www.mediawiki.org/wiki/Bugwrangler [23:55:31] paladox: I have no idea what your previous line is supposed to mean, sorry. "Yes the content is correct" ? [23:56:04] Oh wait sorry [23:56:09] paladox: I said that I care about software bugs, and thta I don't care about whether some users engage in discussing content edits. [23:56:32] Oh sorry i mistaken that for you only dealing with bugs reported in phab [23:56:34] Sorry [23:56:42] Haha i care about both lol