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

TDL-15198: Added best practices #116

Merged
merged 14 commits into from
Sep 30, 2021
Merged

TDL-15198: Added best practices #116

merged 14 commits into from
Sep 30, 2021

Conversation

hpatel41
Copy link
Contributor

@hpatel41 hpatel41 commented Aug 10, 2021

Description of change

Added best practices

  • Updated tap-tester-v4 -> stitch-tap-tester
  • Updated pagination tests to repect 'results_per_page'

QA steps

Risks

Rollback steps

  • revert this branch

@hpatel41 hpatel41 marked this pull request as ready for review August 23, 2021 09:44
@@ -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)
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done, removed the line

self.API_LIMIT,
self.get_properties().get('result_per_page', self.DEFAULT_RESULTS_PER_PAGE)
)
# minimum_record_count = stream_metadata.get(
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed the commented code

@hpatel41 hpatel41 changed the title Added best practices TDL-15198: Added best practices Sep 10, 2021
@dbshah1212 dbshah1212 merged commit 502b400 into master Sep 30, 2021
@luandy64 luandy64 mentioned this pull request Oct 1, 2021
2 tasks
tmck-code pushed a commit to lexerdev/tap-shopify that referenced this pull request Feb 3, 2022
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants