-
Notifications
You must be signed in to change notification settings - Fork 33
v2.15.1 Adding limit_response to get_tasks method #80
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we can add in a test-case to make sure that the limited_response is working (fields that shouldn't be there don't exist), that'll be perfect!
scaleapi/__init__.py
Outdated
@@ -273,6 +273,9 @@ def tasks(self, **kwargs) -> Tasklist: | |||
If true, returns a pre-signed s3 url for the | |||
attachment used to create the task. | |||
|
|||
limited_response (bool): | |||
If true, returns limited task response. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we document what fields are returned in the limited_response?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree, we can both document it in this comment section as well as document it in the Readme with more details.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it! Just updated with the new version specifying fields to be returned as comments and also added to the readme
scaleapi/__init__.py
Outdated
@@ -392,6 +397,9 @@ def get_tasks( | |||
If true, returns a pre-signed s3 url for the | |||
attachment used to create the task. | |||
|
|||
limited_response (bool): | |||
If true, returns limited task response. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably document it here too, just so people know in the future what it is instead of asking us 😆
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Pull Request Summary
Description
Added the limited_response argument to the get_tasks() method
How did you test your code?
Which of the following have you done to test your changes? Please describe the tests that you ran to verify your changes.
tests/
for the newly implemented methodstests/
to cover changes made to existing methodsChecklist
Please make sure all items in this checklist have been fulfilled before sending your PR out for review!
_version.py
(unless this PR only updates the documentation).