-
Notifications
You must be signed in to change notification settings - Fork 21
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
Release/32 #62
Release/32 #62
Conversation
…s specific fixes and classes (WIP)
ECDDC-476 See merge request mambucom/product/ecosystem/mambu-marketplace/connectors/singer/tap-mambu!7
ECDDC-476 Added record_count to refactor See merge request mambucom/product/ecosystem/mambu-marketplace/connectors/singer/tap-mambu!9
Hi @DownstreamDataTeam, thanks for your contribution! In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement. It's all electronic and will take just minutes. |
…kback_window for the loan_transactions stream
…/32' [ECDDC-500] Lookback window bug fix See merge request mambucom/product/ecosystem/mambu-marketplace/connectors/singer/tap-mambu!10
…'release/32'" This reverts merge request !10
I was able to give this PR a look over today, and I think it seems good, structurally. The refactoring pattern of "Generator" and "Processor" isn't something we've seen before, but makes sense. The way I'm reading this is that you're trying to set up the tap extraction as a sort-of pipeline in itself to give some flexibility with handling certain "types" of each stream (Please let me know if that's not a correct understanding). I'm not ready to give a deep PR review line-by-line, but I was able to run through the tap-tester tests today, and it looks like they're failing with regard to the Tests Test
|
…s specific fixes and classes (WIP)
…kback_window for the loan_transactions stream
…'release/32'" This reverts merge request !10
This reverts commit 96475ee.
…se/32' [ECDDC-519] Refactor loan repayments stream See merge request mambucom/product/ecosystem/mambu-marketplace/connectors/singer/tap-mambu!11
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.
Sorry it took so long, I think I understand the gist and this looks good to me. Just a few comments of small potential for cleanup. I'm assuming that in general, the code will get cleaner as you move streams over to the generator/processor style. I'll start looking at what we need to get it released.
else: | ||
self.generators[0].max_bookmark_value = transformed_record[bookmark_field] | ||
|
||
if bookmark_field and (bookmark_field in transformed_record): |
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.
This can be merged with the above if
block.
if self.last_batch_size < self.limit: | ||
raise StopIteration() | ||
self.offset += self.limit | ||
# self.write_bookmark() |
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.
I think this could be deleted. Since the sorting parameter is id
and the bookmark key is a datetime
, bookmarking at this point seems like it wouldn't work out.
You did it @DownstreamDataTeam! Thank you for signing the Singer Contribution License Agreement. |
Description of change
Started refactoring the Mambu Tap, only for Loan Accounts (for the moment).
We decided on refactoring due to the nature of the changes we would need to make in order to fix a bug in Loan Accounts.
The problem there was that accrued_interest is changed constantly, but records are filtered only by modified_date (which does not update on accrued_interest changes). As such, the only solution is filtering by modified_date OR account_appraisal_date.
Manual QA steps
Risks
Rollback steps