Skip to content

Commit

Permalink
Add page sizes up to 1000 (#904)
Browse files Browse the repository at this point in the history
  • Loading branch information
WithoutPants authored Oct 28, 2020
1 parent 01227ce commit 90c5a9d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions pkg/models/querybuilder_sql.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,9 @@ func getPagination(findFilter *FindFilterType) string {
} else {
perPage = *findFilter.PerPage
}
if perPage > 120 {
perPage = 120

if perPage > 1000 {
perPage = 1000
} else if perPage < 1 {
perPage = 1
}
Expand Down
1 change: 1 addition & 0 deletions ui/v2.5/src/components/Changelog/versions/v040.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* Add selective scene export.

### 🎨 Improvements
* Increase page size limit to 1000 and add new page size options.
* Add support for query URL parameter regex replacement when scraping by query URL.
* Include empty fields in isMissing filter
* Show static image on scene wall if preview video is missing.
Expand Down
2 changes: 1 addition & 1 deletion ui/v2.5/src/components/List/ListFilter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ interface IListFilterProps {
itemsSelected?: boolean;
}

const PAGE_SIZE_OPTIONS = ["20", "40", "60", "120"];
const PAGE_SIZE_OPTIONS = ["20", "40", "60", "120", "250", "500", "1000"];
const minZoom = 0;
const maxZoom = 3;

Expand Down
2 changes: 1 addition & 1 deletion ui/v2.5/src/components/SceneFilenameParser/ParserInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export const ParserInput: React.FC<IParserInputProps> = (
setPattern(pattern + field.getFieldPattern());
}

const PAGE_SIZE_OPTIONS = ["20", "40", "60", "120"];
const PAGE_SIZE_OPTIONS = ["20", "40", "60", "120", "250", "500", "1000"];

return (
<Form.Group>
Expand Down

0 comments on commit 90c5a9d

Please sign in to comment.