The web in a box - a next generation web framework for the Perl programming language

IRC log for #mojo, 2017-03-29

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

All times shown according to UTC.

Time Nick Message
00:25 spicyjack is there a shortcut for retreiving a Mojo::JSON::Pointer object out of a transaction generated by a call to get_ok()?
00:25 spicyjack I can do "my $ptr = Mojo::JSON::Pointer->new($t->tx->res->json);" to create one, but I was wondering if one already existed in the transaction object somewhere
01:19 aborazmeh joined #mojo
01:29 bpmedley joined #mojo
02:39 noganex joined #mojo
03:37 ashimema joined #mojo
04:04 dboehmer_ joined #mojo
04:29 inokenty-w joined #mojo
05:22 ksmadsen joined #mojo
05:56 ksmadsen joined #mojo
06:05 dod joined #mojo
06:11 dod joined #mojo
06:15 janl joined #mojo
06:18 cpan_mojo Minion-Backend-Mango-1.01 by AVKHOZOV https://metacpan.org/release/AVKHOZOV/Minion-Backend-Mango-1.01
06:47 prg joined #mojo
06:53 janl left #mojo
06:54 warble joined #mojo
07:04 AndrewIsh joined #mojo
07:14 Vandal joined #mojo
07:31 salva joined #mojo
08:11 salva joined #mojo
08:32 rshadow joined #mojo
08:35 prg is "." some shorthand in route destinations? like "#" or "-"?
08:50 marcus joined #mojo
08:52 batman joined #mojo
09:06 dexteruk joined #mojo
09:09 stryx` joined #mojo
09:23 irqq joined #mojo
09:23 dotan_convos joined #mojo
09:42 dod joined #mojo
09:46 dod joined #mojo
09:50 rshadow joined #mojo
10:05 prg batman: i'm checking out M::P::OpenAPI, is there some way to make it prepend my top level x-mojo-name to every x-mojo-to?
10:09 prg or do i have to repeat it in every x-mojo-to, eg "x-mojo-to": "api-v2-foo#get_foo"?
10:13 prg let me guess, "x-mojo-name" is just for naming routes and irrelevant for destinations. i'd have to create the routes beforehand and name them accordingly
10:43 tchaves joined #mojo
11:32 dod joined #mojo
11:47 dod joined #mojo
12:03 batman prg: depends if your in a lite app or full app. care to join #swagger ?
12:04 prg full app
12:04 batman prg: have you read https://metacpan.org/pod/distribution/Mojolicious-Plugin-OpenAPI/lib/Mojolicious/Plugin/OpenAPI/Guides/Tutorial.pod ?
12:04 prg yeah, i have
12:05 prg still unclear to me if what i want is achievable
12:06 batman prg: are you familiar with $route->name() and $route->to() in mojolicious?
12:07 prg yeah, hence my guess
12:07 batman so the data your specify in your spec are simply arguments to those methods. in my cases, i hardly ever specify x-mojo-name, since i don't need it.
12:08 batman but i do set "x-mojo-to": "controller#action" to instruct where to dispatch the request
12:09 batman and since each route is unique, then i need to specify where each request should be dispatched
12:09 prg yeah, that's basically what i have now. but it get's tedious to repeat "x-mojo-to": "api-v2-controller#action", i thought a top level x-mojo-name or spec_route_name could take care of the "api-v2" part
12:09 batman "prepend my top level x-mojo-name to every x-mojo-to" does not make any sense to me, since $route->name() and $route->to() has nothing to do with each other :/
12:10 batman how is that possible?
12:10 SmokeMachine left #mojo
12:10 prg i don't know, that's why i'm asking. i kinda got the impression from docs that this is the use case
12:11 prg later on i figured x-mojo-name is just for naming routes
12:11 prg what is the use case for a top-level x-mojo-name? only to prepend a string to route names?
12:11 batman yes
12:11 prg bummer
12:12 batman bummer?
12:12 purl yeah, that sucks
12:12 prg what purl said
12:12 prg as in "too bad"
12:13 batman i'm open to suggestions.
12:13 prg i don't have any as of this moment, for the moment i was only looking for clarification
12:13 prg thanks for that, btw
12:14 batman are you also defining the routes in your app btw? as in writing $app->routes->get("/api/foo")->to(...) ?
12:14 prg i guess the extra verbosity isn't too bad, beats creating the routes on my own
12:14 prg no, i'm not
12:14 batman good.
12:15 batman i used to (try to) guess controller/action from operationId, but it was a complete mess.
12:16 prg yeah, i can imagine. too many cases to consider
12:17 batman prg: you're welcome to join #swagger
12:17 prg already there ;)
12:18 batman cool :)
12:25 janl joined #mojo
12:48 dexteruk_ joined #mojo
12:57 dantti_laptop joined #mojo
13:20 aborazmeh joined #mojo
14:24 gryphon joined #mojo
15:02 Pyritic joined #mojo
15:05 stryx` joined #mojo
15:13 sh14 joined #mojo
15:21 Pyritic joined #mojo
15:34 tencendur joined #mojo
15:46 dod1 joined #mojo
15:46 bwf joined #mojo
15:51 tchaves joined #mojo
16:20 PryMar56 joined #mojo
16:21 disputin joined #mojo
16:43 cpan_mojo Mojo-Log-Che-0.03 by MCHE https://metacpan.org/release/MCHE/Mojo-Log-Che-0.03
16:46 cfedde joined #mojo
17:12 lluad joined #mojo
17:21 tchaves joined #mojo
17:30 elik joined #mojo
17:31 rshadow joined #mojo
17:42 rshadow joined #mojo
18:04 itaipu joined #mojo
18:40 irqq joined #mojo
18:43 rshadow joined #mojo
19:44 * nic pulsates
20:19 PopeF joined #mojo
20:23 lluad joined #mojo
21:04 stryx` joined #mojo
21:50 * sri wonders what classes everyone is playing in MA Andromeda
21:50 Grinnz havent gotten far enough for that to matter yet... but i think i picked tactician or whatever it's called
21:51 Grinnz also i hear you can change it around later
21:51 sri that's just the background i think
21:51 sri class  = profile
21:51 Grinnz yeah, havent touched profiles yet
21:52 * sri wanted to go vanguard, but that doesn't work so well without lots and lots of skill points
21:53 Grinnz vanguard was lots of fun in ME1 and 2
21:53 sri infiltrator is much easier
21:54 sri reviewers were not kidding when they said the game is huge
21:57 spicyjack sri: so no new mojo releases for a while then, right? ;)
21:57 sri yea, busy saving a galaxy!
21:57 * jberger hugs postgres
21:58 sri game is so full of bugs, but i'm still enjoying it immensely
21:58 jberger insert into pile_of_data (data) set data=jsonb_set(?, '{timestamp}', current_timestamp) where id = ?
21:59 jberger store json data while injecting a timestamp field of when you did so
22:00 jberger or, you know what I mean, I botch it and switched from insert to update halfway through
22:00 jberger update pile_of_data set data=jsonb_set(?, '{timestamp}', current_timestamp) where id = ?
22:01 spicyjack jberger: select * from foo where ~* '/BaR/';
22:01 jberger many reasons to <3
22:02 spicyjack yes
22:08 dotan_convos joined #mojo
22:13 dikim joined #mojo
22:15 arcanez the biggest being it isn't mysql
22:15 * Grinnz shakes fist
22:56 dave hm
22:56 dave mysql
23:45 dikim joined #mojo
23:46 irqq_ joined #mojo
23:55 dave joined #mojo

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