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:
WithoutPants
2023-03-16 09:08:21 +11:00
committed by GitHub
parent ac67d640db
commit 58852f86fe
10 changed files with 130 additions and 75 deletions

View File

@@ -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>) => {