[04:12:06] Right now your shouldn't be able to make any outside requests. If you are, please let us know immediately. (re @ebraminio: making http request inside a function doesn't look good) [04:13:59] Shouldn't be a security issue as it's running in it's own VM. But again, those things should be tried out in the beta. A bit tired to look into it right now. (re @ebraminio: (found while going through different wikifunctions pages using the aforementioned tool)) [06:45:41] rm -rf * when (re @ebraminio: (found while going through different wikifunctions pages using the aforementioned tool)) [06:47:45] I was more thinking about this kind of things https://youtu.be/neWc0H1k2Lc (re @iamsabas: rm -rf / when) [06:49:01] I can't edit [[Z10699|that function]], but the regex on line 5 should be changed to `/^Q[1-9]\d*/` (re @ebraminio: making http request inside a function doesn't look good) [06:51:18] makes sense, applied https://www.wikifunctions.org/wiki/Z10699?uselang=en&diff=prev&oldid=42190 [06:51:24] makes sense, applied https://www.wikifunctions.org/wiki/Z10699?uselang=en&diff=prev&oldid=42190 (re @jhsoby: I can't edit [[Z10699|that object]], but the regex on line 5 should be changed to /^Q[1-9]\d*$/) [07:40:45] same ;) [07:40:46] (I often write to Akeron) (re @Nintendofan885: yeah, I emailed Akeron a couple of days ago about it) [07:42:28] whoa, i'm the top editor: https://wikifunctions.wikiscan.org/users [07:42:28] Did not expect that 😝 (re @Nicolas: and now we have (at least one) edit counters for Wikifunctions: https://wikifunctions.wikiscan.org (always funny to see that wit...) [07:44:28] (hah, i just saw your message about that on my talk page right now Nicolas) [08:46:04] I'm at 181 (^_-) (re @jhsoby: whoa, i'm the top editor: https://wikifunctions.wikiscan.org/users [08:46:05] Did not expect that 😝) [08:51:52] I'm 42 (a good number :D) (re @Kuldeepburjbhalaike: I'm at 181 (^_-)) [09:22:53] "is valid Qid" seems like the wrong name for that function [09:24:36] it seems to actually be "is a Qid which currently exists on wikidata.org" [09:25:48] Hmm yes, that was indeed the original intention even though that is not what it is currently doing, right? (re @Nikki: it seems to actually be "is a Qid which currently exists on wikidata.org") [09:26:54] I decided the break out the existence checking for a future separate function: https://www.wikifunctions.org/wiki/Z10699?uselang=en&diff=prev&oldid=38526 [09:29:24] BTW, I need to make @wikilinksbot work for ZIDs. Is there a mapping of language ZIDs (such as [[Z1227]]) to language codes anywhere yet? [09:35:08] i.e. whether an id is syntactically valid isn't the same as whether it currently exists in wikidata, and whether an id exists in wikidata isn't the same as whether it currently exists in another wikibase installation (test wikidata, lingua libre or wikibase.cloud for example), so I think it would make sense for being valid, and existing somewhere to be separate functions [09:39:17] Yes, that what I conclude as well. Therefore I plan to make another function called something like "is existing Wikidata item" and then do a composite of those to with the name similar to that you suggested. (re @Nikki: i.e. whether an id is syntactically valid isn't the same as whether it currently exists in wikidata, and whether an id exists in...) [09:39:46] *nod* [09:54:51] @vrandecic will the license be updated? and when? (it was asked in the italian wiki channel) (re @vrandecic: Yikes, no, that should be 4.0! Good catch!) [10:22:29] We're on it (re @iamsabas: @vrandecic will the license be updated? and when? (it was asked in the italian wiki channel)) [10:25:26] another feature from wikidata: restrict shown languages [10:25:45] That's my mistake, so sorry, I copied the old FAQ from Meta but I forgot to update it after the license update (re @Nintendofan885: BTW will textual content still be under CC BY-SA 3.0 despite most projects changing to 4.0 about a month ago? ([[m:Abstract Wiki...) [10:29:11] another TODO: have functions from excel / calc, and their names in alias [10:31:02] this could be done in a page to track? [10:50:40] It wasn't clear to me it was on Meta and not on Wikifunctions, now it's fixed by the way (re @iamsabas: @vrandecic will the license be updated? and when? (it was asked in the italian wiki channel)) [11:33:45] have a look at [[Module:Wikifunctions label]] for now (re @jhsoby: BTW, I need to make @wikilinksbot work for ZIDs. Is there a mapping of language ZIDs (such as [[Z1227]]) to language codes anywh...) [11:36:36] thanks! (re @mahir256: have a look at [[Module:Wikifunctions label]] for now) [15:50:02] Do we have a straightforward way in a wikifunction to reference a static list/array of strings, and ask if a string is contained within that list? [15:50:37] if this static list/array is contained in a separate zobject, then not until other types are available to be used [17:38:49] btw what is the JS engine wikifunctions uses that even has XMLHttpRequest also. And does it uses JS's `'use strict';` by default? I wish it does before too late (re @ebraminio: making http request inside a function doesn't look good) [17:43:43] perhaps it would be a good idea to enlist the python and js version like the lua version in [[Special:Version]] [18:34:51] 1740 [18:34:57] 7740 [22:30:16] When is the functioneer user group expected to start being given out more widely? [22:33:23] Is there no way to get all labels for an object via the API? I'm trying with `action=wikilambda_fetch` [22:34:54] you could in Python json.loads() e.g. the ['Z1']['wikilambda_fetch'] value from https://www.wikifunctions.org/w/api.php?action=wikilambda_fetch&zids=Z1&format=json [22:35:39] then the labels would be ['Z2K5']['Z12K1'] I think [22:35:56] s/Z2K5/Z2K3/ [22:36:14] aah [22:36:42] my mistake was including a specific language in the API request. should've guessed [22:36:45] and you'd check against Z11K1 for the language of each label (I'm just reading from [[Module:Wikifunctions_label]] at this point)