[00:37:40] (CR) Jamesgolovich: "That does seem like a reasonable approach. I don't know who wrote the original code or their reasoning but I'll look into it more and see" [extensions/SemanticComments] - https://gerrit.wikimedia.org/r/48155 (owner: Hypergrove) [00:43:10] [SemanticMediaWiki] mwjames deleted pageinfo at 5b938b2: http://git.io/0jrLWQ [00:57:21] [SemanticMediaWiki] mwjames force-pushed intext-anno-parser from 479284f to 066928f: http://git.io/KDUz7w [00:57:21] SemanticMediaWiki/intext-anno-parser 066928f mwjames: InTextAnnotationParser to use composition... [01:54:21] (CR) Yaron Koren: "Thank you, this looks great! I'm in the middle of testing out and hopefully merging in a large patch to the code, but once that's done I'l" [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/146406 (owner: Withoutaname) [02:15:39] (CR) Mwjames: "I haven't tested it therefore I can't say anything about the functionality but some general comments (which are unrelated to the PR itself" [extensions/SemanticRating] - https://gerrit.wikimedia.org/r/145488 (owner: Cicalese) [02:49:47] [SemanticMediaWiki] mwjames deleted intext-anno-parser at 066928f: http://git.io/yAFelw [07:20:12] (PS2) Jamesgolovich: Move addModules outside of init function [extensions/SemanticComments] - https://gerrit.wikimedia.org/r/48155 (owner: Hypergrove) [08:39:24] (PS1) Withoutaname: Remove deprecated Title::userCanRead() [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/146722 [08:39:27] (CR) jenkins-bot: [V: -1] Remove deprecated Title::userCanRead() [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/146722 (owner: Withoutaname) [08:41:56] (PS2) Withoutaname: Remove deprecated Title::userCanRead() [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/146722 [08:51:20] (PS10) Jatin: Added new input type - tokens [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/143598 [09:20:09] (CR) Foxtrott: [C: 1] "userCan is already available in MW 1.18 (min version for SF), so this looks good to me, but someone else must approve." [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/146722 (owner: Withoutaname) [09:31:32] (CR) Withoutaname: Context-ify and modernize SFUploadWindow and SFUploadForm (1 comment) [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/146406 (owner: Withoutaname) [12:17:49] (CR) Yaron Koren: "Fantastic; everything looks good now. Unless there are any objections, I think it makes sense to merge in this version of the patch." [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/143598 (owner: Jatin) [12:46:37] Hi, I'm trying to write a little extension for SMW and I'm struggling to find out how to perform queries (in php) e.g. I want to find all articles which are translations of the current article ... the examples on http://semantic-mediawiki.org/wiki/User:Yury_Katkov/programming_examples don't seem to work for me [12:46:44] any pointers? [12:47:53] I'm using SMW 1.8.0.1 with MediaWiki 1.21.1 [13:34:48] (CR) Anomie: Move addModules outside of init function (1 comment) [extensions/SemanticComments] - https://gerrit.wikimedia.org/r/48155 (owner: Hypergrove) [14:59:45] (CR) Jamesgolovich: "Some of the CSS included is used from templates that are included in the import/SemanticComments.xml file." [extensions/SemanticComments] - https://gerrit.wikimedia.org/r/48155 (owner: Hypergrove) [15:47:11] (PS1) Jamesgolovich: Allow empty comments to be left (ratings only) [extensions/SemanticComments] - https://gerrit.wikimedia.org/r/146795 [16:04:35] (PS1) Jamesgolovich: Use existance of #collabComResults to decide if we take action. [extensions/SemanticComments] - https://gerrit.wikimedia.org/r/146797 [16:06:25] (CR) Jamesgolovich: "If someone doesn't have access to leave comments then none of the comments are displayed at all." [extensions/SemanticComments] - https://gerrit.wikimedia.org/r/146797 (owner: Jamesgolovich) [16:16:57] (PS2) Withoutaname: Context-ify and modernize SFUploadWindow and SFUploadForm [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/146406 [16:21:08] I'm trying to use SMWQueryProcessor::getResultFromFunctionParams to get all articles which share a particular property with the current page ... but, I can't figure out how to plug in the property of the current page [16:24:07] I thought I'd do an extra query to look up the property on the current page (by plugging in $wgTitle .. hmm .. maybe I can do that in one query [17:13:03] (PS1) Withoutaname: Remove deprecated User::editToken() and Context-ify SF_AutoeditAPI.php [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/146818 [17:14:18] goibhniu: how yo dou define what is a translation? [17:15:53] each page shares a "Master page" property for the canonical translation [17:16:30] So, if I can plug the value of that property into a query I think it will work [17:16:46] * goibhniu has been playing around with sub-queries, but doesn't get it yet [17:19:49] e.g. [[Master page::(the value of the current one)]] [17:20:11] goibhniu: I think there is an API module where you can look at examples how to do queries in PHP [17:20:24] oh, that would be great [17:20:46] at least, that's the route I started* when I was trying to do a similar kind of thing [17:21:07] * but stopped because the wiki I was playing with had older version and the code had changed since then [17:21:35] ah ok, yeah the examples I found so far didn't work [17:22:30] It's useful to note they don't [17:23:37] true, I'll add a comment [17:53:34] [SemanticMediaWiki] mwjames created hooks-tidy (+1 new commit): http://git.io/0vtXJw [17:53:34] SemanticMediaWiki/hooks-tidy adf91d9 mwjames: Move hook class to own NS... [17:59:28] (CR) Foxtrott: [C: -2] "I appreciate the effort. I would however urge you to analyze and understand what a piece of code does before changing it and to actually t" (4 comments) [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/146818 (owner: Withoutaname) [18:12:42] [SemanticMediaWiki] mwjames opened pull request #411: Move hook class to own NS (master...hooks-tidy) http://git.io/_gZZlg [18:21:12] (CR) Foxtrott: [C: -1] Context-ify and modernize SFUploadWindow and SFUploadForm (2 comments) [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/146406 (owner: Withoutaname) [18:28:38] [travis-ci] SemanticMediaWiki/SemanticMediaWiki#1874 (hooks-tidy - adf91d9 : mwjames): The build failed. [18:28:38] [travis-ci] Change view : https://github.com/SemanticMediaWiki/SemanticMediaWiki/commit/adf91d9bf791 [18:28:39] [travis-ci] Build details : http://travis-ci.org/SemanticMediaWiki/SemanticMediaWiki/builds/30095731 [18:29:09] Anybody here? [18:30:54] I want to confirm a detail when we make changes to templates, what I should NOT do to lose data :) [18:31:22] [SemanticMediaWiki] mwjames force-pushed hooks-tidy from adf91d9 to 59ce7b4: http://git.io/5pBemw [18:31:22] SemanticMediaWiki/hooks-tidy 59ce7b4 mwjames: Move hook class to own NS... [18:31:54] uhm. I mean. What kind of operations might make me lose data ... [18:31:56] :) [18:35:02] renoirb: One of SMW's design principles is that everything is created (and can be re-created) from the page's wiki text. So, when changing a template you might accidentally remove the setting of some properties. However, you can always undo these changes and the semantic data should be restored. (It might take some time, though) [18:38:03] uhm. Let me frame this. Provided that a form is included in a template (e.g. Template:A), and that template is included in another one (e.g. Template:B). Then, we edit a page (e.g. [[Hi]]) that uses {{B}}. What I do on the page [[Hi]] that is part of forms (A,B, etc.) gets then saved as wiki text in [[Hi]]. [18:38:06] Is that right? [18:38:58] sorry, mistake here: that is part of forms .. should be ... that uses forms such as A, B [18:39:13] FoxT ? [18:40:07] So, in other words, If I change Template:A or Template:B. Even after Hi got stuff generated by those templates, it wont wipe from Hi that data, just be shown differently. Right? [18:40:59] I do not understand what you mean by "a form is included in a template". [18:42:33] Ok, how do you call the SMW feature that allows us to have forms? [18:42:54] Its for docs.webplatform.org. [18:44:11] SemanticForms are not strictly an SMW feature. However, assuming that you actually refer to the SemanticForms extension... [18:44:21] most likely [18:45:00] (CR) Nikerabbit: Context-ify and modernize SFUploadWindow and SFUploadForm (1 comment) [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/146406 (owner: Withoutaname) [18:45:29] It takes a form description from the Forms namespace, translates it into an HTML form and displays it. When this form is then filled and sent back by the user, it translates the data from the user into a template call. [18:45:43] In fact, FoxT, we currently heavily rely on SemanticForms and SMW for WebPlatform.org. I'm working to add web developer docs compatibility tables data to the pages and I want to be sure I wont destroy :) [18:46:24] What the called template actually does with the data, is entirely up to the template and not influenced by SF. [18:46:27] FoxT, so, it "serializes" the form output to template call? [18:46:31] ... inside the page that had this [18:46:42] Basically yes [18:47:04] oh, ok. So its permissive then (unless I add restrictions afterwards) [18:47:19] You lost me again :D [18:48:59] :( [18:49:21] its hard to explain for me :/ [18:50:27] ok. So, once I save changes on a Form, even when it did works on some other wiki documents, it only means that my form template visualisation change according to my changes. It wont purge. [18:50:31] is that clearer :/ [18:51:38] Once you change a template, all pages using this template are rebuilt. [18:52:28] So, should your template set a property - as is the usual case for SemanticForms created pages - and you remove the code doing that from the template, you will lose your data. [18:52:46] Just found this https://www.semantic-mediawiki.org/wiki/SMW_reference [18:52:49] that will be useful :) [18:53:06] However, you can just as easily re-insert the code setting the properties and you will get the data back [18:53:19] right. This is where I am a bit affraid. Because its a mixed signal. [18:53:38] Oh! Ok [18:54:01] The data doesnt get deleted from the database, just from the end result wiki page that happens to use that data from that template+form. [18:54:21] so, i could do some SQL queries to read it back later. [18:55:09] You should never directly use SQL queries. (Except maybe for backups) [18:55:47] (CR) Withoutaname: Remove deprecated User::editToken() and Context-ify SF_AutoeditAPI.php (1 comment) [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/146818 (owner: Withoutaname) [18:56:25] FoxT, i know, i'm talking about reading :) [18:57:00] We have hardcoded browser features data. But now we are about to use a JSON file and generate tables based on that data. [18:57:01] Well, good luck with that. I'd rather suggest using the API. [18:57:16] But, that human entered data, we dont want to lose it yet. [18:57:21] :) [18:57:32] oh, i'll try to find the api pages in SMW [18:58:15] Just go to your wiki and call api.php instead of index.php [18:58:32] (CR) Foxtrott: Context-ify and modernize SFUploadWindow and SFUploadForm (1 comment) [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/146406 (owner: Withoutaname) [18:59:33] I use that part. Just the part of api.php that uses SMW is unused yet for me. Gotta dig there :) [18:59:50] Hmm, where is that data stored? [19:00:25] http://docs.webplatform.org/compat/data-human.json [19:00:29] Um, sorry, answered an old line [19:00:42] https://github.com/webplatform/compatibility-data [19:01:03] Ok. [19:01:24] And I just finished a MW extension that allows me to read that data.json file and show compat data based on that. [19:04:56] (CR) Foxtrott: Remove deprecated User::editToken() and Context-ify SF_AutoeditAPI.php (1 comment) [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/146818 (owner: Withoutaname) [19:12:57] (PS2) Withoutaname: Remove deprecated User::editToken() and Context-ify SF_AutoeditAPI.php [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/146818 [19:17:05] (CR) Nemo bis: Context-ify and modernize SFUploadWindow and SFUploadForm (1 comment) [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/146406 (owner: Withoutaname) [19:23:25] (CR) Foxtrott: Context-ify and modernize SFUploadWindow and SFUploadForm (1 comment) [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/146406 (owner: Withoutaname) [19:26:25] (CR) Foxtrott: [C: -1] "One more issue with getLanguage()." (1 comment) [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/146818 (owner: Withoutaname) [19:53:57] (PS1) Jqnatividad: Refactored SMWSQLStore3 long string handling [extensions/SemanticDrilldown] - https://gerrit.wikimedia.org/r/146861 [20:42:21] [SemanticMediaWiki] mwjames deleted hooks-tidy at 59ce7b4: http://git.io/y7Qtsg [20:58:16] (PS3) Withoutaname: Remove deprecated User::editToken() and Context-ify SF_AutoeditAPI.php [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/146818 [21:07:18] (CR) Foxtrott: [C: 2 V: 2] Remove deprecated User::editToken() and Context-ify SF_AutoeditAPI.php [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/146818 (owner: Withoutaname) [21:16:20] Yaron, yt? [21:22:07] (CR) Nemo bis: Context-ify and modernize SFUploadWindow and SFUploadForm (1 comment) [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/146406 (owner: Withoutaname) [21:38:35] [SemanticMediaWiki] mwjames created hooks-tidy (+1 new commit): http://git.io/FX1M-g [21:38:36] SemanticMediaWiki/hooks-tidy c79ef55 mwjames: SpecialStatsAddExtra hook [21:41:14] (CR) Foxtrott: Context-ify and modernize SFUploadWindow and SFUploadForm (1 comment) [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/146406 (owner: Withoutaname) [21:42:07] (PS6) Cicalese: Refactored code and allow variable # of stars [extensions/SemanticRating] - https://gerrit.wikimedia.org/r/145488 [21:46:05] (CR) Cicalese: "mwjames, thank you for the additional helpful feedback. I believe I have updated the code consistent with your advice, although I'm not 10" [extensions/SemanticRating] - https://gerrit.wikimedia.org/r/145488 (owner: Cicalese) [21:53:23] [SemanticMediaWiki] mwjames opened pull request #412: SpecialStatsAddExtra hook to move to NS (master...hooks-tidy) http://git.io/8PRb_Q [22:07:22] (CR) Yaron Koren: "I'm transferring the backward-compatibility discussion to here - I hope that's okay. Given that ongoing support for MW 1.18 is starting to" [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/146406 (owner: Withoutaname) [22:34:49] [SemanticMediaWiki] mwjames deleted hooks-tidy at c79ef55: http://git.io/5118UA [23:14:51] [SemanticMediaWiki] mwjames created job-stats (+1 new commit): http://git.io/v8ULRA [23:14:51] SemanticMediaWiki/job-stats 2d60aee mwjames: Add SMW JobQueue statistics... [23:17:52] [SemanticMediaWiki] mwjames force-pushed job-stats from 2d60aee to 9309ffc: http://git.io/vblmpA [23:17:52] SemanticMediaWiki/job-stats 9309ffc mwjames: Add SMW JobQueue statistics... [23:18:27] [SemanticMediaWiki] mwjames opened pull request #413: Add SMW JobQueue statistics (master...job-stats) http://git.io/0QpZ3g [23:21:59] [SemanticMediaWiki] mwjames force-pushed job-stats from 9309ffc to 2242fa9: http://git.io/vblmpA [23:21:59] SemanticMediaWiki/job-stats 2242fa9 mwjames: Add SMW JobQueue statistics... [23:28:42] [travis-ci] SemanticMediaWiki/SemanticMediaWiki#1881 (job-stats - 2d60aee : mwjames): The build was canceled. [23:28:42] [travis-ci] Change view : https://github.com/SemanticMediaWiki/SemanticMediaWiki/commit/2d60aeefa780 [23:28:42] [travis-ci] Build details : http://travis-ci.org/SemanticMediaWiki/SemanticMediaWiki/builds/30123511 [23:29:26] [travis-ci] SemanticMediaWiki/SemanticMediaWiki#1881 (job-stats - 2d60aee : mwjames): The build was canceled. [23:29:26] [travis-ci] Change view : https://github.com/SemanticMediaWiki/SemanticMediaWiki/commit/2d60aeefa780 [23:29:26] [travis-ci] Build details : http://travis-ci.org/SemanticMediaWiki/SemanticMediaWiki/builds/30123511 [23:30:19] [travis-ci] SemanticMediaWiki/SemanticMediaWiki#1881 (job-stats - 2d60aee : mwjames): The build was canceled. [23:30:19] [travis-ci] Change view : https://github.com/SemanticMediaWiki/SemanticMediaWiki/commit/2d60aeefa780 [23:30:19] [travis-ci] Build details : http://travis-ci.org/SemanticMediaWiki/SemanticMediaWiki/builds/30123511 [23:30:42] [travis-ci] SemanticMediaWiki/SemanticMediaWiki#1882 (job-stats - 9309ffc : mwjames): The build was canceled. [23:30:42] [travis-ci] Change view : https://github.com/SemanticMediaWiki/SemanticMediaWiki/compare/2d60aeefa780...9309ffc489e8 [23:30:42] [travis-ci] Build details : http://travis-ci.org/SemanticMediaWiki/SemanticMediaWiki/builds/30123707 [23:31:08] [travis-ci] SemanticMediaWiki/SemanticMediaWiki#1882 (job-stats - 9309ffc : mwjames): The build was canceled. [23:31:08] [travis-ci] Change view : https://github.com/SemanticMediaWiki/SemanticMediaWiki/compare/2d60aeefa780...9309ffc489e8 [23:31:08] [travis-ci] Build details : http://travis-ci.org/SemanticMediaWiki/SemanticMediaWiki/builds/30123707 [23:35:38] [travis-ci] SemanticMediaWiki/SemanticMediaWiki#1882 (job-stats - 9309ffc : mwjames): The build was canceled. [23:35:38] [travis-ci] Change view : https://github.com/SemanticMediaWiki/SemanticMediaWiki/compare/2d60aeefa780...9309ffc489e8 [23:35:38] [travis-ci] Build details : http://travis-ci.org/SemanticMediaWiki/SemanticMediaWiki/builds/30123707