Re: [Wikitech-l] What is "revision slot" and why is it necessary to specify it now?

2020-04-06 Thread Brad Jorsch (Anomie)
On Mon, Apr 6, 2020 at 1:06 PM Jeroen De Dauw wrote: > Related question: is it possible to edit existing slots and add new ones > via the API? > Not yet. That's tracked as T208801 <https://phabricator.wikimedia.org/T208801>. -- Brad Jorsch (Anomie) Senior Software Eng

Re: [Wikitech-l] What is "revision slot" and why is it necessary to specify it now?

2020-04-06 Thread Brad Jorsch (Anomie)
;type": [ > "main" > ], > > ... > Yes, that's the part. Further up in the data structure you can see that it indicates all parameters for the module are prefixed by "rv". ``` "

Re: [Wikitech-l] What is "revision slot" and why is it necessary to specify it now?

2020-04-06 Thread Brad Jorsch (Anomie)
on=paraminfo endpoint for the module in question for something like this. If e.g. https://www.mediawiki.org/w/api.php?action=paraminfo=query+revisions reports that rvslots is available then use it, otherwise use back-compat code. -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation

[Wikitech-l] BREAKING CHANGES to Action API parameter validation

2020-02-04 Thread Brad Jorsch (Anomie)
html for details. Both of these changes will most likely go out to Wikimedia wikis with 1.35.0-wmf.19. See https://www.mediawiki.org/wiki/MediaWiki_1.35/Roadmap for a schedule. -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation __

Re: [Wikitech-l] Reason for actionthrottledtext API blocking?

2020-01-13 Thread Brad Jorsch (Anomie)
w.mediawiki.org/wiki/OAuth/For_Developers and https://www.mediawiki.org/wiki/OAuth/Owner-only_consumers for some details. -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] Composer does not know mediawiki/mediawiki on dry-runs

2019-11-15 Thread Brad Jorsch (Anomie)
wikimedia.org/T467>, which rejected the proposal to manage extensions via composer. I think you assume correctly. -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l

[Wikitech-l] Pre-MCR database fields are no longer being written on group 0 (and soon on the rest of the Wikimedia wikis too)

2019-11-12 Thread Brad Jorsch (Anomie)
be related to this change, please file them in Phabricator and tag #Core-Platform-Team. Thanks! -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org

Re: [Wikitech-l] Dropping PHPUnit 4 support

2019-10-07 Thread Brad Jorsch (Anomie)
raries in core's includes/libs/ directory) intended for use independent of MediaWiki can't use a MediaWiki-specific test case base class. -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation ___ Wikitech-l mailing list Wiki

Re: [Wikitech-l] Book referencing proposal

2019-09-30 Thread Brad Jorsch (Anomie)
workaround, you can use {{#tag:ref}} directly to nest them. -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] TechCom Radar 2019-09-18

2019-09-20 Thread Brad Jorsch (Anomie)
radeoff each time we lock some functionality behind a "richer" wall. -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] Help merge patch (Interwiki)

2019-07-22 Thread Brad Jorsch (Anomie)
e "global cleanup" commits. We have people who do valuable work in replacing deprecated code, fixing minor code style sniff errors, and so on that don't actually maintain all the code they touch in the process and I don't want to bombard them with spurious review requests. -- Brad Jor

Re: [Wikitech-l] Dealing with composer dependencies in early MediaWiki initialization

2019-07-19 Thread Brad Jorsch (Anomie)
ible. > The other options I could think of would be to make --server a required parameter to the CLI installer, or to let the CLI installer generate a LocalSettings.php that does not result in a usable wiki (since it will give the error that $wgServer needs to be set in LocalSettings.php). --

Re: [Wikitech-l] Issues with Cross-Origin Resource Sharing (CORS) JQuery Request

2019-05-06 Thread Brad Jorsch (Anomie)
imedia.org/r/plugins/gitiles/operations/mediawiki-config/+/6cdae859db1611ffba7f6507faf8c54c6d38d217/wmf-config/CommonSettings.php#631 -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] Fetching edit notices via API

2019-04-29 Thread Brad Jorsch (Anomie)
te removal. That removal is why enwiki doesn't use the MediaWiki:Editnotice-- style notices, instead having every MediaWiki:Editnotice- invoke a template that transcludes subpages of Template:Editnotices/ <https://en.wikipedia.org/wiki/Special:PrefixIndex/Template:Editnotices/> (plus that syst

Re: [Wikitech-l] mwoauth.errors.OAuthException in Flask

2019-04-09 Thread Brad Jorsch (Anomie)
; state. -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] mwoauth.errors.OAuthException in Flask

2019-04-09 Thread Brad Jorsch (Anomie)
directly instead of using the authorization endpoints. I don't know how to do that using Flask; if you need help with that you'd probably do better to ask in a forum specific to Flask. -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation __

[Wikitech-l] User/actor storage changes

2019-04-03 Thread Brad Jorsch (Anomie)
yment process. Note that accesses to the actor table may be slow, as are accesses to the comment table. Improving that situation is being tracked at https://phabricator.wikimedia.org/T215445. -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation

Re: [Wikitech-l] Unbreak now! problem in this week train Watchlist

2019-03-14 Thread Brad Jorsch (Anomie)
‪On Thu, Mar 14, 2019 at 1:29 PM ‫יגאל חיטרון‬‎ wrote:‬ > From time to time the API post query "mark this revision as read" does not > work. Nothing in the reproduction steps you list does such a post query. -- Brad Jorsch (Anomie) Senior Software Engineer Wiki

Re: [Wikitech-l] ManualLogEntries::publish do not store tags when published to `udp`

2019-03-12 Thread Brad Jorsch (Anomie)
like that. > Additionally, I'd like to introduce a Taggable interface[6], that provides > a one way to tag objects (right now RecentChange exposes addTags() method > but the ManualLogEntry exposes setTags() method). > "Taggable" seems like it may be too generic. "Medi

[Wikitech-l] MediaWiki PHP coding conventions for declaring return types

2019-02-13 Thread Brad Jorsch (Anomie)
I've started a discussion at https://www.mediawiki.org/wiki/Manual_talk:Coding_conventions/PHP#Declaring_of_return_types. Please comment there if interested. -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation ___ Wikitech-l mailing

Re: [Wikitech-l] Wikimedia production excellence (January 2019)

2019-02-13 Thread Brad Jorsch (Anomie)
one, not me. -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] The mw.ext construct in lua modules

2019-02-05 Thread Brad Jorsch (Anomie)
d LinkedWiki seem to be the only two extensions not using mw.ext, while Cargo, DataTable2, DisplayTitle, DynamicPageListEngine, FlaggedRevs, JsonConfig, ParserFunctions, and TitleBlacklist all do. -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] Help: setting a property on page save?

2018-12-05 Thread Brad Jorsch (Anomie)
uld use a change tag. See https://www.mediawiki.org/wiki/Manual:Tags for an overview. -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] Coming soon: Find your way back from multi-referenced footnotes

2018-11-27 Thread Brad Jorsch (Anomie)
gt; ___ > Wikitech-l mailing list > Wikitech-l@lists.wikimedia.org > https://lists.wikimedia.org/mailman/listinfo/wikitech-l -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] If users can't edit an article, don't encourage them to edit its Wikidata item

2018-10-30 Thread Brad Jorsch (Anomie)
scade protection and blocking on all wikis to adjudicate whether one wiki's use of cascade protection or blocking was really trying to disrupt Commons/Wikidata/Meta. -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation __

Re: [Wikitech-l] Comment/summary storage changes

2018-10-16 Thread Brad Jorsch (Anomie)
AM Brad Jorsch (Anomie) wrote: > As you may have been aware, we've been working on changing how MediaWiki > stores comments: instead of having them as fields in each revision > (rev_comment), log entry (log_comment), and so on, we're storing the text > in a central "comment&quo

Re: [Wikitech-l] [Wikitech-ambassadors] Translations on hold until further notice

2018-09-27 Thread Brad Jorsch (Anomie)
de.wikipedia.org/w/index.php?title=Spezial:MediaWiki-Systemnachrichten==modified=de=5000 for dewiki's. "Added since 2018-09-27" would only be marginally better. Old overrides wouldn't be lost, but you'd still wipe out new overrides that are intended to actually be overrides rather than workaro

Re: [Wikitech-l] [Wikitech-ambassadors] Translations on hold until further notice

2018-09-27 Thread Brad Jorsch (Anomie)
> turned back on? > The "expect that it will be overwritten" part isn't how it works. The local copy will remain in effect until someone deletes it. -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation ___ Wikitech-

Re: [Wikitech-l] Comment/summary storage changes

2018-09-17 Thread Brad Jorsch (Anomie)
On Mon, Sep 17, 2018 at 11:07 AM, Brad Jorsch (Anomie) < bjor...@wikimedia.org> wrote: > We've been writing to the new fields and tables since the end of February > 2018, and have back-populated them for old revisions, log entries, and so > on. > Correction, the back-population

[Wikitech-l] Comment/summary storage changes

2018-09-17 Thread Brad Jorsch (Anomie)
mmentStore class that was introduced in MediaWiki 1.30. You can watch https://phabricator.wikimedia.org/T166733 (and any subtasks) for more information on the deployment process. -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation ___

Re: [Wikitech-l] [Engineering] Additional European-appropriate MediaWiki train window starting week of July 9th (also SWAT change)

2018-07-11 Thread Brad Jorsch (Anomie)
<https://ballotpedia.org/California_Proposition_7,_Permanent_Daylight_Sa > ving_Time_Measure_(2018)> > > Hopefully we can get rid of this problem at the root cause as well :) > You forgot about most of the rest of the US ;) -- Brad Jorsch (Anomie) Sen

Re: [Wikitech-l] Help needed on fixing discrepancies in db schemas

2018-07-09 Thread Brad Jorsch (Anomie)
vision" and "text" (r6710 <http://mediawiki.org/wiki/Special:Code/MediaWiki/6710>), the "old" table was just renamed to "text" since most of the text was already in that table. Which is why all the fields in text use "old_" as a prefix. It seems

Re: [Wikitech-l] RFC discussion: the future of rev_parent_id

2018-06-04 Thread Brad Jorsch (Anomie)
revision as the "parent" instead of the current revision, again different from the current behavior. And maybe the same for rollbacks and at least some undos. -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation ___ Wikitech-l m

Re: [Wikitech-l] Introducing Quibble, a test runner for MediaWiki

2018-04-30 Thread Brad Jorsch (Anomie)
none since all the columns are varbinary. > innodb_large_preffix cannot be enabled anymore because it is enabled > (hardcoded) automatically on MySQL 8.0. > That's good, once we raise the supported version that far. Currently it looks like we still support 5.5.8, which at least has the setting to enable.

Re: [Wikitech-l] Introducing Quibble, a test runner for MediaWiki

2018-04-30 Thread Brad Jorsch (Anomie)
ary based on that mode flag to enforce limits on bytes versus codepoints. BTW, for anyone reading this who's interested, the task for that schema abstraction idea is https://phabricator.wikimedia.org/T191231. -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation __

Re: [Wikitech-l] Introducing Quibble, a test runner for MediaWiki

2018-04-28 Thread Brad Jorsch (Anomie)
d probably be better to use NameTableStore instead. -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] [Ops] Changes to SWAT deployment policies, effective Monday April 30th

2018-04-27 Thread Brad Jorsch (Anomie)
ller SWAT window for that one change because they'd need 2 patches (1 per file) that both count double (because two branches)? -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation ___ Wikitech-l mailing list Wikitech-l@lists.wikimed

Re: [Wikitech-l] "PHP test coverage decreased" - really?

2018-04-26 Thread Brad Jorsch (Anomie)
unchanged. The patch adds 13 lines in hasSameContentAs(), but only covers 12 of them with tests. Line 594 was missed, which explains the slight decrease. In this case no method-level @covers is needed because SlotRecordTest has "@covers \MediaWiki\Storage\SlotRecord" at the class le

Re: [Wikitech-l] Mobile MonoBook

2018-04-04 Thread Brad Jorsch (Anomie)
my personal recommendation and not any sort of official WMF position. I likely won't even be involved in the code review for her patch. -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation ___ Wikitech-l mailing list Wikitech-l@lists.wikime

Re: [Wikitech-l] Mobile MonoBook

2018-04-04 Thread Brad Jorsch (Anomie)
//www.mediawiki.org/wiki/Extension:TemplateStyles -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l

[Wikitech-l] Unblocking 79 IPs blocked as open proxies 12 years ago (T189840)

2018-03-21 Thread Brad Jorsch (Anomie)
://phabricator.wikimedia.org/P6876 in case anyone wants to review them for potential reblocking. -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman

Re: [Wikitech-l] PHP7 expectations (zero-cost assertions)

2018-03-15 Thread Brad Jorsch (Anomie)
like use is still an option and exception-throwing seems to not be the default. -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] PHP7 expectations (zero-cost assertions)

2018-03-15 Thread Brad Jorsch (Anomie)
or that library includes some reasoning for using it over PHP's assert(), with links to past discussion. [3]: https://packagist.org/packages/wikimedia/assert [4]: https://codesearch.wmflabs.org/search/?q=%5CtAssert%3A%3A=nope=php%24= -- Brad Jorsch (Anomie) Senior Software Engineer Wikim

