-
Notifications
You must be signed in to change notification settings - Fork 88
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-6553: Add shop info in record - (Copy of PR 73) #115
TDL-6553: Add shop info in record - (Copy of PR 73) #115
Conversation
…o TDL-6553-copy-of-add-shop-info-in-record-73
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.
Remove this function add_synthetic_keys_to_schema and hardcode the schema for new SDC fields and make sure that the tests are passing
The function add_synthetic_keys_to_schema() is adding _sdc fields to all the streams schema. If we remove it and add those fields directly in schema JSON files then we have to add those fields in newly added streams as well. eg. In newly added 3 streams as part #114 and #118 And if any new streams are added in the future, the developer needs to add these fields to the new stream schema as well. |
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 is a good tap-tester test for this change. But may want to consider adding unittests if you are going to stick with this dynamic approach.
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.
Holding off on approval, since I'm not sure about the big picture around this PR, but I'm okay with the pattern used here.
We like to hard code as much as possible for discoverability/searchability, but the risk of forgetting to add these fields in future streams as the tap is extended is a reasonable point. ✅
Added unittest for add_synthetic_keys_to_schema() function. |
* TDL:6553- Make copy of PR 73 * Resolved pylint failure * Added integration test to verify shop info fields are included * Resolved integration test failure * Resolved issue for _sdc fields inside nested fields also for some streams * Resolve pylint error * Updated integration test * TDL-6553: made proper types for field * added unittest Co-authored-by: Harsh <[email protected]> Co-authored-by: harshpatel4_crest <[email protected]> Co-authored-by: Andy Lu <[email protected]>
Description of change
TDL-6553: Add shop info to the records
QA steps
Risks
Rollback steps