Perl 6 - the future is here, just unevenly distributed

IRC log for #metacpan, 2014-10-15

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

All times shown according to UTC.

Time Nick Message
00:45 vroom joined #metacpan
01:03 vroom joined #metacpan
01:05 ilmari if you have a release branch you can specify that in the badge URL
01:06 ilmari you might even be able to specify a specific tag
01:09 Mso150 joined #metacpan
01:25 klapperl joined #metacpan
01:31 vroom joined #metacpan
01:48 oalders if we can find a way to use the Travis badges that makes people happy, we should do it
01:51 vroom joined #metacpan
02:43 metacpan joined #metacpan
02:43 metacpan [cpan-api] oalders pushed 9 new commits to master: http://git.io/krKQIg
02:43 metacpan cpan-api/master 3fda083 Olaf Alders: Add Data::Printer to cpanfile for easier debugging.
02:43 metacpan cpan-api/master c771605 Olaf Alders: Minor lib cleanup.
02:43 metacpan cpan-api/master a14922d Olaf Alders: Remove default path to fakepan for CPAN....
02:43 metacpan left #metacpan
02:46 dipsy [ Comparing bb5e74439eb4...cb96142af6d6 · CPAN-API/cpan-api · GitHub ]
02:48 metacpan joined #metacpan
02:48 metacpan [cpan-api] oalders created oalders/upgrade-parse-pmfile (+1 new commit): http://git.io/ZfupAw
02:48 metacpan cpan-api/oalders/upgrade-parse-pmfile e949188 Olaf Alders: Upgrade Parse::PMFile from 0.05 to 0.29
02:48 metacpan left #metacpan
02:50 dipsy [ Upgrade Parse::PMFile from 0.05 to 0.29 · e949188 · CPAN-API/cpan-api · GitHub ]
02:52 andreea joined #metacpan
03:06 metacpan joined #metacpan
03:06 metacpan [cpan-api] oalders merged oalders/upgrade-parse-pmfile into master: http://git.io/hBq9Fg
03:06 metacpan left #metacpan
03:07 metacpan joined #metacpan
03:07 metacpan [cpan-api] oalders deleted oalders/cpan at 967502d: http://git.io/M6ObCg
03:07 metacpan left #metacpan
03:07 metacpan joined #metacpan
03:07 metacpan [cpan-api] oalders deleted oalders/upgrade-parse-pmfile at e949188: http://git.io/gzp9Xg
03:07 metacpan left #metacpan
03:09 dipsy [ Comparing cb96142af6d6...e9491883f342 · CPAN-API/cpan-api · GitHub ]
03:09 oalders kentnl: do you know to use MetaCPAN::Client to get all documents in an endpoint?
03:09 oalders it really wants search args
03:09 oalders but i just want everything
03:09 dipsy [ Add more debugging to backup restore logic. · 967502d · CPAN-API/cpan-api · GitHub ]
03:12 dipsy [ Upgrade Parse::PMFile from 0.05 to 0.29 · e949188 · CPAN-API/cpan-api · GitHub ]
03:13 kentnl Ummm. No. There's a lot of things MetaCPAN::Client makes way, way too hard.
03:14 kentnl ie, I have code that subclasses it, ... but all the elasticsearch code inside the request object I've had to re-write a second time just to use it.
03:14 kentnl and I've had to monkey patch the result set iterator just to be able to do what I want it to do.
03:14 kentnl etc.
03:15 kentnl I don't know what to suggest. But I fear my suggestions would introduce bad design things, so harrg or somebody who knows that stuff better might want to have a look at it
03:15 kentnl harrg* # arrrgh I spell it wrong every time
03:16 kentnl haarg*
03:17 kentnl 1. There needs to be a ->raw_request method or something somewhere for abstraction  2. there needs to be a way to pass arbitrary target classes to RS iterator.
03:18 kentnl oalders: and I feel you'd need at least the first of those two to get around the banal and contorted query syntax MetaCPAN::Client *introduces* for its searches. -_-
03:19 oalders right
03:19 oalders it seems like moving beyond basic stuff is tough
03:19 oalders but just a blank search shouldn't be hard
03:23 oalders kentnl: also, it doesn't look like you can specify the fields to return. am i correct?
03:34 kentnl oalders: that is correct. It just returns *all* of them. And then blithely nukes fields which aren't in ->_known_keys of the target object while creating the object ;)
03:35 oalders :)
03:35 oalders i'll open a ticket
03:42 kentnl https://github.com/CPAN-API/metacpan-client/pull/20/files # This, or something like it, would be useful for instance
03:47 oalders kentnl: thanks. i'll take a closer look at that
03:47 dipsy [ ResultSet.pm: Permit user defined target classes for low-level use. by kentfredric · Pull Request #20 · CPAN-API/metacpan-client · GitHub ]
03:51 kentnl Though I should say I'm pretty sure I've introduced a bug there. I just can't explain what it is, or how to fix it.
03:54 oalders :)
04:09 kentnl Ok, Think I fixed that. Doing it manually in BUILDARGS seems odd to me, but its already doing other stuff that way, so #WHYNO
04:09 kentnl Now, to see if I can think of some less insane way to to raw queries than what it currently requires
04:13 kentnl aaaactually
04:13 kentnl looking at the code, maybe you can
04:14 kentnl I looked at this a million times and never saw it
04:14 kentnl ->ssearch($type,$args,$params); # as long as $params is a hashref and contains keys that clobber ones already in the ES query, it *should* just work
04:15 kentnl You just have to have $args enough to appease the sillyness
04:15 kentnl oalders: ^ make sense?
04:16 oalders kentnl: ah, thanks. that makes sense
04:17 kentnl it only became glaringly apparent when I went to re-write it for some reason
04:17 oalders i'm also seeing that domain and version don't get passed to the Request object when you create a new Client object
04:18 kentnl yeh, you have to construct your own value of "ua" if you want anything weird to happen in the request object
04:18 kentnl sorry, own value of request8
04:19 kentnl ->new( request => MetaCPAN::Client::Request->new( domain => ... ))
04:28 kentnl ->ssearch( $type, { bogus => 1
04:28 kentnl ->ssearch( $type, { bogus => 1 }, { normal elastic search scroll constructor args } )
04:29 kentnl for some reason it needs at least *one* hash key.
04:29 kentnl Though I think we can patch that maybe :)
04:31 metacpan joined #metacpan
04:31 metacpan [metacpan-client] oalders created oalders/domain (+2 new commits): http://git.io/sIjQyA
04:31 metacpan metacpan-client/oalders/domain 0831027 Olaf Alders: Fixes typo in SYNOPSIS.
04:31 metacpan metacpan-client/oalders/domain a28c5ec Olaf Alders: Allow domain and version of the API url to be settable via...
04:31 metacpan left #metacpan
04:31 metacpan joined #metacpan
04:31 metacpan [metacpan-client] oalders opened pull request #21: oalders/domain (master...oalders/domain) http://git.io/ecFJ5A
04:31 metacpan left #metacpan
04:33 oalders yeah, but the docs also say "Internal attribute representing the request object making the request to MetaCPAN and analyzing the results. You probably don't want to set this, nor should you have any usage of it."
04:33 dipsy [ Comparing 083102728ef2^...a28c5ec08b04 · CPAN-API/metacpan-client · GitHub ]
04:33 oalders so that's kind of confusing
04:33 oalders (those are the docs for MetaCPAN::Client::request() )
04:33 oalders so { bogus => 1 } allows me to fetch everything in the type?
04:33 dipsy [ oalders/domain by oalders · Pull Request #21 · CPAN-API/metacpan-client · GitHub ]
04:39 kentnl { bogus => 1 }  # gets ignored because hash-merging means if you define ->{ body => } in $params, then it will squash whatever value of body => the code defined on its own.
04:39 kentnl so you could pass a   ->ssearch( 'type',{ bogus => 1 }, { body => {} })  # or something
04:40 kentnl the only reason you need the { bogus => 1 } is because it goes "ah, we have to munge that to a real query" and then bails when the query is empty
04:40 kentnl https://gist.github.com/kentfredric/22266f846eb6003dc842 # Which is why I'm doing this to allow avoiding that
04:41 dipsy [ x.diff ]
04:45 * kentnl might find a better way to codify that.
04:47 kentnl oalders: is body => {} mandatory in any way?
04:48 * kentnl is trying to decide what to do when  $args == {} and $params doesn't have 'body' or if I even need to check that at all
04:49 kentnl really, trying to hack this function to be nice is starting to feel like it will lead to bad places, and it would be better to have an explicit way to do raw queries
05:01 kentnl https://github.com/CPAN-API/metacpan-client/issues/22 # Feedback plox
05:04 dipsy [ Raw Query construction for Request class · Issue #22 · CPAN-API/metacpan-client · GitHub ]
05:05 thaljef joined #metacpan
05:15 thaljef joined #metacpan
07:01 FROGGS joined #metacpan
07:10 dp_ joined #metacpan
07:16 neilb joined #metacpan
08:04 neilb joined #metacpan
08:05 neilb_ joined #metacpan
08:17 Mso150 joined #metacpan
08:40 neilb joined #metacpan
08:55 Mso150 joined #metacpan
09:13 neilb joined #metacpan
11:55 vroom joined #metacpan
12:42 vroom joined #metacpan
12:49 metacpan joined #metacpan
12:49 metacpan [cpan-api] oalders pushed 1 new commit to master: http://git.io/_9x7ng
12:49 metacpan cpan-api/master 4a1200b Olaf Alders: Updates cpanfile.snapshot
12:49 metacpan left #metacpan
12:52 dipsy [ Updates cpanfile.snapshot · 4a1200b · CPAN-API/cpan-api · GitHub ]
12:58 oalders kentnl: i think if you're searching on everything, you wouldn't need to send the body
13:00 oalders kentnl: although https://github.com/elasticsearch/elasticsearch-perl/issues/32
13:05 dipsy [ Pass scroll_id's in the body by default · Issue #32 · elasticsearch/elasticsearch-perl · GitHub ]
13:13 vroom joined #metacpan
13:47 vroom joined #metacpan
14:52 metacpan joined #metacpan
14:52 metacpan [cpan-api] rwstauner created travis-carton-deployment (+2 new commits): http://git.io/4--Q0g
14:52 metacpan cpan-api/travis-carton-deployment 36533ef Randy Stauner: Run carton in deployment mode on one travis perl
14:52 metacpan cpan-api/travis-carton-deployment c8dfca1 Randy Stauner: Keep indentation consistent in travis yml
14:52 metacpan left #metacpan
14:54 dipsy [ Comparing 36533efcb229^...c8dfca1c1b9b · CPAN-API/cpan-api · GitHub ]
14:57 metacpan joined #metacpan
14:57 metacpan [cpan-api] rwstauner force-pushed travis-carton-deployment from c8dfca1 to cdad695: http://git.io/qs7kdA
14:57 metacpan cpan-api/travis-carton-deployment 5e941a8 Randy Stauner: Run carton in deployment mode on one travis perl
14:57 metacpan cpan-api/travis-carton-deployment cdad695 Randy Stauner: Keep indentation consistent in travis yml
14:57 metacpan left #metacpan
14:58 dipsy [ Commits · CPAN-API/cpan-api · GitHub ]
15:14 metacpan joined #metacpan
15:14 metacpan [cpan-api] rwstauner merged travis-carton-deployment into master: http://git.io/-R6WRA
15:14 metacpan left #metacpan
15:15 metacpan joined #metacpan
15:15 metacpan [cpan-api] rwstauner deleted travis-carton-deployment at cdad695: http://git.io/jo2Jpg
15:15 metacpan left #metacpan
15:16 dipsy [ Comparing 4a1200bae5e3...cdad695619ac · CPAN-API/cpan-api · GitHub ]
15:17 dipsy [ Keep indentation consistent in travis yml · cdad695 · CPAN-API/cpan-api · GitHub ]
15:20 metacpan joined #metacpan
15:20 metacpan [metacpan-web] rwstauner pushed 2 new commits to master: http://git.io/wi9lQA
15:20 metacpan metacpan-web/master 354529e Randy Stauner: Run carton in deployment mode on one travis perl
15:20 metacpan metacpan-web/master 7113a4a Randy Stauner: Keep indentation consistent in travis yml
15:20 metacpan left #metacpan
15:21 dipsy [ Comparing 575aea06dc4d...7113a4a61eb6 · CPAN-API/metacpan-web · GitHub ]
15:37 vroom joined #metacpan
16:00 vroom1 joined #metacpan
16:21 marcus joined #metacpan
16:50 Mso150 joined #metacpan
16:55 FROGGS joined #metacpan
17:02 marcus_ joined #metacpan
17:07 marcus joined #metacpan
17:16 FROGGS joined #metacpan
17:24 marcus_ joined #metacpan
17:29 marcus joined #metacpan
17:47 neilb joined #metacpan
17:56 ether metacpan being upgraded?
17:57 ether I'm getting 503 errors
17:58 rwstauner ranguard is on it
17:58 rwstauner thanks
17:58 ether ranguard++
17:58 ranguard looking
18:02 ranguard back
18:02 ranguard *blush*
18:02 oalders ranguard++
18:07 ether what happened?
18:10 neilb joined #metacpan
18:10 oalders nginx update
18:23 metacpan joined #metacpan
18:23 metacpan [metacpan-client] mickeyn pushed 1 new commit to master: http://git.io/5sQ-kg
18:23 metacpan metacpan-client/master a959d4a Mickey: Merge pull request #21 from CPAN-API/oalders/domain...
18:23 metacpan left #metacpan
18:25 dipsy [ Merge pull request #21 from CPAN-API/oalders/domain · a959d4a · CPAN-API/metacpan-client · GitHub ]
18:30 metacpan joined #metacpan
18:30 metacpan [metacpan-client] mickeyn pushed 1 new commit to master: http://git.io/3VtFkg
18:30 metacpan metacpan-client/master 8834192 mickey: C1;2802;0cupdate Changes file
18:30 metacpan left #metacpan
18:30 dipsy [ C1;2802;0cupdate Changes file · 8834192 · CPAN-API/metacpan-client · GitHub ]
18:34 GumbyNET7 joined #metacpan
18:36 Mso150 joined #metacpan
18:37 neilb_ joined #metacpan
18:46 neilb_ joined #metacpan
18:58 vroom joined #metacpan
19:07 neilb joined #metacpan
19:07 Mso150 joined #metacpan
19:08 ether the pager doesn't seem to be working right - e.g. https://metacpan.org/author/ETHER/releases?p=1&size=500 still only shows 100 results (the default pager size)
19:09 oalders ether: could you open an issue and ping @szabgab in it?
19:09 dipsy [ All releases by ETHER - metacpan.org ]
19:10 neilb_ joined #metacpan
19:11 ether ok
19:11 ether done
19:13 oalders thanks!
19:14 Mso150 joined #metacpan
19:31 gvenkat joined #metacpan
19:35 Mso150 joined #metacpan
19:50 Mso150 joined #metacpan
19:52 vroom joined #metacpan
21:18 vroom joined #metacpan
21:30 neilb_ joined #metacpan
22:02 fedelippo joined #metacpan
22:07 fedelippo joined #metacpan

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