Skip to content

Conversation

@yyfamazon
Copy link

@yyfamazon yyfamazon commented Nov 3, 2025

Description

default size to 100

Issues Resolved

List any issues this PR will resolve, e.g. Closes [...].

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: yyfamazon <yyf@amazon.com>
@yyfamazon yyfamazon changed the title Default size to 100 if size is not set Default size to 100 Nov 4, 2025
Copy link
Collaborator

@rithin-pullela-aws rithin-pullela-aws left a comment

Choose a reason for hiding this comment

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

Add a high level question, can you also add change log and sign your commit to fix DCO?

# Set default size to 100 if not present in query body
query = args.query.copy() if isinstance(args.query, dict) else args.query
if isinstance(query, dict) and 'size' in query:
query['size'] = min(100, query['size'])
Copy link
Collaborator

@rithin-pullela-aws rithin-pullela-aws Nov 7, 2025

Choose a reason for hiding this comment

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

This would mean we would not be able to send a size > 100.

I believe this kind of restriction is not ideal, can we make it configurable in settings?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks like a similar PR has already been raised in #114

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants