Camelia, the Perl 6 bug

IRC log for #metacpan, 2013-09-27

| Channels | #metacpan index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:36 ether_ joined #metacpan
01:52 klapperl_ joined #metacpan
02:38 ether joined #metacpan
03:02 tokuhirom joined #metacpan
03:08 mauke_ joined #metacpan
03:10 preflex_ joined #metacpan
05:00 ether_ joined #metacpan
07:36 neilb joined #metacpan
07:36 daxim joined #metacpan
08:05 neilb joined #metacpan
08:27 daxim_ joined #metacpan
08:37 dolmen joined #metacpan
08:51 neilb joined #metacpan
09:52 ether joined #metacpan
11:22 sixBB joined #metacpan
11:52 bowtie_ joined #metacpan
11:53 bowtie_ hi all, where can I find a list of the searchable field names please
12:06 ranguard bowtie_: https://github.com/CPAN-API/cpan-api/wiki/API-docs - see Available fields
12:06 dipsy [ API docs · CPAN-API/cpan-api Wiki · GitHub ]
12:12 bowtie_ ranguard: thanks
12:19 bowtie_ I have been using: documentation.analyzed, documentation.camelcase now I am after PAUSE, can I have a kick please as author.pauseid appiers to be not_analyzed
12:30 * ranguard knows nothing about it - just where the docs are sorry
12:30 ranguard mo: oalders rwstauner ^^ ?
12:30 bowtie_ ranguard: lol, I know the feeling :)
13:23 oalders bowtie: what is you're trying to do?
13:24 bowtie_ oalders: hi, trying to list modules by pauseid
13:25 meraxes joined #metacpan
13:25 oalders bowtie: and where did you get stuck?
13:26 bowtie_ oalders: the field name to use, sorry I am so dumb
13:27 oalders i'm just trying to figure out what you need :)
13:27 bowtie_ oalders: cool
13:28 oalders bowtie: https://github.com/CPAN-API/metacpa​n-examples/blob/master/scripts/endp​oints/module/2-fetch-all-modules.pl
13:28 dipsy [ metacpan-examples/scripts/endpoin​ts/module/2-fetch-all-modules.pl at master · CPAN-API/metacpan-examples · GitHub ]
13:28 oalders that will get you all the modules
13:29 oalders or are you saying you want all modules for a particular PAUSE id?
13:29 bowtie_ oalders: yes plaese
13:31 bowtie_ oalders: http://paste.scsys.co.uk/270012
13:31 dipsy [ magnet_web paste from "bowtie" at 217.168.150.38... ]
13:32 bowtie_ oalders: using http://explorer.metacpan.org
13:32 dipsy [ MetaCPANExplorer ]
13:36 oalders bowtie: this will give you the latest release from each author https://github.com/CPAN-API/metacpan-ex​amples/blob/master/scripts/endpoints/re​lease/5-latest-releases-by-author-es.pl
13:36 dipsy [ metacpan-examples/scripts/endpoints/rel​ease/5-latest-releases-by-author-es.pl at master · CPAN-API/metacpan-examples · GitHub ]
13:37 oalders does that get you any closer?
13:41 bowtie_ oalders: sorry, release.author dose not work, I was wondering if the backend supported doing a PAUSE id query
13:43 oalders bowtie: it does, but you need to specify the appropriate "type" (release, file, etc)
13:44 oalders do you want every module ever released by an author? or just from the latest authorized release?  or maybe from the last release of any kind (including dev)?
13:44 oalders that would inform how you go about it
13:44 oalders if you just want the latest releases, you can get the release names using the script i just posted
13:44 oalders and you could then search on the module names for those releases
13:45 oalders you can think of the types like RDBMS tables
13:45 oalders but without proper joins
13:45 oalders you can't always get everything with one query
13:46 bowtie_ oalders: being simplistic I just wanted to hack the MetaCPANExplorer example I pasted
13:47 bowtie_ oalders: I accept that it might not be possible
13:47 oalders bowtie: sure, but i still don't know exactly what you're asking for ;)
13:47 oalders please be as specific as possible
13:50 bowtie_ oalders: in the first instance, I just want to use MetaCPANExplorer and replace documentation.camelcase with a type for pause id, as the code I am looking at is in that form, it stopped  working, due to a custom_score not working any more which I put down to an api change
13:51 oalders bowtie: can you share a link to the full explorer url?
13:52 oalders so that i can see the query which stopped working?
13:52 bowtie_ sure
13:52 bowtie_ https://metacpan.org/source/PLAVEN​/Padre-0.98/lib/Padre/Task/CPAN.pm
13:52 dipsy [ lib/Padre/Task/CPAN.pm - metacpan.org - Perl programming language ]
13:53 bowtie_ http://explorer.metacpan.org/?ur​l=%2Ffile%2F_search&content={%0D%0A%22query%22+%3A+{%0D%0A++++++++++++%2​2bool%22+%3A+{%0D%0A+++++++++++++++%22should​%22+%3A+[%0D%0A++++++++++++++++++{%0D%0A++++​+++++++++++++++++%22field%22+%3A+{%0D%0A++++​++++++++++++++++++++%22release.author%22+%3A​+%22bowtie*%22%0D%0A+++++++++++++++++++++}%0​D%0A++++++++++++++++++}%0D%0A+++++++++++++++​]%0D%0A++++++++++++}%0D%0A+++++++++}%0D%0A}
13:53 dipsy urgh. long url. Try http://tinyurl.com/k3juxlr
13:53 dipsy [ MetaCPANExplorer ]
13:53 bowtie_ sorry
14:08 oalders bowtie: is that valid JSON?
14:16 bowtie_ oalders: yes i just hacked this one that works :) http://explorer.metacpan.org/?ur​l=%2Ffile%2F_search&content={%0D%0A%22query%22+%3A+{%0D%0A++++++++++++%22bool%​22+%3A+{%0D%0A+++++++++++++++%22should%22+%3A+[%0D​%0A++++++++++++++++++{%0D%0A+++++++++++++++++++++%​22field%22+%3A+{%0D%0A++++++++++++++++++++++++%22d​ocumentation.camelcase%22+%3A+%22midgen*%22%0D%0A+​++++++++++++++++++++}%0D%0A++++++++++++++++++}%0D%​0A+++++++++++++++]%0D%0A++++++++++++}%0D%0A++
14:16 bowtie_ +++++++}%0D%0A}
14:16 dipsy urgh. long url. Try http://tinyurl.com/jwow48y
14:16 dipsy [ MetaCPANExplorer ]
14:17 bowtie_ dipsy tut tut
14:18 oalders bowtie: are you sure that is valid JSON as well?
14:19 oalders http://jsonformat.com/
14:19 dipsy [ JSON Format - your online JSON Formatter ]
14:19 oalders try that out first and then explorer
14:19 bowtie_ oalders: it works in MetaCPANExplorer
14:21 oalders not for me. maybe the URL is getting truncated
14:22 oalders can you paste a shortened url?
14:23 talexb oalders, I enojyed your talk last night .. I've posted on Perlmonks about the discussion that flowed from your presentation: http://perlmonks.org/?node_id=1055986
14:23 dipsy [ Setting boundaries in software development ]
14:24 oalders talexb: ah, nice :)
14:25 talexb It was a discussion I thought we could have, but worried some people might get tired of ..
14:25 oalders yeah, it's a worthwhile discussion
14:25 oalders we have the tidyall hooks set up in the metacpan repos, but we haven't enforced them yet
14:25 talexb And I didn't get a chance to bring it up at the Artful Dodger.
14:25 bowtie_ oalders: see this $json = $json->pretty ([$enable]) in https://metacpan.org/module/JSON​::XS#ENCODING-CODESET-FLAG-NOTES , I think it is easer to read when debugging
14:25 dipsy [ JSON::XS - JSON serialising/deserialising, done correctly and fast - metacpan.org - Perl programming language ]
14:26 oalders bowtie: yeah, it's easier to read when it's not compressed
14:27 oalders talexb: there's a threshold you can set on the prereceive hook so that you can force a commit if you really need to https://metacpan.org/module/C​ode::TidyAll::Git::Prereceive
14:27 dipsy [ Code::TidyAll::Git::Prereceive - Git pre-receive hook that requires files to be tidyall'd - metacpan.org - Perl programming language ]
14:27 oalders that way you don't have to game the system if you need to get a fix in immediately
14:28 talexb Interesting.
14:28 bowtie_ oalders: try this http://tinyurl.com/mnuolxw
14:28 dipsy [ MetaCPANExplorer ]
14:29 talexb At this company, the developers would certainly have entered ju8nk issue numbers if I made it mandatory, so issuing a warning was the lesser of two evils -- and most devs were pretty good about it.
14:29 oalders :)
14:29 oalders bowtie: that works for me.  now where does that leave us?
14:30 bowtie_ oalders: what can I replace documentation.camelcase with to get pause-ids
14:31 bowtie_ oalders: thats if it's a supported feature
14:31 oalders bowtie: { "query" : { "bool" : { "should" : [ { "field" : { "author" : "BOWTIE" } } ] } } }
14:33 bowtie_ oalders: O , thanks, silly me it's case sensitive, is there a author.uppercase or similar
14:35 oalders bowtie: you'll just need to uppercase the author name on your end
14:36 bowtie_ oalders: many thanks
14:36 oalders bowtie: sorry it took so long to get from A to B :)
14:37 bowtie_ oalders: info only, had you considered adding a list of these types in github that can be used this way
14:38 oalders bowtie: the github documentation is pretty bad
14:38 oalders any helpful changes are welcome :)
14:39 daxim_ joined #metacpan
14:55 bowtie_ oalders: I will add some idiot notes to my todo for you and me the next time :)
14:55 oalders bowtie++
17:27 theSmallAirline joined #metacpan
18:13 thePopularKid joined #metacpan
18:34 neilb joined #metacpan
19:11 neilb joined #metacpan
19:54 neilb joined #metacpan
20:14 andrefs_ joined #metacpan
20:36 omega joined #metacpan
21:56 ilbot2 joined #metacpan
21:56 Topic for #metacpan is now Have you installed your MetaCPAN VM? https://github.com/CPAN-API/metacpan-developer | Chat logs available at http://irclog.perlgeek.de/metacpan/
22:12 ilbot2 joined #metacpan
22:12 Topic for #metacpan is now Have you installed your MetaCPAN VM? https://github.com/CPAN-API/metacpan-developer | Chat logs available at http://irclog.perlgeek.de/metacpan/

| Channels | #metacpan index | Today | | Search | Google Search | Plain-Text | summary