Re: [Wikitech-l] Recursive Common Table expressions @ Wikimedia [was Fwd: [Wikimedia-l] What's making you happy this week? (Week of 18 February 2018)]

2018-02-28 Thread Brad Jorsch (Anomie)
JOIN page ON cl_from = page_id WHERE > page_namespace = 0 ORDER BY page_title; -- printing only articles in the > end > , ordered by title > Does that work efficiently on huge categories, or does it wind up fetching millions of rows and filesorti

[Wikitech-l] Help test longer edit summaries (and other comments) on testwiki (for real this time)

2018-02-07 Thread Brad Jorsch (Anomie)
/Main_Page [2]: https://test2.wikipedia.org/wiki/Main_Page [3]: https://test.wikidata.org/wiki/Wikidata:Main_Page -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https

Re: [Wikitech-l] (Large) Discrepancies between API-Statistics and Stepwise API-based extraction [Update]

2018-02-02 Thread Brad Jorsch (Anomie)
_queries for details. New clients should use this new format since it's much harder to handle it incorrectly. The "continue=||" is part of the new format's handling of the tricky bits of generators and multiple query modules. -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundat

Re: [Wikitech-l] (Large) Discrepancies between API-Statistics and Stepwise API-based extraction

2018-01-30 Thread Brad Jorsch (Anomie)
such discrepancies. Try running maintenance/initSiteStats.php with the --update option on your wiki. -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wik

Re: [Wikitech-l] Proposal regarding the handling of imported usernames

2017-12-06 Thread Brad Jorsch (Anomie)
On Thu, Nov 30, 2017 at 12:31 PM, Brad Jorsch (Anomie) < bjor...@wikimedia.org> wrote: > The proposal was approved by TechCom, the code has been merged, and it's > live now on the Beta Cluster. I'm running the maintenance script now. > Please test things there and report any bug

Re: [Wikitech-l] Help test longer edit summaries (and other comments) on testwiki

2017-12-04 Thread Brad Jorsch (Anomie)
Unfortunately, I had to revert it. We'll try again later when the schema change is compete. On Mon, Dec 4, 2017 at 2:38 PM, Brad Jorsch (Anomie) <bjor...@wikimedia.org> wrote: > I've just now enable the feature flag on the testing wikis[1][2][3] that > allows MediaWiki to store com

[Wikitech-l] Help test longer edit summaries (and other comments) on testwiki

2017-12-04 Thread Brad Jorsch (Anomie)
add me as a reviewer. [1]: https://test.wikipedia.org/wiki/Main_Page [2]: https://test2.wikipedia.org/wiki/Main_Page [3]: https://test.wikidata.org/wiki/Wikidata:Main_Page -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation

Re: [Wikitech-l] Proposal regarding the handling of imported usernames

2017-11-30 Thread Brad Jorsch (Anomie)
look like after the maintenance script is run, see https://commons.wikimedia.beta.wmflabs.org/wiki/Template:Documentation?action=history for an example. On Tue, Oct 31, 2017 at 10:52 AM, Brad Jorsch (Anomie) < bjor...@wikimedia.org> wrote: > Handling of usernames in imported edits in

Re: [Wikitech-l] Proposal for a developer support channel

2017-11-19 Thread Brad Jorsch (Anomie)
e any different. Yes, the existing mailing lists have issues with searchability, although to a large extent that's due to a misguided robots.txt policy preventing the archives from being indexed in the first place. -- Brad Jorsch (Anomie) Senior Software Engineer

[Wikitech-l] Help test longer edit summaries (and other comments) on Beta Cluster

2017-11-17 Thread Brad Jorsch (Anomie)
as a reviewer. [1]: https://deployment.wikimedia.beta.wmflabs.org/wiki/Main_Page -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman

Re: [Wikitech-l] Proposal regarding the handling of imported usernames

2017-11-02 Thread Brad Jorsch (Anomie)
On Thu, Nov 2, 2017 at 4:46 PM, Strainu <strain...@gmail.com> wrote: > 2017-10-31 16:52 GMT+02:00 Brad Jorsch (Anomie) <bjor...@wikimedia.org>: > >- If revisions are imported using the "Upload XML data" method, it > will > >be required to fi

[Wikitech-l] Proposal regarding the handling of imported usernames

2017-10-31 Thread Brad Jorsch (Anomie)
disallowed in new usernames, existing names created before that restriction was added can continue to be used (and there are over 12000 such usernames in WMF's SUL) and we decided it'd be better not to suddenly break them. [6]: https://phabricator.wikimedia.org/T167246 -- Brad Jorsch (Anomie) Senior S

Re: [Wikitech-l] Editing module in the wiki editor lead to overloading resouces of processor

2017-10-30 Thread Brad Jorsch (Anomie)
you can use the toolbar icon to toggle it off so that It's All Text will work. On the other hand, the new VE-based wikitext editor mode does not seem to have any obvious off-switch or other method to allow It's All Text to function. -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foun

[Wikitech-l] I'm going to remove ContribsPager::getUserCond() without deprecation

2017-10-27 Thread Brad Jorsch (Anomie)
://gerrit.wikimedia.org/r/#/c/383918/ -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] Last call: Bump PHP requirement to 5.6 in MW 1.31

2017-10-19 Thread Brad Jorsch (Anomie)
t Call period, which will be > October 31. > > https://phabricator.wikimedia.org/T178538 > > -- Tim Starling > > > ___ > Wikitech-l mailing list > Wikitech-l@lists.wikimedi

Re: [Wikitech-l] What does "p." stands for in the Scribunto reference manual and many modules

2017-09-29 Thread Brad Jorsch (Anomie)
If someone would rather use "_module" or "m" in the console, they can always enter "_module = p" or the like before starting their testing. -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] Is it possible to change the locale of a scribunto module and have identifiers with locale characters

2017-09-29 Thread Brad Jorsch (Anomie)
cannot use locale-dependent letters", https://www.lua.org/manual/5.2/manual.html#8.1) that too seems unlikely. -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] Using a transcluded string valued with something like "param1|param2|…" as parameter list for an other template [Was: Re: Passing to {{ping}} a list of user stored in a template on Me

2017-09-28 Thread Brad Jorsch (Anomie)
ase I was asking this question. > Those are all possible solutions. I'd recommend avoiding frame:preprocess in favor of frame:expandTemplate if you go that route. -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] Is it possible to change the locale of a scribunto module and have identifiers with locale characters

2017-09-28 Thread Brad Jorsch (Anomie)
lly uses its own i18n mechanisms instead of using the locale. -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] Fwd: [mozilla-wikimedia-discuss] Firefox Quantum is in Beta

