-
Notifications
You must be signed in to change notification settings - Fork 25
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
PENG-3689 - Introducing support for datasets functionality #122
Conversation
@@ -45,7 +45,7 @@ def _rateLimitHeaders(self, headers): | |||
"remaining": int(headers.get("X-RateLimit-Remaining", 100)), |
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.
In my case, I have a response that is not JSON. Currently all responses are assumed to be JSON so I needed a way to handle this
ns1/dataset.py
Outdated
:param str id: dataset id to load | ||
""" | ||
if not reload and self.data: | ||
raise DatasetException("dataset already loaded") |
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 data is already loaded does it really need to raise exception or should we make this a no-op function because the intended target condition already met?
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.
Fixed
def retrieveReport(self, rp_id, dt_id=None, callback=None, errback=None): | ||
""" | ||
Retrieves a generated report given a dataset id and a report id | ||
:return: generated report |
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.
include param types.
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.
Fixed
Not a blocker, just a nitpick: I know this isn't a pattern of this repo, but I think adding typing to all methods can be helpful, e.g.
|
No description provided.