Add catalog parameter to packages list API call
Add missed catalog=True params at environmnetns page and during pagination next/prev button check at catalog page. This allows to browse and add public apps to non-admin users on respective pages. Change-Id: I33b2a5b88975b9116f10926de1981d7d329237db Closes-Bug: #1451703
This commit is contained in:
parent
aa2d44b167
commit
6a6f2a692e
|
@ -483,6 +483,7 @@ class IndexView(list_view.ListView):
|
|||
else:
|
||||
query_params = self.get_query_params(internal_query=True)
|
||||
query_params['sort_dir'] = 'asc'
|
||||
query_params['catalog'] = True
|
||||
packages, more = pkg_api.package_list(
|
||||
self.request, filters=query_params, paginate=True,
|
||||
marker=self.get_marker(), page_size=1)
|
||||
|
|
|
@ -282,7 +282,8 @@ class ServicesTable(tables.DataTable):
|
|||
packages = []
|
||||
with api_utils.handled_exceptions(self.request):
|
||||
packages, self._more = pkg_api.package_list(
|
||||
self.request, filters={'type': 'Application'})
|
||||
self.request,
|
||||
filters={'type': 'Application', 'catalog': True})
|
||||
return json.dumps([package.to_dict() for package in packages])
|
||||
|
||||
def actions_allowed(self):
|
||||
|
|
Loading…
Reference in New Issue