Perl 6 - the future is here, just unevenly distributed

IRC log for #metacpan, 2014-03-09

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

All times shown according to UTC.

Time Nick Message
00:28 punter joined #metacpan
01:48 rashi joined #metacpan
02:11 klapperl_ joined #metacpan
02:33 punter Does the MetaCPAN API not allow regexp's in the filter?
02:33 punter (i'm new to elasticsearch, but I think i'm not doing a mistake in the syntax)
02:37 punter which version of elasticsearch is MetaCPAN running?
02:37 punter any1?
02:55 talina_ joined #metacpan
03:34 trs punter: 0.20.2
03:35 trs ah punter left. talk about impatient
07:11 rkmithun joined #metacpan
08:54 rkmithun joined #metacpan
09:33 rkmithun joined #metacpan
10:22 punter joined #metacpan
10:23 punter Does the Elasticsearch which is on metacpan not accept regexes in search?
10:23 punter the API
10:38 punter Anyone?
10:38 punter Someone?
10:38 dipsy Bueller?... Bueller
10:38 dipsy Someone is probably wrong
10:45 rashi joined #metacpan
10:50 punter What version is the Elasticsearch server on MetaCPAN?
10:51 ranguard punter: 0.20 atm
10:52 punter ok
10:52 ranguard upgrade to 1.xx planned soonish
10:54 punter searches with regexes are not allowed, are they?
11:09 fernando joined #metacpan
11:57 ranguard not sure soz - seem to remember not for security or load or something could be wrong
14:29 punter I've started making a site that produces RSS feeds out of diffs in the Changes files of all modules being uploaded to CPAN
14:29 punter That's why I'm asking so many questions
15:00 [Sno] joined #metacpan
15:44 [Sno]_ joined #metacpan
16:37 cooper joined #metacpan
16:58 ribasushi API question
16:58 ribasushi how do I actually go from "random module name" to "dist that claims to currently contain it as per  02modules"
16:58 ribasushi http://api.metacpan.org/v0/module/DBIx::Class::Core doesn't list the dist name
16:58 ribasushi what does?
17:03 kentnl ribasushi: you'll want to steal logic from cpanm that does that, I think
17:04 kentnl you're wanting to resolve module names to installable dists basically right?
17:05 kentnl https://github.com/miyagawa/cpanminus/blob/devel/lib/App/cpanminus/script.pm#L597
17:05 dipsy [ cpanminus/lib/App/cpanminus/script.pm at devel · miyagawa/cpanminus · GitHub ]
17:10 ribasushi kentnl: "what would `cpan X` do"
17:11 ribasushi holly shit... why... is this logic not provided by the metacpan indexer...?
17:11 kentnl "cpan" downloads 02packages, no?
17:12 ribasushi kentnl: yes I know that, I am after the answer to this question via the api
17:12 kentnl yeah, I have myself asked that question too
17:12 kentnl I started even writing CPAN code to just make it possible to do module resolution from arbitrary things easily
17:12 kentnl but a) Got lost and b) Was told not to
17:12 ribasushi I don't have an arbitrary thing
17:13 ribasushi I have a module passing Module::Runtime's check_module_name routine
17:13 ribasushi am I better off just grepping 02packages myself...?
17:13 * kentnl wants something like CPAN::Module::Resolver->latest_for('Some::Module::Name') => $DIST
17:13 ribasushi (it still boggles me metacpan's api doesn't seem to have an endpoint for this)
17:14 priodev joined #metacpan
17:15 kentnl also, something I desperately want is CPAN::Module::Resolver->lowest_satisfying('Some::Module::Name', '>=0.004')
17:15 kentnl because "need >0.004 so install 5.000 and an entirely different universe" is not the greatest.
17:17 kentnl For instance, with your graphing things, you're following the top edge of the dependency graph, but there is potentially an adequate, much smaller dependency graph somewhere else.
17:17 ribasushi but it isn't relevant
17:18 ribasushi I am graphing "what would doing `cpan Foo` mean right this moment on a fresh perl"
17:18 ribasushi anything else is - meh
17:18 ribasushi also it is trivially solvable by "pinning" in the grapher code, but again - it's not an interesting answer for me
17:20 kentnl right. That part is still doable with a module, but I was going fullfeaturecreepster in something that would be adjacently useful =)
17:21 kentnl ribasushi: alternatively, just use the cpammetadb
17:21 ribasushi hmmm... I think I can get what I wanted from http://api.metacpan.org/v0/module/DBIx::Class::Core, by contact of "author" . "release"
17:21 ribasushi seems to correspond to the right thing
17:22 kentnl https://github.com/miyagawa/cpanminus/blob/devel/lib/App/cpanminus/script.pm#L693  # braindeadedly simple
17:22 dipsy [ cpanminus/lib/App/cpanminus/script.pm at devel · miyagawa/cpanminus · GitHub ]
17:22 ribasushi kentnl: that'd be incorrect for multiple reasons, given the usecase
17:23 kentnl hu? How would it be incorrect?
17:27 ribasushi kentnl: "given the usecase"
17:27 kentnl oh, you're trying to implement this within the metacpan itself?
17:27 kentnl that would be relevant context =)
17:28 ribasushi kentnl: right, final result: http://paste.scsys.co.uk/322926
17:28 dipsy [ magnet_web paste from Someone at 217.168.150.38... ]
17:29 kentnl that might not be adequte, and will probably include unauthorised and development releases, if I'm understanding correctly.
17:29 kentnl that may be fine though for your usecase, just something to consider
17:30 ribasushi kentnl: hmmmm... checking
17:31 kentnl ( the need to check that stuff is why the cpanm code is complex )
17:32 ribasushi http://api.metacpan.org/v0/module/mop
17:32 ribasushi kentnl: ^^ this correctly 404's
17:32 ribasushi or am I missing something?
17:33 kentnl ha. I'll have to work out  why I have these memories then, and why cpanm is still using that code
17:33 kentnl maybe once upon a time that interface as not adequate
17:33 kentnl or maybe one gives more context
17:35 ribasushi I will add the filters just in case though
17:35 kentnl just note you're using /module/$FOO and cpanm is using /file/_search? , and they're kind different.
17:36 ribasushi ah, well that explains it then
17:36 ribasushi .oO( why would cpanm use file search...? )
17:36 kentnl just I'm not sure *why* or how they're different, except that they are.
17:39 kentnl it could have simply been convenience, because cpanm *wants* dev releases sometimes, its easier to chuck a filter in the stream when you don't want them, vs, having 2 completely different queries
17:39 kentnl and the file interface contains things there.
17:40 ranguard anyone: why does metacpan API not have feature X?...  A: you've not sent the pull request to provide it :)
17:46 kentnl dipsy: patches welcome
17:47 kentnl bah, muted in here?
17:53 kentnl +
17:53 kentnl bah. Scumbag keyboard
18:36 metacpan joined #metacpan
18:36 metacpan [metacpan-web] rwstauner pushed 1 new commit to master: http://git.io/C7G_4w
18:36 metacpan metacpan-web/master eafb8f2 Randy Stauner: Overwrite SyntaxHighlighter's url regexp to allow tildes...
18:36 metacpan left #metacpan
18:36 dipsy [ Overwrite SyntaxHighlighter's url regexp to allow tildes · eafb8f2 · CPAN-API/metacpan-web · GitHub ]
19:46 punter The API's documentation isn't very complete, is it? For example, what is the meaning of the
19:46 punter of the "path" when returning files?
19:47 ranguard punter: we are hoping to get someone working on that, if you have time... :) ?
19:48 ranguard punter: can you give me an example of "path" (sorry I don't actually use the API my self yet)
19:48 punter let me paste my query in pastebin
19:50 punter ranguard, here: http://pastebin.com/4HbA5Rsm
19:50 dipsy [ [Perl] What is "path" - Pastebin.com ]
19:50 punter I saw the example with path, in the MetaCPAN API documentation page
19:50 punter here: https://github.com/CPAN-API/cpan-api/wiki/API-docs
19:50 dipsy [ API docs · CPAN-API/cpan-api Wiki · GitHub ]
19:51 punter search for "Get a list of all files where the directory is false and the path is blank"
19:56 ranguard sorry, nothing jumps out at me - yes we need more docs!
19:57 punter Anyone: When is "path" blank and when does it contain the filename itself?
19:57 ranguard going to have a look around: https://github.com/CPAN-API/metacpan-examples
19:57 dipsy [ CPAN-API/metacpan-examples · GitHub ]
19:59 ranguard https://github.com/CPAN-API/metacpan-examples/blob/master/scripts/endpoints/file/1-get-files-in-dist-es.pl - seems to suggest no path would be a bit odd
19:59 dipsy [ metacpan-examples/scripts/endpoints/file/1-get-files-in-dist-es.pl at master · CPAN-API/metacpan-examples · GitHub ]
20:00 punter That's the source path
20:00 punter not the same as the field "path"
20:01 ranguard oh, sorry, will leave for better minds to help...
20:01 ranguard rwstauner: ^^
20:01 punter ok
20:27 rashi joined #metacpan
20:50 punter When MetaCPAN moves to version 1.x of Elasticsearch, will the interface break (and my scripts with it)?
20:50 punter the interface have breaking changes, I mean
20:55 ranguard punter: hopefully not, but we've not started the upgrade project yet, just starting to find the people who can do it
21:00 punter Either way, if you notify in advance the people who registered their metacpan clients on the metacpan wiki, it should be ok
21:46 khisanth_ joined #metacpan
22:00 [Sno] joined #metacpan
22:04 nbezzala joined #metacpan
22:06 rashi joined #metacpan
23:00 punter I have two computers accessing the metacpan API every minute. I'd like to make my email address known to the metacpan team, but not in public on the wiki
23:00 punter Is anyone interested?

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