Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix Issue 48466#62

Merged
labkey-alan merged 3 commits into
developLabKey/labkey-api-python:developfrom
fb_issue_48466LabKey/labkey-api-python:fb_issue_48466Copy head branch name to clipboard
Oct 9, 2023
Merged

Fix Issue 48466#62
labkey-alan merged 3 commits into
developLabKey/labkey-api-python:developfrom
fb_issue_48466LabKey/labkey-api-python:fb_issue_48466Copy head branch name to clipboard

Conversation

@labkey-alan

Copy link
Copy Markdown
Contributor

Rationale

This PR fixes Issue 48466

Related Pull Requests

  • n/a

Changes

  • select_rows: Set default max_rows to -1

select_rows: Set default max_rows to -1
@labkey-alan labkey-alan self-assigned this Oct 9, 2023
@labkey-alan labkey-alan requested a review from RosalineP October 9, 2023 19:57

@RosalineP RosalineP left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good other than the comments/questions I had! Should be simple changes that don't warrant another review, so I'm approving.

Comment thread labkey/query.py
container_path: str = None,
columns=None,
max_rows: int = None,
max_rows: int = -1,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Down on line 376, should it be if max_rows is not -1?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Seperately, should the @functools.wraps part down on line 525 be updated to -1 as well?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

For 376 - No, it needs to remain that way or we'll never pass the default value.
For 525 - Yes, good catch.

@labkey-alan labkey-alan merged commit 2164435 into develop Oct 9, 2023
@labkey-alan labkey-alan deleted the fb_issue_48466 branch October 9, 2023 21:42
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.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.