← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1521912] [NEW] Filter instances by project name abnormally

 

Public bug reported:

When i try to filter instances by image id, status, name or ip address and so on,
it will works fine.

But i first time try to filter instances by project name or 
filter instances by project name after filter it by other options,
the result will not map my wanna and just redirect to 'admin/instances/'.

Does this conform to the query logic?

The source as follow:
         horizon/horizon/tables/views.py -> DataTableView.post

         def post(self, request, *args, **kwargs):
        # If the server side table filter changed then go back to the first
        # page of data. Otherwise GET and POST handling are the same.
        if self.handle_server_filter(request):
            return shortcuts.redirect(self.get_table().get_absolute_url())
        return self.get(request, *args, **kwargs)

** Affects: horizon
     Importance: Undecided
     Assignee: Haobo Liu (liuhaobo)
         Status: Confirmed


** Tags: filter

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1521912

Title:
  Filter instances by project name abnormally

Status in OpenStack Dashboard (Horizon):
  Confirmed

Bug description:
  When i try to filter instances by image id, status, name or ip address and so on,
  it will works fine.

  But i first time try to filter instances by project name or 
  filter instances by project name after filter it by other options,
  the result will not map my wanna and just redirect to 'admin/instances/'.

  Does this conform to the query logic?

  The source as follow:
           horizon/horizon/tables/views.py -> DataTableView.post

           def post(self, request, *args, **kwargs):
          # If the server side table filter changed then go back to the first
          # page of data. Otherwise GET and POST handling are the same.
          if self.handle_server_filter(request):
              return shortcuts.redirect(self.get_table().get_absolute_url())
          return self.get(request, *args, **kwargs)

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1521912/+subscriptions


Follow ups