mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 12:54:38 +03:00
Handle large and all entity queries (#3544)
* Remove upper page size limit * Batch GetMany function * Remove upper query limit from UI
This commit is contained in:
@@ -40,7 +40,6 @@ import {
|
||||
} from "@fortawesome/free-solid-svg-icons";
|
||||
import { useDebounce } from "src/hooks/debounce";
|
||||
|
||||
const maxPageSize = 1000;
|
||||
interface IListFilterProps {
|
||||
onFilterUpdate: (newFilter: ListFilterModel) => void;
|
||||
filter: ListFilterModel;
|
||||
@@ -134,11 +133,6 @@ export const ListFilter: React.FC<IListFilterProps> = ({
|
||||
return;
|
||||
}
|
||||
|
||||
// don't allow page sizes over 1000
|
||||
if (pp > maxPageSize) {
|
||||
pp = maxPageSize;
|
||||
}
|
||||
|
||||
const newFilter = cloneDeep(filter);
|
||||
newFilter.itemsPerPage = pp;
|
||||
newFilter.currentPage = 1;
|
||||
@@ -377,7 +371,6 @@ export const ListFilter: React.FC<IListFilterProps> = ({
|
||||
<Form.Control
|
||||
type="number"
|
||||
min={1}
|
||||
max={maxPageSize}
|
||||
className="text-input"
|
||||
ref={perPageInput}
|
||||
onKeyPress={(e: React.KeyboardEvent<HTMLInputElement>) => {
|
||||
|
||||
Reference in New Issue
Block a user