Skip to content
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: App Profile multi cluster routing support with specified cluster ids #549

Merged
merged 3 commits into from
Apr 14, 2022

Conversation

Mariatta
Copy link
Contributor

@Mariatta Mariatta commented Mar 31, 2022

Add the multi_cluster_ids parameter to AppProfile.
It is used when the routing policy type is set to "any".

Add tests, docstrings.
Fix some typos.

Closes internal issue 213627978

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #213627978 🦕

…r ids

Add the `multi_cluster_ids` parameter to AppProfile.
It is used when the routing policy type is set to "any".

Add tests, docstrings.
Fix some typos.

Closes internal issue 213627978
@Mariatta Mariatta requested review from a team as code owners March 31, 2022 17:50
@product-auto-label product-auto-label bot added the api: bigtable Issues related to the googleapis/python-bigtable API. label Mar 31, 2022
@@ -87,6 +91,7 @@ def _modify_app_profile_helper(
assert alt_profile.description == description
assert alt_profile.routing_policy_type == routing_policy_type
assert alt_profile.cluster_id == cluster_id
assert alt_profile.multi_cluster_ids == multi_cluster_ids
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we add a few more system tests that create an app profile with multi cluster routing and ids specified, and also an update test adding or removing a cluster id?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added the test below: test_instance_create_app_profile_create_with_multi_cluster_ids

@product-auto-label product-auto-label bot added the size: l Pull request size is large. label Apr 13, 2022
@Mariatta Mariatta merged commit a0ed5b5 into main Apr 14, 2022
@Mariatta Mariatta deleted the multi-cluster-routing branch April 14, 2022 15:30
@Mariatta
Copy link
Contributor Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigtable Issues related to the googleapis/python-bigtable API. size: l Pull request size is large.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants