← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1331429] [NEW] hard coded urls should go away

 

Public bug reported:

https://github.com/openstack/horizon/blob/master/openstack_dashboard/dashboards/admin/metering/views.py#L128

that kind of url computation should be replaced by named urls:

 def get_context_data(self, **kwargs):
        context = {'tables': self.get_tables().values()}
        url = self.request.get_full_path().replace('/report', '/report/csv')
        context['csv_url'] = url
        return context

** Affects: horizon
     Importance: Undecided
         Status: New

-- 
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/1331429

Title:
  hard coded urls should go away

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  https://github.com/openstack/horizon/blob/master/openstack_dashboard/dashboards/admin/metering/views.py#L128

  that kind of url computation should be replaced by named urls:

   def get_context_data(self, **kwargs):
          context = {'tables': self.get_tables().values()}
          url = self.request.get_full_path().replace('/report', '/report/csv')
          context['csv_url'] = url
          return context

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


Follow ups

References