[00:41:15] jQuery.Deferred exception: api.postWithEditToken is not a function TypeError: api.postWithEditToken is not a function [00:41:26] what is that error? [01:00:09] The_Photographer: it means that the 'postWithEditToken' function doesn't exist. you probably forgot to add a dependency [01:00:35] The_Photographer: that function is defined in the 'mediawiki.api.edit' module [01:01:19] The_Photographer: to load it, you can wrap your code in `mw.loader.using( 'mediawiki.api.edit' ).done( function () { … } )` [01:01:52] https://commons.wikimedia.org/wiki/User:The_Photographer/QICvote.js [01:03:21] MatmaRex: thanks, I think that my plugin is not well implemented [01:05:39] the error is gone thanks, anyway it is not working [01:09:25] MatmaRex: do you have some idea how edit a section? [01:09:28] I have the section id [01:09:42] but https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/mw.Api.plugin.edit [01:09:59] edit a entire page and not only a small section [01:11:11] The_Photographer: i guess you'd have to manually call the action=edit API (using .postWithToken()) rather than use the edit() method [01:12:46] I see [01:12:58] And for get the section wiki content? [01:13:04] wikitext content of a section [01:31:53] MatmaRex: please, could you take a look to my call of postWithToken? [01:34:38] The_Photographer: hm [01:35:01] --->> https://commons.wikimedia.org/wiki/User:The_Photographer/QICvote.js [01:40:25] The_Photographer: i don't understand what is the purpose of 'editParams' variable in your code. i don't think passing that as the second parameter to postWithToken() does anything. i think you actually just want to pass 'params.content' as 'text' in the first parameter, like this: https://phabricator.wikimedia.org/P7023 [01:40:35] (i didn't test this) [01:43:36] let me see [01:51:32] Query.Deferred exception: Cannot read property 'assert' of undefined TypeError: Cannot read property 'assert' of undefined [07:38:42] Hi everyone! I'm writing a patch for which I need some kind of persistent storage for a single string. My big doubt is: do we have something less overkill than using a DB table with a single row? Many thanks [08:12:13] $wgMyString = 'lol'; [08:17:41] Reedy: Thanks, but is a global fine to store a list of currently used tags? It may be changed quite often. BTW, a bit more of explanation at https://phabricator.wikimedia.org/T173917 [08:18:12] valid_tag ? [08:18:44] I looked at it, but if I'm correct it only stores manual tags [08:18:56] While the list would be for tags automatically added by AbuseFilter [10:03:37] [[Tech]]; Tacsipacsi; Undo revision 17958362 by [[Special:Contributions/129.45.101.88|129.45.101.88]] ([[User talk:129.45.101.88|talk]]): nonsense; https://meta.wikimedia.org/w/index.php?diff=17962785&oldid=17959720&rcid=11742795