-
Notifications
You must be signed in to change notification settings - Fork 109
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
feat: added source_type in output while listing connections list #803
Conversation
Fixes issue: #792 data-validation connections list output is limited |
for conn_name in connections: | ||
logging.info(f"Connection Name: {conn_name}") | ||
source_type = mgr.get_connection_config(conn_name).get("source_type") |
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.
Should we also add target_type along with source? @nehanene15 any thoughts?
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.
@Raniksingh
AFAIU, connection listing implies databases whose connection details is added, we can't confirm whether it is used as target when using DVT. source_type itself should suffice, it says to which source\database connection is pointing to.
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.
Looks good! Maybe we can update this unit test to reflect the new output - https://github.com/GoogleCloudPlatform/professional-services-data-validator/blob/develop/tests/unit/test_cli_tools.py#L117
/gcbrun |
/gcbrun |
1 similar comment
/gcbrun |
/gcbrun |
/gcbrun |
1 similar comment
/gcbrun |
/gcbrun |
/gcbrun |
/gcbrun