[TDL-22683] Use Date Windowing Pagination#113
Conversation
1) Removed endpoint params from activities generator. 2) Overrode modify_reques_params method for Loan Transactions generator. 3) Removed the method _all_fetch_batch_steps from multithreaded bookmark generator. 4) Modified the implementation for _all_fetch_batch_steps method in multithreaded offset generator to include date windowing. 5) Added new method modify_reques_params in multithreaded offset generator.
… Added 1 second in the BEFORE value.
bbeec12 to
c4232d6
Compare
c4232d6 to
5b691a9
Compare
- Minor refactoring
- Revert previous integration test changes
tap_mambu/helpers/client.py
Outdated
There was a problem hiding this comment.
Maintain the spacing as on previous lines
| @@ -1,35 +0,0 @@ | |||
| """ | |||
There was a problem hiding this comment.
Any reason to remove these tests completely?
There was a problem hiding this comment.
Removed it because it was increasing execution time and not adding much value to the test suite.
tests/test_pagination.py
Outdated
There was a problem hiding this comment.
Are there only a few records, or do we have no records at all? If we do have a small number of records, we can reduce the page limit and test this specific stream.
There was a problem hiding this comment.
window_size implementation fixed the issue, removing clients from untestable_streams().
| self.base_url = base_url | ||
| self.page_size = page_size | ||
| try: | ||
| self.window_size = int(float(window_size)) if window_size else DEFAULT_DATE_WINDOW_SIZE |
There was a problem hiding this comment.
Can't we do integer typecasting directly instead of, converting to float first?
There was a problem hiding this comment.
>>> int("10.0")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: invalid literal for int() with base 10: '10.0'
Description of change
Manual QA steps
Risks
Rollback steps