-
Notifications
You must be signed in to change notification settings - Fork 204
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
feat/1495 rest_client: renames JSONResponsePaginator to JSONLinkPaginator #1558
Conversation
✅ Deploy Preview for dlt-hub-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
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.
Looks good but this is a breaking change so what we need is
- JSONResponsePaginator as an alias or derive it directly from
JSONLinkPaginator
- deprecate it, I think you can deprecate classes
what are you planning to do with rest_api
? will it continue to work with old dlt
or you will bump the required version?
@willi-mueller Looks good, I agree with @rudolfix we need to deprecate JSONResponsePaginator, @rudolfix will something like this work? import warnings
class JSONLinkPaginator(BaseNextUrlPaginator):
...
class JSONResponsePaginator(JSONLinkPaginator):
def __init__(self):
warnings.warn("JSONResponsePaginator is deprecated and will be removed in version 1.0.0. Use JSONLinkPaginator instead.", DeprecationWarning, stacklevel=2)
super().__init__() |
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.
Great work, let's also deprecate the old class. See the comment above.
e4748a9
to
762dd61
Compare
Thanks! I marked the old class as deprecated and rebased onto devel. I also bumped the dlt dependency in the verified-sources because in this repo, verified-sources, the docs, examples, and tests use the new, unmerged, and thus unreleased class name. |
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.
Looks good! Thank you @willi-mueller
Description
Implements: #1495
Related Issues