mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Determine qqv mode by availability of search term
This commit is contained in:
@@ -13858,7 +13858,6 @@ export interface operations {
|
||||
* Free text search terms will be searched against the following attributes of the
|
||||
* Historys: `title`, `description`, `slug`, `tag`.
|
||||
*/
|
||||
/** @description Filtering parameters are evaluated in q/qv-mode */
|
||||
/** @description Whether all histories from other users in this Galaxy should be included. Only admins are allowed to query all histories. */
|
||||
/**
|
||||
* @deprecated
|
||||
@@ -13878,7 +13877,6 @@ export interface operations {
|
||||
sort_by?: "create_time" | "name" | "update_time" | "username";
|
||||
sort_desc?: boolean;
|
||||
search?: string | null;
|
||||
qqv_mode?: boolean | null;
|
||||
all?: boolean | null;
|
||||
deleted?: boolean | null;
|
||||
q?: string[] | null;
|
||||
|
||||
@@ -34,7 +34,6 @@ async function getData(offset: number, limit: number, search: string, sort_by: s
|
||||
const { data, headers } = await historiesQuery({
|
||||
limit,
|
||||
offset,
|
||||
qqv_mode: false,
|
||||
search,
|
||||
sort_by: sort_by as SortKeyLiteral,
|
||||
sort_desc,
|
||||
|
||||
@@ -108,12 +108,6 @@ JehaIDPathParam: Union[DecodedDatabaseIdField, LatestLiteral] = Path(
|
||||
examples=["latest"],
|
||||
)
|
||||
|
||||
QQVModeParam: bool = Query(
|
||||
default=True,
|
||||
title="Use query parameters q/qv-mode",
|
||||
description="Filtering parameters are evaluated in q/qv-mode",
|
||||
)
|
||||
|
||||
SearchQueryParam: Optional[str] = search_query_param(
|
||||
model_name="History",
|
||||
tags=query_tags,
|
||||
@@ -183,7 +177,6 @@ class FastAPIHistories:
|
||||
sort_by: HistorySortByEnum = SortByQueryParam,
|
||||
sort_desc: bool = SortDescQueryParam,
|
||||
search: Optional[str] = SearchQueryParam,
|
||||
qqv_mode: Optional[bool] = QQVModeParam,
|
||||
filter_query_params: FilterQueryParams = Depends(get_filter_query_params),
|
||||
serialization_params: SerializationParams = Depends(query_serialization_params),
|
||||
all: Optional[bool] = AllHistoriesQueryParam,
|
||||
@@ -194,7 +187,7 @@ class FastAPIHistories:
|
||||
deprecated=True, # Marked as deprecated as it seems just like '/api/histories/deleted'
|
||||
),
|
||||
) -> Union[List[AnyHistoryView], HistoryQueryResultList]:
|
||||
if qqv_mode:
|
||||
if search is None:
|
||||
return self.service.index(
|
||||
trans, serialization_params, filter_query_params, deleted_only=deleted, all_histories=all
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user