ruote tmp/log_2011-02-16.html

2011-02-16 07:46:39 utc tosch_le jmettraux: good morning!
2011-02-16 07:46:48 utc jmettraux good afternoon !
2011-02-16 07:46:55 utc tosch_le just having a look at ruote-kit using ruby 1.9.2
2011-02-16 07:47:21 utc jmettraux :-)
2011-02-16 07:48:16 utc tosch_le everything was fine until now (launched some processes, canceled some expressions, forced some errors, re-applied), but the schedules page has a strange count: there is one schedule, but it says there are 4
2011-02-16 07:48:40 utc jmettraux the pagination "div" ?
2011-02-16 07:48:42 utc tosch_le ("1 to 4 of 4 schedules")
2011-02-16 07:48:44 utc tosch_le yes.
2011-02-16 07:49:09 utc tosch_le there is only one schedule on the page, even if it says 4 there
2011-02-16 07:49:45 utc jmettraux ok
2011-02-16 07:49:50 utc jmettraux wrote it down
2011-02-16 07:50:02 utc jmettraux I'll have a look then
2011-02-16 07:50:06 utc jmettraux thanks !
2011-02-16 07:50:23 utc tosch_le it's a pleasure
2011-02-16 07:52:42 utc jmettraux is 1 schedule the number expected ?
2011-02-16 07:56:34 utc tosch_le yes
2011-02-16 07:57:10 utc tosch_le there was just one timeout in a participant expression
2011-02-16 07:57:23 utc jmettraux OK
2011-02-16 07:58:50 utc tosch_le oh, i see the problem. in /schedules, the processes are counted, not the schedules themselves
2011-02-16 07:59:33 utc tosch_le https://github.com/tosch/ruote-kit/blob/master/lib/ruote-kit/resources/schedules.rb#L7
2011-02-16 07:59:52 utc jmettraux want to fix it by yourself ?
2011-02-16 08:00:00 utc tosch_le :-)
2011-02-16 08:00:05 utc tosch_le i'll try ;-)
2011-02-16 08:00:09 utc jmettraux OK
2011-02-16 08:00:34 utc jmettraux oh oh, it's "blame"ing me
2011-02-16 08:01:18 utc jmettraux spec is candid, 1 process, 1 schedule
2011-02-16 08:09:41 utc tosch_le within ruote, is there a way to count the schedules without retrieving them?
2011-02-16 08:10:08 utc jmettraux RuoteKit.engine.storage.get_many('schedules', :count => true)
2011-02-16 08:10:59 utc tosch_le thanks, that's great
2011-02-16 08:11:30 utc jmettraux :-)
2011-02-16 08:12:36 utc tosch_le but it's not working:
2011-02-16 08:12:45 utc tosch_le undefined method `match' for [:count, true]:Array
2011-02-16 08:12:56 utc jmettraux ah sorry
2011-02-16 08:12:59 utc tosch_le ruote-814d3e1cde34/lib/ruote/storage/base.rb:345:in `block in key_match?'
2011-02-16 08:13:11 utc tosch_le having a look at get_many now
2011-02-16 08:13:22 utc jmettraux RuoteKit.engine.storage.get_many('schedules', nil, :count => true)
2011-02-16 08:13:59 utc jmettraux wait
2011-02-16 08:14:01 utc jmettraux you can do
2011-02-16 08:14:27 utc jmettraux RuoteKit.engine.schedules(:count => true)
2011-02-16 08:15:50 utc tosch_le that's magic :-)
2011-02-16 08:16:22 utc tosch_le and now, there's a green spec :-)
2011-02-16 08:16:37 utc jmettraux ACTION now has the "it's kind of magic" tune in the head
2011-02-16 08:17:55 utc tosch_le commited and pushed
2011-02-16 08:18:01 utc tosch_le thanks for your help
2011-02-16 08:18:11 utc jmettraux thanks for the work !
2011-02-16 08:18:33 utc tosch_le i'd say everything is fine now.
2011-02-16 08:18:39 utc tosch_le that was the only error i found
2011-02-16 08:18:53 utc tosch_le error is a bit harsh…
2011-02-16 08:19:08 utc jmettraux excellent
2011-02-16 08:19:14 utc jmettraux thanks for the QA !
2011-02-16 08:19:54 utc jmettraux merged and pushed
2011-02-16 08:20:20 utc tosch_le ah, that was a real pleasure. now back to work…