Actions
Bug #1204
closedDashboard - neulozena kes
Start date:
09/06/2013
Due date:
% Done:
0%
Estimated time:
To be discussed:
Description
Nahlaseny problem od Pavla:
https://mentat.vsb.cz/dashboard?to=2013-09-06+00%3A00%3A00&from=2013-09-05+00%3A00%3A00 Unable to load data for dashboard: Stored object must be given as first argument at /usr/local/mentat/lib/Data/Cache/Folder.pm line 226 Data::Cache::Folder::cache('Data::Cache::Folder=HASH(0x7fc1a44cfc60)', 'd7076bf853a287d9833024b9f8cbdd7c', undef) called at /usr/local/mentat/lib/Mentat/Storage/Mongo/Aggregator.pm line 201 Mentat::Storage::Mongo::Aggregator::get_dashboard_data('Mentat::Storage::Mongo::Aggregator=HASH(0x7fc1985b6e80)', undef, '2013-09-05 00:00:00', '2013-09-06 00:00:00') called at /usr/local/mentat/www/hawat/lib/Hawat/Model/Dashboard.pm line 158 eval {...} called at /usr/local/mentat/www/hawat/lib/Hawat/Model/Dashboard.pm line 149 Hawat::Model::Dashboard::get_dashboard('Hawat::Model::Dashboard=HASH(0x7fc19d1e1be8)', undef, '2013-09-05 00:00:00', '2013-09-06 00:00:00') called at /usr/local/mentat/www/hawat/lib/Hawat/Controller/Dashboard.pm line 31 Hawat::Controller::Dashboard::index('Hawat::Controller::Dashboard=HASH(0x7fc19d1e1c60)', 'Hawat=HASH(0x7fc180033718)') called at /usr/share/perl5/Catalyst/Action.pm line 65 Catalyst::Action::execute('Catalyst::Action=HASH(0x7fc19ce59c10)', 'Hawat::Controller::Dashboard=HASH(0x7fc19d1e1c60)', 'Hawat=HASH(0x7fc180033718)') called at /usr/share/perl5/Catalyst.pm line 1639 eval {...} called at /usr/share/perl5/Catalyst.pm line 1639 Catalyst::execute('Hawat=HASH(0x7fc180033718)', 'Hawat::Controller::Dashboard', 'Catalyst::Action=HASH(0x7fc19ce59c10)') called at /usr/share/perl5/Catalyst/Action.pm line 60 Catalyst::Action::dispatch('Catalyst::Action=HASH(0x7fc19ce59c10)', 'Hawat=HASH(0x7fc180033718)') called at /usr/share/perl5/Catalyst/Controller.pm line 110 Catalyst::Controller::_ACTION('Hawat::Controller::Dashboard=HASH(0x7fc19d1e1c60)', 'Hawat=HASH(0x7fc180033718)') called at /usr/share/perl5/Catalyst/Action.pm line 65 Catalyst::Action::execute('Catalyst::Action=HASH(0x7fc19ce5d430)', 'Hawat::Controller::Dashboard=HASH(0x7fc19d1e1c60)', 'Hawat=HASH(0x7fc180033718)') called at /usr/share/perl5/Catalyst.pm line 1639 eval {...} called at /usr/share/perl5/Catalyst.pm line 1639 Catalyst::execute('Hawat=HASH(0x7fc180033718)', 'Hawat::Controller::Dashboard', 'Catalyst::Action=HASH(0x7fc19ce5d430)') called at /usr/share/perl5/Catalyst/Action.pm line 60 Catalyst::Action::dispatch('Catalyst::Action=HASH(0x7fc19ce5d430)', 'Hawat=HASH(0x7fc180033718)') called at /usr/share/perl5/Catalyst/Dispatcher.pm line 257 Catalyst::Dispatcher::_do_forward('Catalyst::Dispatcher=HASH(0x7fc19ce08b50)', 'forward', 'Hawat=HASH(0x7fc180033718)', '_ACTION') called at /usr/share/perl5/Catalyst/Dispatcher.pm line 237 Catalyst::Dispatcher::forward('Catalyst::Dispatcher=HASH(0x7fc19ce08b50)', 'Hawat=HASH(0x7fc180033718)', '_ACTION') called at /usr/share/perl5/Catalyst.pm line 370 Catalyst::forward('Hawat=HASH(0x7fc180033718)', '_ACTION') called at /usr/share/perl5/Catalyst/Controller.pm line 84 Catalyst::Controller::_DISPATCH('Hawat::Controller::Dashboard=HASH(0x7fc19d1e1c60)', 'Hawat=HASH(0x7fc180033718)') called at /usr/share/perl5/Catalyst/Action.pm line 65 Catalyst::Action::execute('Catalyst::Action=HASH(0x7fc19ce5d550)', 'Hawat::Controller::Dashboard=HASH(0x7fc19d1e1c60)', 'Hawat=HASH(0x7fc180033718)') called at /usr/share/perl5/Catalyst.pm line 1639 eval {...} called at /usr/share/perl5/Catalyst.pm line 1639 Catalyst::execute('Hawat=HASH(0x7fc180033718)', 'Hawat::Controller::Dashboard', 'Catalyst::Action=HASH(0x7fc19ce5d550)') called at /usr/share/perl5/Catalyst/Action.pm line 60 Catalyst::Action::dispatch('Catalyst::Action=HASH(0x7fc19ce5d550)', 'Hawat=HASH(0x7fc180033718)') called at /usr/share/perl5/Catalyst/Dispatcher.pm line 257 Catalyst::Dispatcher::_do_forward('Catalyst::Dispatcher=HASH(0x7fc19ce08b50)', 'forward', 'Hawat=HASH(0x7fc180033718)', '/dashboard/_DISPATCH') called at /usr/share/perl5/Catalyst/Dispatcher.pm line 237 Catalyst::Dispatcher::forward('Catalyst::Dispatcher=HASH(0x7fc19ce08b50)', 'Hawat=HASH(0x7fc180033718)', '/dashboard/_DISPATCH') called at /usr/share/perl5/Catalyst.pm line 370 Catalyst::forward('Hawat=HASH(0x7fc180033718)', '/dashboard/_DISPATCH') called at /usr/share/perl5/Catalyst/Dispatcher.pm line 105 Catalyst::Dispatcher::dispatch('Catalyst::Dispatcher=HASH(0x7fc19ce08b50)', 'Hawat=HASH(0x7fc180033718)') called at /usr/share/perl5/Catalyst.pm line 1587 Catalyst::dispatch('Hawat=HASH(0x7fc180033718)') called at /usr/share/perl5/Catalyst/Plugin/Static/Simple.pm line 76 Class::MOP::Class:::around('CODE(0x7fc1a0019950)', 'Hawat=HASH(0x7fc180033718)') called at /usr/lib/perl5/Class/MOP/Method/Wrapped.pm line 159 Class::MOP::Method::Wrapped::__ANON__('Hawat=HASH(0x7fc180033718)') called at /usr/lib/perl5/Class/MOP/Method/Wrapped.pm line 89 Hawat::dispatch('Hawat=HASH(0x7fc180033718)') called at /usr/share/perl5/Catalyst.pm line 1926 eval {...} called at /usr/share/perl5/Catalyst.pm line 1917 Catalyst::handle_request('Hawat', 'Apache2::RequestRec=SCALAR(0x7fc198557c00)') called at /usr/share/perl5/Catalyst.pm line 2603 Catalyst::__ANON__('Hawat', 'Apache2::RequestRec=SCALAR(0x7fc198557c00)') called at -e line 0 eval {...} called at -e line 0 No result -- ph
Updated by Jan Mach about 11 years ago
Chyba je jasna a je na radku 200 ve tride Mentat::Storage::Mongo::Aggregator. Tam se totiz vola metoda _get_dashboard_data, ktera ale pokud zadna data nevrati, tak se to stejne snazi ulozit do cache a ta pochopitelne zarve. Reseni je nasnade: osetrit pripad, kdy nejsou zadna data vracena, NEBO a to je urcite lepsi, vracet z metody _get_dashboard_data prazdny dataset (protoze to je validni, pro nejake obdobi nemusi byt data a tato skutecnost by taky mela byt zacahovana.
Updated by Radomír Orkáč about 11 years ago
- Status changed from New to Feedback
Opraveno: Vratim prazdne pole, ktere je jiz ulozeno do kese.
Jeste bylo treba osetrit vystup v Dashboard, aby se pro prazdne pole vracel vysledek: No result
R.O.
Updated by Pavel Kácha about 11 years ago
- Status changed from Feedback to Closed
Actions