-
Notifications
You must be signed in to change notification settings - Fork 13
TDL-21232 fix replace error #22
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
Conversation
@@ -15,7 +15,7 @@ | |||
], | |||
extras_require={ | |||
'dev': [ | |||
'ipdb==0.11', | |||
'ipdb', |
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.
Any reason to remove specific ipdb version?
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.
tap_impact/sync.py
Outdated
model_id = config.get('model_id', '') | ||
process_child = True | ||
# conversion_paths endpoint requires model_id tap config param | ||
if child_stream_name == 'conversion_paths' and model_id == '': | ||
if child_stream_name == 'conversion_paths' and not model_id: | ||
process_child = False | ||
if process_child: | ||
write_schema(catalog, child_stream_name) |
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.
Instead for setting defualt value to empty string at L#290, can we simply set it to None
?
model_id = config.get('model_id', '') | |
process_child = True | |
# conversion_paths endpoint requires model_id tap config param | |
if child_stream_name == 'conversion_paths' and model_id == '': | |
if child_stream_name == 'conversion_paths' and not model_id: | |
process_child = False | |
if process_child: | |
write_schema(catalog, child_stream_name) | |
model_id = config.get('model_id') | |
process_child = True | |
# conversion_paths endpoint requires model_id tap config param | |
if child_stream_name == 'conversion_paths' and not model_id: | |
process_child = False | |
if process_child: | |
write_schema(catalog, child_stream_name) |
Description of change
Tap is throwing below error when user edits the connection page and doesn't configure the model_id field. Somehow the app is setting the
model_id
toNone
in config json when user edits the connection page.Manual QA steps
Risks
Rollback steps