Commit b74143b
committed
fix: consider live workflows when checking HasMoreWorkflows
Fix pagination logic to properly check for more workflows when there are
many live workflows in the cluster. Previously, HasMoreWorkflows only
checked the archive, ignoring live workflows.
- Check if current offset+limit is still within live workflows range
- If within live range, there are definitely more items
- If beyond live range, check archive with adjusted offset
- Fixes incorrect pagination when live workflows exceed offset+limit
Signed-off-by: shuangkun <[email protected]>1 parent 1d00f49 commit b74143b
1 file changed
+26
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
258 | | - | |
259 | | - | |
260 | | - | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
261 | 266 | | |
262 | | - | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
263 | 285 | | |
264 | 286 | | |
265 | 287 | | |
| |||
0 commit comments