Add Explore tab and query-less searching
Allows for exploration of all visible repositories, in paginated form. This change also fixes the layout of the header on different viewport sizes to be consistently a single line in height. Fixes https://jira.coreos.com/browse/QS-63
This commit is contained in:
parent
c7e439f593
commit
2ced523313
7 changed files with 39 additions and 30 deletions
|
@ -347,9 +347,6 @@ class ConductRepositorySearch(ApiResource):
|
|||
def get(self, parsed_args):
|
||||
""" Get a list of apps and repositories that match the specified query. """
|
||||
query = parsed_args['query']
|
||||
if not query:
|
||||
return {'results': []}
|
||||
|
||||
page = min(max(1, parsed_args['page']), 10)
|
||||
offset = (page - 1) * MAX_PER_PAGE
|
||||
limit = offset + MAX_PER_PAGE + 1
|
||||
|
|
|
@ -9,6 +9,7 @@ from endpoints.test.shared import client_with_identity
|
|||
from test.fixtures import *
|
||||
|
||||
@pytest.mark.parametrize('query', [
|
||||
(''),
|
||||
('simple'),
|
||||
('public'),
|
||||
('repository'),
|
||||
|
|
Reference in a new issue