Commit 9cf374c
committed
Make default query limit configurable via query_default_limit
The default limit of 20 for content queries ({% setcontent %} and the
query DSL) was hardcoded in ContentQueryParser. Read it from the new
general/query_default_limit config key, falling back to 20 so existing
behavior is unchanged when the key is unset.
Adds a documented key in config/bolt/config.yaml and a yaml-migration
to add it to existing installations.1 parent f3f3073 commit 9cf374c
3 files changed
Lines changed: 16 additions & 2 deletions
File tree
- config/bolt
- src/Storage
- yaml-migrations
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
155 | 161 | | |
156 | 162 | | |
157 | 163 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
185 | | - | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
186 | 187 | | |
187 | 188 | | |
188 | 189 | | |
| |||
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
0 commit comments