- edited description
metrics broken?
Issue #2
resolved
hi, I'm not sure, if ts a local problem here, but looks like the metrics are broken (not being generated)
I get the following stack strace, looks like there is a method missing. can you reproduce it?
vpereira@linux-8njk:~> bzconsole metrics --weekly --begin-date=2014-08-01 rhbz
Using token
/home/vpereira/.rvm/gems/ruby-2.1.1/gems/ruby-bugzilla-0.5.4/bin/bzconsole:715:in `block (2 levels) in real_do': No method to deal with the query (NoMethodError)
from /home/vpereira/.rvm/gems/ruby-2.1.1/gems/ruby-bugzilla-0.5.4/lib/bugzilla/user.rb:72:in `session'
from /home/vpereira/.rvm/gems/ruby-2.1.1/gems/ruby-bugzilla-0.5.4/bin/bzconsole:693:in `block in real_do'
from /home/vpereira/.rvm/gems/ruby-2.1.1/gems/ruby-bugzilla-0.5.4/bin/bzconsole:676:in `each'
from /home/vpereira/.rvm/gems/ruby-2.1.1/gems/ruby-bugzilla-0.5.4/bin/bzconsole:676:in `real_do'
from /home/vpereira/.rvm/gems/ruby-2.1.1/gems/ruby-bugzilla-0.5.4/bin/bzconsole:615:in `do'
from /home/vpereira/.rvm/gems/ruby-2.1.1/gems/ruby-bugzilla-0.5.4/bin/bzconsole:935:in `<top (required)>'
from /home/vpereira/.rvm/gems/ruby-2.1.1/bin/bzconsole:23:in `load'
from /home/vpereira/.rvm/gems/ruby-2.1.1/bin/bzconsole:23:in `<main>'
from /home/vpereira/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `eval'
from /home/vpereira/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `<main>'
Comments (4)
-
reporter -
repo owner The behavior itself is correct, because you didn't specify any search options. this is required to avoid the overload on bugzilla, which ends up to reject the query.
Raising the NoMethodError exception may gets confused. maybe better ArgumentError or something.
-
reporter ok thanks. i will try it again. ArgumentError would be better.
-
repo owner - changed status to resolved
Better error handling for metrics sub-command (fixed issue
#2)→ <<cset 2588fd7e090f>>
- Log in to comment