Implement new search UI
We now have both autocomplete-based searching for quick results, as well as a full search page for a full listing of results
This commit is contained in:
parent
8b148bf1d4
commit
e9ffe0e27b
23 changed files with 649 additions and 393 deletions
|
@ -42,10 +42,11 @@ def filter_to_repos_for_user(query, username=None, namespace=None, repo_kind='im
|
|||
return Repository.select().where(Repository.id == '-1')
|
||||
|
||||
# Filter on the type of repository.
|
||||
try:
|
||||
query = query.where(Repository.kind == Repository.kind.get_id(repo_kind))
|
||||
except RepositoryKind.DoesNotExist:
|
||||
raise DataModelException('Unknown repository kind')
|
||||
if repo_kind is not None:
|
||||
try:
|
||||
query = query.where(Repository.kind == Repository.kind.get_id(repo_kind))
|
||||
except RepositoryKind.DoesNotExist:
|
||||
raise DataModelException('Unknown repository kind')
|
||||
|
||||
# Add the start ID if necessary.
|
||||
if start_id is not None:
|
||||
|
|
Reference in a new issue