2017-09-27 Thread Brad Jorsch (Anomie)
On Wed, Sep 27, 2017 at 2:54 AM, Gilles Dubuc wrote: > This year Mozilla has been working on our most significant release, > possibly ever. Firefox Quantum is going into Beta today [1]. > Are audio for Linux boxes without PulseAudio and many useful addons still broken?

Re: [Wikitech-l] Is there a way to gather contextual clues about the specific template call which led to a scribunto module execution?

2017-09-26 Thread Brad Jorsch (Anomie)
y to do this.[2] Doing so would probably be a violation of T67258.[1] [1]: https://phabricator.wikimedia.org/T67258 [2]: There's a completely insane way to do something like it in some limited cases, but per w:en:WP:BEANS <https://en.wikipedia.org/wiki/Wikipedia:Don%27t_stuff_bea

Re: [Wikitech-l] Looking for advice for structuring data module with redundant entries

2017-09-26 Thread Brad Jorsch (Anomie)
aded with mw.loadData(), but since assignment doesn't work with them either that doesn't really matter. [1]: https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#Metatables -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation _

Re: [Wikitech-l] Scribunto, failure in attempt to concatenate an array

2017-09-25 Thread Brad Jorsch (Anomie)
methods, including #value, next(), and the functions in the Table library, will not work correctly. You'll have to copy the data into a real table before concatenating, or concatenate manually. The former is likely faster if the table will have many elements in it. [1]: htt

Re: [Wikitech-l] Is it possible to edit scribunto data module content through template edit popup of visual editor?

2017-09-20 Thread Brad Jorsch (Anomie)
e, at some point when the user edit/save an article? > That's what your original message sounded like you were talking about. A JavaScript gadget of whatever sort could make edits by using the action API. -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation

Re: [Wikitech-l] HHVM vs. Zend divergence

2017-09-19 Thread Brad Jorsch (Anomie)
combined with call_user_func_array(). Garbage collection and destructors do make a major difference to the use of RAII patterns[2] such as ScopedCallback and our database classes. [1]: https://en.wikipedia.org/wiki/Output_parameter [2]: https://en.wikipedia.org/wiki/RAII -- Brad Jorsch (Anomie)

Re: [Wikitech-l] Is it possible to edit scribunto data module content through template edit popup of visual editor?

2017-09-19 Thread Brad Jorsch (Anomie)
ipt to allow humans to make edits to the data module while editing another page was much better. -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] HHVM vs. Zend divergence

2017-09-18 Thread Brad Jorsch (Anomie)
5.6, although that's not really a representative workload for running a website. -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] How to add custom styles to a page?

2017-09-18 Thread Brad Jorsch (Anomie)
-- and the var() css function), but the example css you used could > > easily be rewritten to not use that feature. > > > > You could also just put it into User:Kaartic/common.css and wrap it in a > .page-User_Kaartic selector, that is less restrictive. > Although that will on

Re: [Wikitech-l] Logs are down

2017-09-12 Thread Brad Jorsch (Anomie)
people will somehow know it. -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] Last Call: PostgreSQL schema change for consistency with MySQL

2017-08-17 Thread Brad Jorsch (Anomie)
to repeat whatever had to be done to upgrade the first time around. -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] Upgrade to jQuery 3 is coming

2017-06-30 Thread Brad Jorsch (Anomie)
hen passing a promise (or any "thenable") as the first argument to .resolve(). Instead of resolving it with the given promise passed to the original promise's handlers as you might expect, Promises/A+ decided that you want to effectively retroactively reattach all the handlers to the new promise i

Re: [Wikitech-l] "Unloading"/reloading ResourceLoader modules the proper way?

2017-06-19 Thread Brad Jorsch (Anomie)
s a similar bug in https://phabricator.wikimedia.org/T156414. But I suspect that the part of that task relating to steps 8 and 9 is/will be low priority. -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation ___ Wikitech-l mailing list

