Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix for pagesize and page parameters in catalogs.query_criteria() #3065

Merged
merged 2 commits into from
Jul 14, 2024

Conversation

snbianco
Copy link
Contributor

Fix bug so that the pagesize and page parameters work properly for Catalogs.query_criteria().

Also added to unit test cases to check that these are working properly.

@snbianco snbianco marked this pull request as ready for review July 10, 2024 17:52
Copy link
Member

@bsipocz bsipocz left a comment

Choose a reason for hiding this comment

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

Renaming an argument should be done with the deprecation decorator. Could you please add it? There are a couple of examples for it peppered through the modules.

@@ -222,7 +222,7 @@ def _parse_result(self, response, verbose=False, data_key='data'):
return result_table

@class_or_instance
def service_request_async(self, service, params, page_size=None, page=None, use_json=False, **kwargs):
def service_request_async(self, service, params, pagesize=None, page=None, use_json=False, **kwargs):
Copy link
Member

Choose a reason for hiding this comment

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

We should use a deprecation rename argument for this

@snbianco snbianco force-pushed the ASB-25227-catalogs-page-size branch from e1be3fe to 126ea05 Compare July 11, 2024 02:01
@bsipocz bsipocz added the mast label Jul 12, 2024
@bsipocz bsipocz added this to the v0.4.8 milestone Jul 12, 2024
Copy link
Member

@bsipocz bsipocz left a comment

Choose a reason for hiding this comment

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

Thanks!

@bsipocz bsipocz merged commit e19a779 into astropy:main Jul 14, 2024
9 checks passed
@snbianco snbianco deleted the ASB-25227-catalogs-page-size branch July 17, 2024 01:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants