Skip to contentSkip to conversation

analysis (i.e. interactive) mode broken?

DISCUSSION Barros Pena, Belen 3 participants 4 messages Feb 12, 2015 – Feb 13, 2015

lore
Share & tools
lore
#0 lore raw

I went to check something in analysis mode using
master:231d4a9d3d89af4b1b5f6ea439c630e4cac82079

Once Toaster is running, when you go to localhost:8000 you get the empty state of the page, even though the database I am using has builds. When I type

localhost:8000/toastergui/builds

I get an error (pasted below). Before I open anything in Bugzilla, could someone try and reproduce this to make sure it is not just me?

Thanks!

Belén

Environment:

Request Method: GET
Request URL:
http://127.0.0.1:8000/toastergui/builds/?count=10&orderby=updated%3A-&page=
1

Django Version: 1.6
Python Version: 2.7.6
Installed Applications:
('django.contrib.staticfiles', 'django.contrib.humanize',
'orm',
'toastermain',
'south',
'bldviewer',
'toastergui',
'bldcontrol')
Installed Middleware:
('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware')

Traceback:
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
114. response = wrapped_callback(request,
*callback_args, **callback_kwargs)
File "/home/yocto/master/bitbake/lib/toaster/toastergui/views.py" in builds
3139. (filter_string, search_term, ordering_string) =
_search_tuple(request, Build)
File "/home/yocto/master/bitbake/lib/toaster/toastergui/views.py" in _search_tuple
216. raise BaseException("Invalid ordering model:" +
str(model) + str(invalid))

Exception Type: BaseException at /toastergui/builds/ Exception Value: Invalid ordering model:<class 'orm.models.Build'>(u'updated', ['bitbake_version', 'build_name', 'buildartifact', 'buildrequest', 'completed_on', 'cooker_log_path', 'distro', 'distro_version', 'errors_no', 'helptext_build', u'id', 'layer_version_build', 'logmessage', 'machine', 'outcome', 'package', 'project', 'started_on', 'target', 'task_build', 'timespent', 'variable_build', 'warnings_no'])

#1 lore raw

Hi Belen,

Cannot reproduce your issue on the commit you've mentioned. Tried also with an older DB that had builds in it, and with a clean one as well.

Cheers,
Mihail

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Barros Pena, Belen
Sent: Thursday, February 12, 2015 4:11 PM
To: [email protected]
Subject: [Toaster] analysis (i.e. interactive) mode broken?

I went to check something in analysis mode using
master:231d4a9d3d89af4b1b5f6ea439c630e4cac82079

Once Toaster is running, when you go to localhost:8000 you get the empty state of the page, even though the database I am using has builds. When I type

localhost:8000/toastergui/builds

I get an error (pasted below). Before I open anything in Bugzilla, could someone try and reproduce this to make sure it is not just me?

Thanks!

Belén

Environment:

Request Method: GET
Request URL:
http://127.0.0.1:8000/toastergui/builds/?count=10&orderby=updated%3A-&page=
1

Django Version: 1.6
Python Version: 2.7.6
Installed Applications:
('django.contrib.staticfiles', 'django.contrib.humanize',
'orm',
'toastermain',
'south',
'bldviewer',
'toastergui',
'bldcontrol')
Installed Middleware:
('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware')

Traceback:
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
114. response = wrapped_callback(request,
*callback_args, **callback_kwargs)
File "/home/yocto/master/bitbake/lib/toaster/toastergui/views.py" in builds
3139. (filter_string, search_term, ordering_string) =
_search_tuple(request, Build)
File "/home/yocto/master/bitbake/lib/toaster/toastergui/views.py" in _search_tuple
216. raise BaseException("Invalid ordering model:" +
str(model) + str(invalid))

Exception Type: BaseException at /toastergui/builds/ Exception Value: Invalid ordering model:<class 'orm.models.Build'>(u'updated', ['bitbake_version', 'build_name', 'buildartifact', 'buildrequest', 'completed_on', 'cooker_log_path', 'distro', 'distro_version', 'errors_no', 'helptext_build', u'id', 'layer_version_build', 'logmessage', 'machine', 'outcome', 'package', 'project', 'started_on', 'target', 'task_build', 'timespent', 'variable_build', 'warnings_no'])

--
_______________________________________________
toaster mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/toaster

#2 lore raw
In reply to Barros Pena, Belen

Please open an issue in bugzilla.

What happens here is that the browser remembers an ordering from the builds page in managed mode and tries to apply it to the interactive mode. We need to resolve this conflict somehow.

