Perl 6 - the future is here, just unevenly distributed

IRC log for #metacpan, 2015-03-30

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

All times shown according to UTC.

Time Nick Message
00:12 vroom1 joined #metacpan
01:54 vroom1 joined #metacpan
01:58 klapperl_ joined #metacpan
02:26 vroom1 joined #metacpan
02:27 melo joined #metacpan
02:38 vroom1 joined #metacpan
04:18 jwang joined #metacpan
05:27 oiami joined #metacpan
06:15 oiami joined #metacpan
06:55 heytitle joined #metacpan
08:36 andreeap joined #metacpan
08:59 andreeap joined #metacpan
09:08 jwang joined #metacpan
09:17 andreeap joined #metacpan
10:05 tianon joined #metacpan
10:11 alnewkirk joined #metacpan
10:12 lifeofguenter joined #metacpan
10:27 punter joined #metacpan
10:33 oiami joined #metacpan
10:33 tianon joined #metacpan
11:11 vroom1 joined #metacpan
11:23 vroom1 joined #metacpan
12:16 vroom1 joined #metacpan
12:38 tianon joined #metacpan
12:59 vroom1 joined #metacpan
13:49 metacpan joined #metacpan
13:49 metacpan [cpan-api] rwstauner created file-lazy-default-indexed (+2 new commits): http://git.io/j6qZ
13:49 metacpan cpan-api/file-lazy-default-indexed 958d952 Randy Stauner: Test that 'other files' are indexed:false in a release...
13:49 metacpan cpan-api/file-lazy-default-indexed b6889ff Randy Stauner: Move logic for default File "indexed" to lazy builder...
13:49 metacpan left #metacpan
14:10 ribasushi I am currently reading https://github.com/CPAN-API/cpan-api/blob/master/docs/API-docs.md
14:10 ribasushi can't find (likely glossing over) the spot where I can see the tree of terms per endpoint
14:11 ribasushi i.e. where do I find that I can do file->module->name as in {"term":{"file.module.name":"DBI::Profile"}}
14:13 rwstauner i don't think we have docs that layout all the properties like that
14:13 rwstauner we should, in some sort of "v0" document
14:14 ribasushi rwstauner: do you have a moment to help me craft a query for what I actually want to see? :)
14:14 rwstauner sure
14:15 rwstauner in some cases there is pod right in the "Document" modules, but in this case it isn't very helpful
14:15 ribasushi I want to find dists that say in their prereq meta [configure|build|test|runtime]_recommends, and want to get the values of these
14:15 ribasushi so in essence I need to know how to drill into the prereq bag
14:16 rwstauner additionally you can see the whole structure by curling "api.metacpan.org/file/_mapping".  it's verbose, but you can see what's there
14:16 ribasushi also not sure how to do the equivalent of "IS NOT NULL" or somesuch ;)
14:16 rwstauner hmm
14:17 rwstauner you want to get dists that specify "recommends" ?
14:17 ribasushi yes
14:17 rwstauner and what do you want to be not null?
14:17 ribasushi regardless of phase
14:17 ribasushi well "specify recommends" as opposed to "recommends are X"
14:17 rwstauner there's an exists query, but that may not be the same
14:18 ribasushi is what the "is not null" comment was about
14:19 ribasushi hmmm http://api.metacpan.org/file/_mapping <--- how do I get a list of the stuff that can be specified besides 'file' ?
14:19 ribasushi http://api.metacpan.org/$valid_pieces_are_listed_where/_mapping
14:19 rwstauner ah, that actually is in that file you linked
14:20 rwstauner https://github.com/CPAN-API/cpan-api/blob/master/docs/API-docs.md#available-fields
14:20 tianon joined #metacpan
14:20 ribasushi oh shit it is indeed
14:20 ribasushi did I mention "glossing over" earilier? :)
14:21 rwstauner :)
14:22 rwstauner so here's a first pass: https://gist.github.com/rwstauner/954d9853d3430363b0cd
14:22 rwstauner it finds releases that have at least one dep that is "recommends"
14:23 rwstauner however it displays "all" deps
14:23 rwstauner so you have to iterate through them and filter for the ones you want
14:23 rwstauner i'm not sure if there's a way to show only the ones you wanted
14:23 rwstauner but i have to get ready for a conf call
14:23 ribasushi rwstauner: that's good enough, thank you!
14:23 rwstauner np
14:29 vroom1 joined #metacpan
14:58 ribasushi hm...
14:58 ribasushi how do I actually express
14:58 ribasushi "and":  [  { "term": { "dependency.module": "ExtUtils::MakeMaker" } },  { "term": { "dependency.relationship": "recommends" } }  ]
14:59 ribasushi currently that refers to each term being found in A dependecy. structure not the SAME depdency. structure
14:59 ribasushi rwstauner: ^^
15:00 rwstauner yeah, that requires a nested query
15:00 rwstauner to say that "within a dep object, these two terms"
15:05 rwstauner ribasushi: does this look better? http://explorer.metacpan.org/#/9e3f2e5d746e8da70f3f
15:06 ribasushi rwstauner: yes, I just wrote about the same thing ;)
15:06 rwstauner :)
15:07 rwstauner sorry, i'm supposed to be playing planning poker
15:07 ribasushi last question - is there a way to "show all" in the explorer?
15:07 ribasushi or at least "show top 1000 instead of 10"
15:07 rwstauner add "size": 1000 to the end of the hash
15:15 tianon joined #metacpan
17:34 vroom1 joined #metacpan
18:04 vroom joined #metacpan
18:13 vroom joined #metacpan
18:41 andreeap joined #metacpan
19:08 tianon joined #metacpan
19:31 tianon joined #metacpan
19:35 andreeap joined #metacpan
20:03 vroom1 joined #metacpan
20:04 tianon joined #metacpan
20:14 melo joined #metacpan
20:28 melo joined #metacpan
20:39 punter joined #metacpan
21:27 melo joined #metacpan
22:06 grantm joined #metacpan
23:39 vroom joined #metacpan
23:58 vroom joined #metacpan

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