-
Notifications
You must be signed in to change notification settings - Fork 1
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: update cassandra connection settings signature #180
Conversation
hip_data_tools/apache/cassandra.py
Outdated
@@ -160,6 +160,7 @@ class CassandraConnectionSettings: | |||
load_balancing_policy: LoadBalancingPolicy | |||
secrets_manager: CassandraSecretsManager | |||
ssl_options: dict = None | |||
consistency_level: Optional[ConsistencyLevel] = ConsistencyLevel.LOCAL_ONE |
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.
consistency_level: Optional[ConsistencyLevel] = ConsistencyLevel.LOCAL_ONE |
This may not work with legacy mode
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.
If we are assigning a default value to it, it doesn't need to be an Optional
right?
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.
@Rukesh-Kapuluru what is "legacy mode"? you mean python?
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.
Cassandra connection currently in use old type.Recent option is to use execution profiles.
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.
If we are assigning a default value to it, it doesn't need to be an
Optional
right?
Good catch. Removed Optional from type hint.
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.
@Rukesh-Kapuluru to make changes
Code Climate has analyzed commit 6c4b9b9 and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 0.0% (50% is the threshold). This pull request will bring the total coverage in the repository to 49.6% (0.0% change). View more on Code Climate. |
hip_data_tools/apache/cassandra.py
Outdated
@@ -160,6 +160,7 @@ class CassandraConnectionSettings: | |||
load_balancing_policy: LoadBalancingPolicy | |||
secrets_manager: CassandraSecretsManager | |||
ssl_options: dict = None | |||
consistency_level: Optional[ConsistencyLevel] = ConsistencyLevel.LOCAL_ONE |
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.
Cassandra connection currently in use old type.Recent option is to use execution profiles.
What changes are proposed in this PR?
How was this tested?