Perl 6 - the future is here, just unevenly distributed

IRC log for #metacpan, 2017-02-15

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

All times shown according to UTC.

Time Nick Message
00:05 neilb joined #metacpan
02:07 oalders simbabque that presentation is pretty old.  did you follow all of the setup instructions for the VM?
02:21 castaway joined #metacpan
06:17 mickey simbabque: the 'user' index should be created automatically with the mapping. did you run the mapping script?
07:32 nakiro joined #metacpan
07:39 [Tux] joined #metacpan
07:39 nakiro joined #metacpan
07:40 clunker3 joined #metacpan
08:30 neilb joined #metacpan
09:06 Relequestual joined #metacpan
09:12 neilb joined #metacpan
09:19 willthechill joined #metacpan
09:23 ribasushi joined #metacpan
10:10 simbabque mickey: I can't find the mapping script
10:10 simbabque so I didn't run it
10:10 simbabque I did everything it said in the readme at https://github.com/metacpan/metacpan-developer
10:12 simbabque ah I never looked at the readme of metacpan-api
10:14 mickey :)
10:14 simbabque ok so how do I run the mapping script?
10:14 simbabque ~/metacpan-api$ bin/run bin/metacpan mapping
10:14 simbabque didn't give output
10:14 mickey --delete
10:15 simbabque ah ok
10:15 simbabque it created empty stuff
10:15 mickey yes, just the index + mapping
10:18 simbabque ok, now when I start up both api and web with plackup and do twitter oauth it doesn't throw an error any more
10:18 simbabque but I get a 404 in the api
10:18 simbabque 127.0.0.1 - - [15/Feb/2017:10:17:37 +0000] "GET /user/profile?access_token=yAj_lbo2C09mBcTo2SqMaX6MPDg HTTP/1.1" 404 41 "http://localhost:5001/account/favorite/list_as_json" "-"
10:23 simbabque is there a web frontend for es included to look at documents?
10:23 simbabque I've never used es, just solr
10:25 edward joined #metacpan
10:27 mickey there's Sense
10:27 mickey it's a Kibana plugin
10:28 simbabque how do I go there?
10:28 mickey you need to download kibana first
10:28 simbabque and is there an authors file included that I can index? now I managed to kind of log in, but it redirected me from github's oauth to /users on the api and I got json in the broser
10:28 mickey (make sure version matches es 2.4)
10:28 mickey don't mix users/authors - you're confusing me :)
10:29 simbabque and when I got o http://localhost:5001/account/profile it asks for my PAUSE id
10:29 simbabque when I enter that, I get
10:29 simbabque http://localhost:5001/login?error=author_not_found
10:29 simbabque so I think it doesn't have authors to look into
10:29 mickey you can index authors data
10:30 mickey run: ./bin/run ./bin/metacpan author
10:30 mickey sense: https://www.elastic.co/guide/en/sense/current/installing.html
10:30 simbabque mickey: takshiv ya sevel :)
10:30 mickey *zevel
10:30 simbabque I see, I will correct my notes
10:30 mickey haha
10:31 mickey sending an envelop with coconut powder your way
10:31 simbabque lol
10:31 simbabque ok now it's indexing authors
10:31 mickey cool
10:32 ribasushi ima sckha ya zevel
10:32 ribasushi ( sans spelling )
10:33 simbabque damn it google translate does not show transliteration -.-
10:34 simbabque after indexing the authors it told me I got an email
10:34 simbabque I think I saw something about that in the FAQ
10:34 simbabque however, it still shows the Sign In dropdown at the top left in the navbar
10:34 mickey simbabque: i'm going afk... try to index some data first - follow the API docs
10:34 simbabque I will
10:34 simbabque thank you
10:35 mickey yw ;)
10:38 simbabque yay it works
10:50 metacpan joined #metacpan
10:50 metacpan [metacpan-developer] simbabque opened pull request #38: change link in faq that was out of date (master...faq-fix) https://git.io/vDXN0
10:50 metacpan left #metacpan
11:11 metacpan joined #metacpan
11:11 metacpan [metacpan-developer] mickeyn closed pull request #38: change link in faq that was out of date (master...faq-fix) https://git.io/vDXN0
11:11 metacpan left #metacpan
11:11 mickey simbabque++
11:12 Relequestual joined #metacpan
13:51 oalders simbabque: it looks like we didn't document that you need to run bin/index-cpan.sh in the metacpan-developer repo
13:51 oalders that would have set up  your mappings
13:51 simbabque at which point?
13:52 simbabque the good thing is, we can add those things now :)
13:52 oalders simbabque: after you provision.  i'll update the docs right now
13:52 oalders sorry you had to poke around to figure that out
13:58 simbabque no worries
13:59 metacpan joined #metacpan
13:59 metacpan [metacpan-developer] oalders pushed 1 new commit to master: https://git.io/vD1OO
13:59 metacpan metacpan-developer/master a9fdd76 Olaf Alders: Document that index-cpan script needs to be run on initial VM setup.
13:59 metacpan left #metacpan
14:00 oalders simbabque: i've just pushed the change but basically "sh /vagrant/bin/index-cpan.sh" once you're in the VM will do the right thing
14:39 simbabque cool thanks oalders
14:43 oalders :)
15:11 ranguard mickey: http://munin.metacpan.org/ now working through fastly so you don't need to add your IP to it
15:15 * ranguard adds more disk space to /var on bmmc03
15:56 Khisanth joined #metacpan
16:56 Mithaldu joined #metacpan
17:19 Relequestual joined #metacpan
17:53 mickey ranguard++
18:23 Grinnz reading up on elasticsearch, and it's strange that this is buried near the end of the guide https://www.elastic.co/guide/en/elasticsearch/reference/current/general-recommendations.html#_avoid_types
18:23 Grinnz i had been trying to figure out what to use types for, and now it seems i should probably just not use them
18:23 mst "don't store completely different sorts of things in the same index" seems pretty reasonable
18:24 Grinnz yeah, but they are not introduced that way :P
18:25 Grinnz https://www.elastic.co/guide/en/elasticsearch/reference/current/_basic_concepts.html#_type
18:53 ranguard Grinnz: I'd say 99% of the time you want 1 type per index (metacpan learning that the hard way!)
18:54 ranguard you can query across indicies so even then you can still search
18:54 Grinnz :)
18:54 * ranguard adds a few decimals... 99.9...
18:54 Grinnz coming from sphinxsearch, which has no separation beyond indexes, seems like they should just get rid of types
18:55 neilb joined #metacpan
19:46 jberger you could always steal a few decimals from Net::FullAuto if you need them :P
19:46 * jberger runs
19:54 castaway joined #metacpan
20:44 [SoQ]Forseti joined #metacpan
22:57 simbabque I found the issue with the empty profile after saving. It was in the api, not in web. Travis is crunching my pr now. But tests for this will need to wait until I figure out how to fake a login. I also think there is a bit of handling we could do to make something like this very obvious later. The error handling in the Profile controller in web is broken if the response is HTML. I will create a ticket for that tomorrow.

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