[00:18:53] New review: Kghbln; "The things I can assess are fluffy now. :)" [mediawiki/extensions/SemanticResultFormats] (master); V: 0 C: 1; - https://gerrit.wikimedia.org/r/41939 [13:00:34] New patchset: Jeroen De Dauw; "Change param definitions to work with Validator 1.0" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/39858 [13:05:53] Did anyone already managed to use #get_web_data with a JSON structure containing _arrays_ ? [13:06:33] mappinps seem not suited for that... [13:12:02] Change merged: Jeroen De Dauw; [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/39858 [13:20:37] New patchset: Jeroen De Dauw; "Fixed fatal error on update.php for people not having SQLStore2 tables" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/42542 [13:23:12] Change abandoned: Jeroen De Dauw; "ah, only happens when called with --migrate" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/42542 [14:32:33] New patchset: Jeroen De Dauw; "Attempt to fix bug 42321. And two fatals. Looks like this code did not work before and probably still has quite a few bugs :/" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/42547 [15:56:11] New patchset: Jeroen De Dauw; "Style tweaks" [mediawiki/extensions/Maps] (master) - https://gerrit.wikimedia.org/r/42559 [15:56:12] New patchset: Jeroen De Dauw; "fix default gitreview branch" [mediawiki/extensions/Maps] (master) - https://gerrit.wikimedia.org/r/42560 [15:56:13] New patchset: Jeroen De Dauw; "Fixed several issues in the map form input" [mediawiki/extensions/SemanticMaps] (master) - https://gerrit.wikimedia.org/r/42561 [15:56:14] New patchset: Jeroen De Dauw; "Remove incomplete and abandoned multi google maps form input" [mediawiki/extensions/SemanticMaps] (master) - https://gerrit.wikimedia.org/r/42562 [15:56:14] New patchset: Jeroen De Dauw; "Removed some obsolete code" [mediawiki/extensions/SemanticMaps] (master) - https://gerrit.wikimedia.org/r/42563 [15:56:29] Change merged: Jeroen De Dauw; [mediawiki/extensions/SemanticMaps] (master) - https://gerrit.wikimedia.org/r/42561 [15:56:35] Change merged: Jeroen De Dauw; [mediawiki/extensions/Maps] (master) - https://gerrit.wikimedia.org/r/42559 [15:56:41] Change merged: Jeroen De Dauw; [mediawiki/extensions/Maps] (master) - https://gerrit.wikimedia.org/r/42560 [15:57:00] Change merged: Jeroen De Dauw; [mediawiki/extensions/SemanticMaps] (master) - https://gerrit.wikimedia.org/r/42563 [15:57:00] Change merged: Jeroen De Dauw; [mediawiki/extensions/SemanticMaps] (master) - https://gerrit.wikimedia.org/r/42562 [16:03:17] New patchset: Jeroen De Dauw; "Fix c/p error, bug 43704" [mediawiki/extensions/SemanticMaps] (master) - https://gerrit.wikimedia.org/r/42564 [16:46:22] Change merged: Jeroen De Dauw; [mediawiki/extensions/SemanticMaps] (master) - https://gerrit.wikimedia.org/r/42564 [19:18:32] New patchset: Reedy; "Bad Jeroen. Think of the Windows users!" [mediawiki/extensions/Validator] (master) - https://gerrit.wikimedia.org/r/42590 [19:29:38] New patchset: Reedy; "Remove question mark from filename" [mediawiki/extensions/Validator] (master) - https://gerrit.wikimedia.org/r/42590 [21:55:49] I wonder if it is possible to specify the actual http accept header in external data's #get_web_data call? [21:55:54] or any other HTTP headers by the way [21:55:58] (such as "Accept-Language = sv-SE" etc) [22:00:20] joru: I don't think so. [22:00:32] Why would you want that? [22:06:34] yaron: to negotiate with the server providing the data/API. E.g. to supply formats/languages etc that should be served, e.g. to supply "Accept: application/json" instead of appending it in the URI [22:07:01] New review: Jeroen De Dauw; "Windows can't handle question marks? :D" [mediawiki/extensions/Validator] (master); V: 2 C: 2; - https://gerrit.wikimedia.org/r/42590 [22:07:01] Change merged: Jeroen De Dauw; [mediawiki/extensions/Validator] (master) - https://gerrit.wikimedia.org/r/42590 [22:07:22] (allow persistent URI's not depending on specific formats/tecnologies) [22:08:07] joru: is there a current situation where #get_web_data is not working? [22:09:03] yaron: well no and yes [22:09:40] yaron: i guess controlling the header is out of scope for ED [22:10:27] Well... if it improves access to the data, it's not out of scope [22:10:28] . [22:11:03] yaron: and yes meaning that some many service providers block access through their API since header information is not submitted [22:11:13] (some=many) [22:11:53] Sorry, I don't understand. [22:13:53] yaron: say that i want to communicate with a server using #get_web_data, and I do not submit "Accept:application/json" or "Accept-Charset:ISO-8859-1..." the server-client connection obviously fails [22:14:13] Oh... that's not obvious to me. :) [22:14:15] this leans more toward fully fledged REST API's [22:14:22] I mean, I don't know much about this stuff. [22:14:31] New review: Jeroen De Dauw; "> I can try to replicate the getAPIData() logic into a pure JS each/map parse method but I'm not sur..." [mediawiki/extensions/SemanticResultFormats] (master); V: 0 C: 0; - https://gerrit.wikimedia.org/r/41939 [22:14:34] Ok, well I am learning on this topic more and more [22:14:37] What leans more - the current code? [22:15:03] no not code-wise [22:15:28] in general how servers-clients communicate in a REST API scenario [22:15:47] I still don't know what you mean by "obviously fails" - #get_web_data has worked before, in a variety of circumstances. [22:15:53] imagine i want a shopping list from a server using my mobile phone the scenario above could be troublesome [22:16:05] New review: Jeroen De Dauw; "Did a quick pass and looks good. Need to have a better look for +2." [mediawiki/extensions/SemanticResultFormats] (master); V: 0 C: 1; - https://gerrit.wikimedia.org/r/41939 [22:16:30] yaron: oh sorry, it does not fail in that sence, it is just not constructed to work this way [22:16:35] Well, you might be on your mobile phone, but the request would be coming from the web server. [22:16:39] yaron: it successfully returns [22:16:51] New review: Jeroen De Dauw; "This might also be of interest to you :)" [mediawiki/extensions/SemanticResultFormats] (master); V: 0 C: 1; - https://gerrit.wikimedia.org/r/41939 [22:17:07] yaron: yes, it could be a server<->server scenario (typical mediawiki) [22:18:11] Sorry, I still don't really know what you're talking about. [22:18:22] sorry for that :) [22:18:57] Can you give an example of a URL that #get_web_data currently fails for? [22:22:15] hang on [22:35:22] good. i tried to look look around in the MW source for a method to set the headers but I am too unexperienced with modifying MW. [22:36:16] and even more inexperienced at debugging it [22:37:30] yaron time for a tiny question [22:42:31] kghbln: yeah, definitely. [22:42:53] yaron great, you may be a life-saver :) [22:43:09] Well, that doesn't sound like a tiny question any more. :) [22:44:21] Let's see. Do not laugh. It is the first time I am implementing a partial form. So far so good. What puzzles me is why the contents is added to the top and not the bottom of the page. [22:44:47] Is there any way to control this? [22:45:02] When looking at the docu and examples everything seems ok. [22:45:11] I wouldn't say so far so good. :) I'm hoping to get rid of partial forms at some point. [22:45:16] They don't work very well. [22:46:01] yaron. Thank you for your cheer-up. :) [22:47:28] Hmm, I remember you wrote something about this. A year ago or something? However, how did you do it on discourse db. Pure luck? [22:48:05] I think on Discourse DB it add it to the top too, actually... [22:48:23] Does not look like it though. [22:48:27] I wouldn't know, though - it's been years, literally, since I've used that form. [22:49:28] I think it was related to some new thing which is supposed to supersede partial forms. [22:49:49] Lucky me that I did not complete my survey so far. :) [22:52:36] yaron To sum up: Better do it "old style". This was a tiny one, wasn't it? :) [22:58:08] I suppose so. :) [23:05:42] yaron Thank you. [23:06:10] Yeah, sure. [23:07:41] New patchset: Yaron Koren; "Fixed URL-encoding of substring for "autcomplete from url"" [mediawiki/extensions/SemanticForms] (master) - https://gerrit.wikimedia.org/r/42689 [23:11:08] Change merged: Yaron Koren; [mediawiki/extensions/SemanticForms] (master) - https://gerrit.wikimedia.org/r/42689