Re: [Wikitech-l] Global language preference

2017-05-11 Thread Brad Jorsch (Anomie)
uccess. -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] Global language preference

2017-05-10 Thread Brad Jorsch (Anomie)
first time you visit a page there that loads your global user JS. [1]: There are a few things like 'realname' and 'emailaddress' that can't be set that way. -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation ___ Wikitech-l ma

Re: [Wikitech-l] MediaWiki-Codesniffer 0.8.0 released

2017-05-05 Thread Brad Jorsch (Anomie)
and over again? - Doxygen is happy to inherit documentation from the parent class for an overridden method. Your phpcs check doesn't even honor @inheritdoc, it want everything copied. At that point I gave up looking for wheat in the chaff. -- Brad Jorsch (Anomi

[Wikitech-l] Proposal to deprecate parsing and diffs in the action API action=query=revisions

2017-04-28 Thread Brad Jorsch (Anomie)
habricator. If there aren't major objections, I'll probably do the deprecation in the next week or two. Thanks. -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wik

Re: [Wikitech-l] Fair use image indicated as free use?

2017-04-21 Thread Brad Jorsch (Anomie)
On Fri, Apr 21, 2017 at 2:20 PM, Fako Berkers wrote: > I'm running the tool algo-news and I discovered that this image: > https://en.wikipedia.org/wiki/File:Odin_lloyd.jpg > Is indicated as a free image in the API: > https://en.wikipedia.org/w/api.php?format=json= >

[Wikitech-l] T37247: Request for a holding only the Parser output

2017-04-19 Thread Brad Jorsch (Anomie)
exactly content gets into VE and Flow as to what if anything else might be needed to get the new div to be output in those extensions. Thanks. -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation ___ Wikitech-l mailing list Wikitech-l

Re: [Wikitech-l] Editing JSON in MediaWiki

2017-04-10 Thread Brad Jorsch (Anomie)
ndler. In the fillParserOutput() method, you'd convert the JSON to wikitext and then pass that wikitext to the Parser; for the latter step you could look at how WikitextContent does it. You might also look at implementing Content::getWikitextForTransclusion() to let people transclude the result

Re: [Wikitech-l] Introduction

2017-03-21 Thread Brad Jorsch (Anomie)
On Mon, Mar 20, 2017 at 7:03 PM, rupert THURNER <rupert.thur...@gmail.com> wrote: > Really? What keywords are you using? > "wikimedia projects programming beginner",[1] just as you said. [1]: https://www.google.com/search?q=wikimedia+projects+programming+beginner=utf-8=u

Re: [Wikitech-l] Introduction

2017-03-19 Thread Brad Jorsch (Anomie)
; I don't know. When I try that search on Google the above page shows up as the 9th result, even in a private browsing session with a different browser from a different IP. -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation ___ Wik

Re: [Wikitech-l] ArchCom Monutes, News, and Outlook

