#596: pagination on /dashboard confused
------------------------+--------------------
Reporter: tim | Owner: olemis
Type: defect | Status: review
Priority: major | Milestone:
Component: dashboard | Version: 0.6.0
Resolution: | Keywords:
------------------------+--------------------
Comment (by olemis):
I've noticed widget errors in global dashboard. Bloodhound @ r1511771
reports the following errors after trying to render the global dashboard .
[[Image(bh_mp_x_128_widget_errors.png)]]
The one at the top is
[[span(Log entry, class=label label-important)]]
{{{
2013-08-10 23:18:24,012 Trac[web_ui] ERROR: - fb7227d2-f5be-
40d3-95f8-a483b76a3195 - Error rendering widget TicketQuery with options
{'args': {'max': 10, 'query':
'status=!closed&group=product&col=id&col=summary&col=owner&col=status&col=priority&order=priority&col=milestone&owner=$USER&',
'title': 'My Tickets'}}
}}}
[[span(Traceback, class=label label-important)]]
{{{#!py
Traceback (most recent call last):
File "/path/to/bloodhound/bloodhound_dashboard/bhdashboard/web_ui.py",
line 269, in _render_widget
return wp.render_widget(name, ctx, options)
File "/path/to/bloodhound/bloodhound_dashboard/bhdashboard/util.py",
line 132, in widget_name_checker
return f(self, name, *args, **kwargs)
File
"/path/to/bloodhound/bloodhound_dashboard/bhdashboard/widgets/query.py",
line 100, in render_widget
data = qrymdl.process_request(fakereq, self.env)[1]
File
"/path/to/bloodhound/bloodhound_multiproduct/multiproduct/ticket/query.py",
line 164, in process_request
result = super(ProductQueryModule, self).process_request(req)
File "/path/to/bloodhound/trac/trac/ticket/query.py", line 968, in
process_request
return self.display_html(req, query)
File "/path/to/bloodhound/trac/trac/ticket/query.py", line 1116, in
display_html
self.env[BatchModifyModule].add_template_data(req, data, tickets)
File
"/path/to/bloodhound/bloodhound_multiproduct/multiproduct/ticket/batch.py",
line 11, in add_template_data
req, data, tickets)
File "/path/to/bloodhound/trac/trac/ticket/batch.py", line 93, in
add_template_data
data['action_controls'] = self._get_action_controls(req, tickets)
File "/path/to/bloodhound/trac/trac/ticket/batch.py", line 113, in
_get_action_controls
ticket = Ticket(self.env, t['id'])
File "/path/to/bloodhound/trac/trac/ticket/model.py", line 82, in
__init__
self._fetch_ticket(tkt_id)
File "/path/to/bloodhound/trac/trac/ticket/model.py", line 121, in
_fetch_ticket
id=tkt_id), _("Invalid ticket number"))
ResourceNotFound: Ticket 2 does not exist.
}}}
The one at the bottom is
[[span(Log entry, class=label label-important)]]
{{{
2013-08-10 23:18:23,987 Trac[web_ui] ERROR: - bfa55047-dffa-
4c2f-b458-9924fec7c1e1 - Error rendering widget TicketQuery with options
{'args': {'max': 10, 'query':
'status=!closed&group=product&col=id&col=summary&col=owner&col=status&col=priority&order=priority&col=milestone',
'title': 'Active Tickets'}}
}}}
[[span(Traceback, class=label label-important)]]
{{{#!py
Traceback (most recent call last):
File "/path/to/bloodhound/bloodhound_dashboard/bhdashboard/web_ui.py",
line 269, in _render_widget
return wp.render_widget(name, ctx, options)
File "/path/to/bloodhound/bloodhound_dashboard/bhdashboard/util.py",
line 132, in widget_name_checker
return f(self, name, *args, **kwargs)
File
"/path/to/bloodhound/bloodhound_dashboard/bhdashboard/widgets/query.py",
line 100, in render_widget
data = qrymdl.process_request(fakereq, self.env)[1]
File
"/path/to/bloodhound/bloodhound_multiproduct/multiproduct/ticket/query.py",
line 164, in process_request
result = super(ProductQueryModule, self).process_request(req)
File "/path/to/bloodhound/trac/trac/ticket/query.py", line 968, in
process_request
return self.display_html(req, query)
File "/path/to/bloodhound/trac/trac/ticket/query.py", line 1116, in
display_html
self.env[BatchModifyModule].add_template_data(req, data, tickets)
File
"/path/to/bloodhound/bloodhound_multiproduct/multiproduct/ticket/batch.py",
line 25, in add_template_data
self.env = ProductEnvironment(global_env, k)
File
"/path/to/bloodhound/bloodhound_multiproduct/multiproduct/cache.py", line
67, in wrapper
result = user_function(*args, **kwds)
File "/path/to/bloodhound/bloodhound_multiproduct/multiproduct/env.py",
line 385, in __call__
return ComponentMeta.__call__(self, *args, **kwargs)
File "/path/to/bloodhound/trac/trac/core.py", line 140, in __call__
self.__init__(*args, **kwargs)
File "/path/to/bloodhound/trac/trac/core.py", line 107, in new_init
original_init(self, *args, **kwargs)
File "/path/to/bloodhound/bloodhound_multiproduct/multiproduct/env.py",
line 540, in __init__
raise LookupError("Missing product %s" % (product,))
LookupError: Missing product
}}}
They disappear immediately after checking out r1511730
--
Ticket URL: <https://issues.apache.org/bloodhound/ticket/596#comment:10>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker