Skip to content

Conversation

@TimothyDJones
Copy link

Increase default for `limit` parameter to 500.

Default is increased for `packs` and `triggertypes` to fix
GUI problem with "panel" lists for "Packs" and "Triggers"
not displaying complete data due to current limit of 100,
when many packs and/or triggers are registered in ST2.

Update fixes `st2web` issue #1034.
https://github.com/StackStorm/st2web/issues/1034

…egular datastore method. Specifically, support use of `limit` and `offset` parameters.
Default is increased for `packs` and `triggertypes` to fix
GUI problem with "panel" lists for "Packs" and "Triggers"
not displaying complete data due to current limit of 100,
when many packs and/or triggers are registered in ST2.

Update fixes `st2web` issue StackStorm#1034.
StackStorm/st2web#1034
@pull-request-size pull-request-size bot added the size/S PR that changes 10-29 lines. Very easy to review. label Oct 31, 2025
@fdrab
Copy link
Contributor

fdrab commented Nov 1, 2025

isn't this a configurable parameter in the configs?

# Maximum limit (page size) argument which can be specified by the user in a query string.
max_page_size = 100

##################################

def list_values(self, local=True, prefix=None, limit=None, offset=None):
def list_values(self, local=True, prefix=None, limit=None, offset=0):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is for datastore items. what are you trying to do here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/S PR that changes 10-29 lines. Very easy to review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants