-
Notifications
You must be signed in to change notification settings - Fork 89
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
TDL-15198: Added best practices #116
Conversation
tap_shopify/streams/base.py
Outdated
@@ -127,7 +131,7 @@ def get_objects(self): | |||
|
|||
stop_time = singer.utils.now().replace(microsecond=0) | |||
date_window_size = float(Context.config.get("date_window_size", DATE_WINDOW_SIZE)) | |||
results_per_page = Context.get_results_per_page(RESULTS_PER_PAGE) | |||
# results_per_page = Context.get_results_per_page(RESULTS_PER_PAGE) |
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.
Why we added this commented code?
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.
Done, removed the line
tests/test_pagination.py
Outdated
self.API_LIMIT, | ||
self.get_properties().get('result_per_page', self.DEFAULT_RESULTS_PER_PAGE) | ||
) | ||
# minimum_record_count = stream_metadata.get( |
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 remove this commented code if not required?
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.
Removed the commented code
* added best practices * resolved pylint * test: run only pagination test * test: run only pagination test * test: run all tests * test: run all tests * test: run only paginaiton test * test: updated variable page size setting * run all the tests * made changes according to comments * Added integration test for start date and bookmark both are provided * Removed startdate&bookmark test as it's implicitly covered in bookmark test Co-authored-by: savan-chovatiya <[email protected]> Co-authored-by: KrisPersonal <[email protected]>
Description of change
Added best practices
QA steps
Risks
Rollback steps