2017-03-16 Thread Brad Jorsch (Anomie)
he Foundation's > guiding principles > Doesn't etherpad (https://etherpad.wikimedia.org/) fit that need without being proprietary? -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation ___ Wikitech-l mailing list Wikitech-l@list

Re: [Wikitech-l] ResistanceManual.org looking for co-maintainers

2017-01-30 Thread Brad Jorsch (Anomie)
s running MediaWiki 1.28, > and its admins are looking for help maintaining the site. The main page > says to reach out to i...@staywoke.org if interested. > Is "some random wiki needs sysadmins" really on-topic for this list? -- Brad Jorsch (Anomie) Se

Re: [Wikitech-l] Deprecation logging in production

2017-01-25 Thread Brad Jorsch (Anomie)
gt; 2 Use of wfSetupSession was deprecated in MediaWiki 1.27. [Called > from AbuseFilter::executeFilterActions in > /srv/mediawiki/php-1.29.0-wmf.9/extensions/AbuseFilter/ > includes/AbuseFilter.class.php > at line 796] > https://phabricator.wikimedia.org/T1

Re: [Wikitech-l] ArchCom Status & Meeting Minutes, WD3

2017-01-19 Thread Brad Jorsch (Anomie)
On Wed, Jan 18, 2017 at 10:44 PM, Daniel Kinzler < daniel.kinz...@wikimedia.de> wrote: > ** Related discussion about whether new features can require services > serparate > from MediaWiki core. > That seems like it would be a decent RFC at some point. -- Brad Jorsch (Anomi

Re: [Wikitech-l] I8n

2017-01-07 Thread Brad Jorsch (Anomie)
nsions, you should > go to https://translatewiki.net/ look up the extension and translation > key, > and do it from there. > Note that applies to every language except English. If you're fixing errors in the English messages, you have to do those by submitting a patch in Gerrit. -

Re: [Wikitech-l] Now live: Shared structured data

2016-12-22 Thread Brad Jorsch (Anomie)
imedia.org/wiki/Commons:Structured_data. -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] SOLVED Re: VisualEditor in 1.28 - fails after upgrade from 1.27

2016-12-20 Thread Brad Jorsch (Anomie)
rn false when appropriate and have isRestricted() return true. If the check is based on having one user right, this can be easily done by passing the user right as the $restriction parameter to SpecialPage::__construct(). -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] VisualEditor in 1.28 - fails after upgrade from 1.27

2016-12-20 Thread Brad Jorsch (Anomie)
ppear in the associated Apache error log file. > If you haven't already done so, set up logging as described at https://www.mediawiki.org/wiki/Manual:How_to_debug#Logging. Then you can look up that code (the "[43d736c07dd76d73cf26db20]") in the er

Re: [Wikitech-l] VisualEditor in 1.28 - fails after upgrade from 1.27

2016-12-19 Thread Brad Jorsch (Anomie)
e rest of the stack trace for the exception so we can figure out how that's getting called? -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] Discussion Platform

2016-12-06 Thread Brad Jorsch (Anomie)
use. > Please give a view on my proposal. > It seems very unlikely that we would gain much by moving from an established open standard to a proprietary walled garden service. -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation ___

Re: [Wikitech-l] Update on WMF account compromises

2016-11-16 Thread Brad Jorsch (Anomie)
the words seen). If you want to increase the entropy, use a larger word list rather than a "harder" one. The XKCD comic seems to have used a 2048-word list for its 44-bit estimate. Using a list with 8836 words gets the same entropy (about 52.44 bits) as a completely-random 8-character pass

[Wikitech-l] Internationalization of action API errors and warnings

2016-11-16 Thread Brad Jorsch (Anomie)
serve as examples. [1]: https://gerrit.wikimedia.org/r/#/c/321406/ [2]: https://gerrit.wikimedia.org/r/#/q/topic:api-error-i18n/T47843 -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation ___ Wikitech-l mailing list Wikitech-l

Re: [Wikitech-l] [RFC] Giving actual CSRF tokens to not logged in users (T40417)

2016-09-30 Thread Brad Jorsch (Anomie)
On Thu, Sep 29, 2016 at 5:10 PM, Max Semenik <maxsem.w...@gmail.com> wrote: > On Thu, Sep 29, 2016 at 1:37 PM, Brad Jorsch (Anomie) < > bjor...@wikimedia.org > > wrote: > > Note it will affect scripts and API clients that expect to see "+\" as > the >

Re: [Wikitech-l] [RFC] Giving actual CSRF tokens to not logged in users (T40417)

2016-09-29 Thread Brad Jorsch (Anomie)
logged out, or worse assume that's the token and don't bother to fetch it. -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] Public Event Streams (AKA RCStream replacement) question

2016-09-26 Thread Brad Jorsch (Anomie)
already available via the action API. -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] Public Event Streams (AKA RCStream replacement) question

2016-09-24 Thread Brad Jorsch (Anomie)
g I was complaining about. If I'm not using whatever language happens to have a library already written, there's no spec so I have to reverse-engineer it from an implementation. And in this case that seems like socket.io on top of engine.io on top of who knows what else. -- Brad Jorsch (Anomie) S

  1   2   3   4   >