Perl 6 - the future is here, just unevenly distributed

IRC log for #askriba, 2017-10-17

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

All times shown according to UTC.

Time Nick Message
04:04 dboehmer joined #askriba
07:13 karjala_ joined #askriba
10:31 ashimema think I've got a knowledge gap..
10:31 ashimema I'm trying to create a coderef to allow some often used filtering to be moved into the result source level..
10:32 ashimema but attempting to use `__PACKAGE__->result_source->schema->storage->datetime_parser->format_datetime($dt);` yields a lovely informative error: `DBIx::Class::Row::result_source(): result_source can be called on instances only`
10:33 ashimema problem is.. I have no idea how to get at that datetime_parser otherwise.. any tips ribasushi
10:33 * ashimema is happy to paste more code for context.. but didn't wan't to spam too much off the bat
10:36 ashimema http://paste.debian.net/991221/ is the coderef in question
10:37 ashimema http://paste.debian.net/991222/ (first one has a typo in the copy/paste)
10:38 ashimema hmm
10:40 ashimema I could convert to a 'my_lists' accessor instead of a coderef I suppose.. then chain another search instead of passing back search parameters to combine with other filters
10:40 * ashimema is talking aloud now.. but would still apreciate any hints or tips
10:43 * ashimema always gets a little confused between ResultSet and Result classes here too.. hmm
10:44 ashimema such a `->my_lists($user_id)` method to return a resultset should be in a ResultSet class not the Result class right?
10:45 * ashimema goes to make tea.. brain is fading fast
11:34 ashimema if anyone's interested this is what I ended up with instead: http://paste.debian.net/991229/
11:36 ashimema not sure about the 'order_by' near the bottom.. have a feeling there might be a nicer way to merge that into the chained resultsets rather than splatting the order_by entirely..
11:43 ribasushi ashimema: ( in case you read log ): there's a lot of... not very well thought through things in these pastes, but $work is on fire, won't be able to elaborate on anything today
11:43 ribasushi hopefully we can chat tomorrow about this &
11:45 ashimema joined #askriba
13:08 karjala__ joined #askriba
13:09 dboehmer joined #askriba
13:17 SysPete joined #askriba
13:17 ashimema joined #askriba
13:18 frew joined #askriba

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