- Alex

Quoted 76 lines · Belen

I went to check something in analysis mode using
master:231d4a9d3d89af4b1b5f6ea439c630e4cac82079

Once Toaster is running, when you go to localhost:8000 you get the empty state of the page, even though the database I am using has builds. When I type

localhost:8000/toastergui/builds

I get an error (pasted below). Before I open anything in Bugzilla, could someone try and reproduce this to make sure it is not just me?

Thanks!

Belén

Environment:

Request Method: GET
Request URL:
http://127.0.0.1:8000/toastergui/builds/?count=10&orderby=updated%3A-&page=
1

Django Version: 1.6
Python Version: 2.7.6
Installed Applications:
('django.contrib.staticfiles', 'django.contrib.humanize',
'orm',
'toastermain',
'south',
'bldviewer',
'toastergui',
'bldcontrol')
Installed Middleware:
('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware')

Traceback:
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
114. response = wrapped_callback(request,
*callback_args, **callback_kwargs)
File "/home/yocto/master/bitbake/lib/toaster/toastergui/views.py" in builds
3139. (filter_string, search_term, ordering_string) =
_search_tuple(request, Build)
File "/home/yocto/master/bitbake/lib/toaster/toastergui/views.py" in _search_tuple
216. raise BaseException("Invalid ordering model:" +
str(model) + str(invalid))

Exception Type: BaseException at /toastergui/builds/ Exception Value: Invalid ordering model:<class 'orm.models.Build'>(u'updated', ['bitbake_version', 'build_name', 'buildartifact', 'buildrequest', 'completed_on', 'cooker_log_path', 'distro', 'distro_version', 'errors_no', 'helptext_build', u'id', 'layer_version_build', 'logmessage', 'machine', 'outcome', 'package', 'project', 'started_on', 'target', 'task_build', 'timespent', 'variable_build', 'warnings_no'])

--
_______________________________________________
toaster mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/toaster

Signature · 3 lines
Alex Damian
Yocto Project
SSG / OTC
#3 lore raw
Quoted 1 line · Alexandru

Please open an issue in bugzilla.

Done

https://bugzilla.yoctoproject.org/show_bug.cgi?id=7318

Quoted 105 lines

What happens here is that the browser remembers an ordering from the builds page in managed mode and tries to apply it to the interactive mode. We need to resolve this conflict somehow.

- Alex

On Thu, Feb 12, 2015 at 2:11 PM, Barros Pena, Belen <[email protected]> wrote:

I went to check something in analysis mode using
master:231d4a9d3d89af4b1b5f6ea439c630e4cac82079

Once Toaster is running, when you go to localhost:8000 you get the empty state of the page, even though the database I am using has builds. When I type

localhost:8000/toastergui/builds

I get an error (pasted below). Before I open anything in Bugzilla, could someone try and reproduce this to make sure it is not just me?

Thanks!

Belén

Environment:

Request Method: GET
Request URL:
http://127.0.0.1:8000/toastergui/builds/?count=10&orderby=updated%3A-&page
=
1

Django Version: 1.6
Python Version: 2.7.6
Installed Applications:
('django.contrib.staticfiles', 'django.contrib.humanize',
'orm',
'toastermain',
'south',
'bldviewer',
'toastergui',
'bldcontrol')
Installed Middleware:
('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware')

Traceback:
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
114. response = wrapped_callback(request,
*callback_args, **callback_kwargs)
File "/home/yocto/master/bitbake/lib/toaster/toastergui/views.py" in builds
3139. (filter_string, search_term, ordering_string) =
_search_tuple(request, Build)
File "/home/yocto/master/bitbake/lib/toaster/toastergui/views.py" in _search_tuple
216. raise BaseException("Invalid ordering model:" +
str(model) + str(invalid))

Exception Type: BaseException at /toastergui/builds/ Exception Value: Invalid ordering model:<class 'orm.models.Build'>(u'updated', ['bitbake_version', 'build_name', 'buildartifact', 'buildrequest', 'completed_on', 'cooker_log_path', 'distro', 'distro_version', 'errors_no', 'helptext_build', u'id', 'layer_version_build', 'logmessage', 'machine', 'outcome', 'package', 'project', 'started_on', 'target', 'task_build', 'timespent', 'variable_build', 'warnings_no'])

--
_______________________________________________
toaster mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/toaster

Signature · 4 lines
Alex Damian
Yocto Project

SSG / OTC