[00:44:37] Hi folks - don't know if intros are in order: interested dad, potter, and civic tech type here. Love Wikimedia's ethos and interested in trying to figure out how this project works/what it can bring to the world: forgive the ignorance and simplicity, but on the face of it, I'm picking up a babelfish for code vibe, but maybe more universal than that. [00:52:27] Welcome! We’re not just Wikifunctions, we’re (not yet) Abstract Wikipedia! 💤 (re @eldubois: Hi folks - don't know if intros are in order: interested dad, potter, and civic tech type here. Love Wikimedia's ethos and inter...) [10:51:07] I'm wedged between two issues and I don't know what to do. I initially disconnected Z16248 because it failed the most recent tests, including the new language one I needed for downstream compositions. However, the remaining code implementation Z13709 is affected by the python number list bug T391435 so doesn't complete for some types of input. I suppose there may be a [10:51:07] way of fixi [10:51:07] ng the JS, but this is not my strong suit. Help or advice would be appreciated. [10:54:24] ChatGPT should be able to re-write Python in JavaScript, more or less. Otherwise I’ll take a look later (it’s looking like it might be a fine afternoon). (re @u99of9: I'm wedged between two issues and I don't know what to do. I initially disconnected Z16248 because it failed the most recent tes...) [10:58:41] You probably meant to write ja. (re @u99of9: interesting idea. I had also wondered about prefixing with language codes, e.g. "[jp]". Maybe both?) [11:05:00] True, although I was more trying to indicate the format. (re @amire80: You probably meant to write ja.) [11:13:40] At first it suggested .indexOf() which is what you did originally. But when I pressed it about complex objects which can't be compared with ===, then it gave me something better. Still not working for igbo months, but that may be a different issue. (re @Al: ChatGPT should be able to re-write Python in JavaScript, more or less. Otherwise I’ll take a look later (it’s [11:13:40] looking like it mi...) [11:18:47] I won’t argue with it! My JavaScript always tends towards the Pythonic… (re @u99of9: At first it suggested .indexOf() which is what you did originally. But when I pressed it about complex objects which can't be co...) [11:34:07] There is something different between Z18503 and Z16285. Maybe the first is references and the second is instances? Although they both appear to be typed lists, and I don't see an easy way of making the igbo ones into instances. : https://tools-static.wmflabs.org/bridgebot/b2d1d88e/file_70043.jpg [11:34:09] https://tools-static.wmflabs.org/bridgebot/884afbfa/file_70044.jpg [11:42:42] motivated by https://lists.wikimedia.org/hyperkitty/list/wikitech-l@lists.wikimedia.org/message/G5DWIEZYZBEMMNWILHZKU3T7YE3FEGDO/ – is there a way to find pages that use Wikifunctions integration? [11:42:58] so far I haven’t found a tracking category nor a page prop that one could query for [11:45:23] nor an equivalent of `wbc_entity_usage` [11:46:28] Can’t be specific, but there must be a subscription for function change notifications to work 🤷‍♂️ (re @lucaswerkmeister: so far I haven’t found a tracking category nor a page prop that one could query for) [11:46:34] looking at the code suggests some `wikifunctionsclient_` ought to exist, I guess they’re not publicly available on the toolforge database mirrors yet :/ [11:52:55] Skimming recentchanges since the feature was enabled... As far as I can see, the pages are: https://dag.wikipedia.org/wiki/%C5%8Aun_su:Amire80/Z https://dag.wikipedia.org/wiki/%C5%8Aun_su:IKhitron/sandbox https://dag.wikipedia.org/wiki/%C5%8Aun_su:Dnshitobu/Sandbox https://dag.wikipedia.org/wiki/%C5%8Aun_su:MGrosse-WMF/sandbox (re @lucaswerkmeister: motivated by [11:52:55] https://lists.wik [11:52:55] imedia.org/hyperkitty/list/wikitech-l@lists.wikimedia.org/message/G5DWIEZYZBEMMNWILHZKU3T7YE3FEGDO...) [11:55:44] T392475 [12:13:01] Looks that way. I’m sure it was fine months ago, but I wouldn’t have cared whether they were references or objects. (re @u99of9: There is something different between Z18503 and Z16285. Maybe the first is references and the second is instances? Although they...) [13:11:35] You somehow managed to make it render the same as the other Igbo one, but perform differently! : https://tools-static.wmflabs.org/bridgebot/14ef72fe/file_70045.jpg [13:12:49] Z24216 looks okay. It’s failing in Python with three items but did eventually pass with just two (in 7856 ms, 371.4 CPU). (re @u99of9: Good. I'd appreciate if we don't change the existing test, because it is the subject of an unrelated phab task I filed earlier t...) [13:13:37] I cleverly clicked the items in the dropdown. 🤷‍♂️ (re @u99of9: You somehow managed to make it render the same as the other Igbo one, but perform differently!) [13:25:06] I haven’t saved it, but try adding a month to Z16285. Looks like that’s a reference rather than an object (which is fine, but looks a bit odd with the objects in the same list). (re @u99of9: You somehow managed to make it render the same as the other Igbo one, but perform differently!) [13:33:01] So it's objects we cannot currently add to the list. And the existing objects are not showing as either functions or references, but they're the only options we could change them to: : https://tools-static.wmflabs.org/bridgebot/dc6b46d2/file_70049.jpg [13:39:48] Oh, yes… can’t add them to an untyped list either… I don’t remember any mention of such a change. (re @u99of9: So it's objects we cannot currently add to the list. And the existing objects are not showing as either function calls or refere...) [13:41:05] Not very structured, but works in practice, at least at this stage: [13:41:06] https://dag.wikipedia.org/w/index.php?fulltext=1&ns0=1&ns1=1&ns10=1&ns104=1&ns105=1&ns11=1&ns12=1&ns126=1&ns127=1&ns13=1&ns14=1&ns15=1&ns2=1&ns3=1&ns4=1&ns5=1&ns6=1&ns7=1&ns710=1&ns711=1&ns8=1&ns828=1&ns829=1&ns9=1&profile=advanced&search=insource%3A%2F%5C%23function%2F&title=Di%C5%8B%27gahim:Search (re @lucaswerkmeister: motivated by [13:41:06] https://lists.wikimedia.org/hyperkitty/list/w [13:41:07] ikitech-l@lists.wikimedia.org/message/G5DWIEZYZBEMMNWILHZKU3T7YE3FEGDO...) [13:49:06] “function” appears on over half a million pages, apparently. We don’t want to look at that much source text very often. (re @amire80: Not very structured, but works in practice, at least at this stage: [13:49:07] https://dag.wikipedia.org/w/index.php?fulltext=1&ns0=1&ns1=...) [13:50:31] But with `#` in front of it, it becomes much more manageable, but again, this is true for this stage, and may not scale. [13:52:36] That said, the need to know which pages use _any_ functions is necessary now, but probably won't be necessary when they are used on a lot of pages. [13:53:35] I mean, we don't have a way to find which pages use any templates (almost all of them) or modules (also almost all of them, though usually through templates in most namespaces). [13:55:35] It may be useful which specific functions are used in which pages, however. With templates and modules, it's done using "What links here". With files, it's displayed at the bottom of the file page, and this includes usage in all wikis, so if it's possible for files, it can be possible for functions, too, can't it? [13:56:04] Not really. That’s only picked up in the regex, not in the indexed search. (re @amire80: But with # in front of it, it becomes much more manageable, but again, this is true for this stage, and may not scale.) [13:57:16] Yes, and that's why it probably won't scale, but as I said, I'm not sure that it's even necessary. (re @Al: Not really. That’s only picked up in the regex, not in the indexed search.) [13:59:00] I agree. Per my earlier comment and Lucas’s ticket, the data should be available “somewhere” already. It’s just not exposed, apparently. (re @amire80: Yes, and that's why it probably won't scale, but as I said, I'm not sure that it's even necessary.) [21:35:19] I think it’s *T387190*. (re @u99of9: So it's objects we cannot currently add to the list. And the existing objects are not showing as either function calls or refere...)