[ui] The sense of "Filter" button ("Actions" table) is not clear and button doesn't work

Bug #1505665 reported by Anastasia Kuznetsova on 2015-10-13
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mistral
Low
Liat Fried

Bug Description

It is not clear how "Filter" buttons which are located in every line with actions should work.

Also when user clicks on it, he gets following error:
AttributeError at /mistral/actions/
'FilterAction' object has no attribute 'single'
Environment:

Request Method: POST
Request URL: http://IP/dashboard/mistral/actions/

Django Version: 1.8.4
Python Version: 2.7.6
Installed Applications:
['openstack_dashboard.dashboards.project',
 'openstack_dashboard.contrib.sahara.content.data_processing',
 'openstack_dashboard.dashboards.admin',
 'openstack_dashboard.dashboards.identity',
 'openstack_dashboard.dashboards.settings',
 'mistraldashboard',
 'openstack_dashboard',
 'django.contrib.contenttypes',
 'django.contrib.auth',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.humanize',
 'django_pyscss',
 'openstack_dashboard.django_pyscss_fix',
 'compressor',
 'horizon',
 'openstack_auth']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
 'horizon.middleware.HorizonMiddleware',
 'django.middleware.locale.LocaleMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware')

Traceback:
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
  132. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/decorators.py" in dec
  36. return view_func(request, *args, **kwargs)
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/decorators.py" in dec
  52. return view_func(request, *args, **kwargs)
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/decorators.py" in dec
  36. return view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/views/generic/base.py" in view
  71. return self.dispatch(request, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/views/generic/base.py" in dispatch
  89. return handler(request, *args, **kwargs)
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/tables/views.py" in post
  223. return self.get(request, *args, **kwargs)
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/tables/views.py" in get
  159. handled = self.construct_tables()
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/tables/views.py" in construct_tables
  150. handled = self.handle_table(table)
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/tables/views.py" in handle_table
  125. handled = self._tables[name].maybe_handle()
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/tables/base.py" in maybe_handle
  1651. return self.take_action(action_name, obj_id)
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/tables/base.py" in take_action
  1486. response = action.single(self, self.request, obj_id)

Exception Type: AttributeError at /mistral/actions/
Exception Value: 'FilterAction' object has no attribute 'single'

Liat Fried (liat-fried) on 2015-11-23
Changed in mistral:
assignee: nobody → Liat Fried (liat-fried)
status: New → In Progress
Lingxian Kong (kong) on 2015-12-23
Changed in mistral:
milestone: none → mitaka-2
importance: Undecided → Low
Liat Fried (liat-fried) on 2016-01-10
Changed in mistral:
status: In Progress → Fix Committed

Reviewed: https://review.openstack.org/259971
Committed: https://git.openstack.org/cgit/openstack/mistral-dashboard/commit/?id=e93c979197d2eeb91493a65211d22ddaab9f9987
Submitter: Jenkins
Branch: master

commit e93c979197d2eeb91493a65211d22ddaab9f9987
Author: Liat Fried <email address hidden>
Date: Mon Dec 21 12:11:48 2015 +0000

    Mistral-dashboard: Actions screen

    Added “Run Action” screen to each row
    which allows of a specific action execution run.

    Added "Filter Action" to actions list.

    Print screen
    http://pasteboard.co/vRURv4E.png
    http://pasteboard.co/VqKFjEw.png

    Partially implements blueprint: Actions-screen-improvements
    Closes-Bug: #1505665
    Change-Id: I359b402bbb60defe40112c7c95c7e18351277107

Changed in mistral:
status: Fix Committed → Fix Released

This issue was fixed in the openstack/mistral-dashboard 2.0.0.0b3 development milestone.

Changed in mistral:
milestone: mitaka-2 → 2.0.0
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers