Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

feat: App Profile multi cluster routing support with specified cluster ids#549

Merged
Mariatta merged 3 commits into
mainfrom
multi-cluster-routing
Apr 14, 2022
Merged

feat: App Profile multi cluster routing support with specified cluster ids#549
Mariatta merged 3 commits into
mainfrom
multi-cluster-routing

Conversation

@Mariatta
Copy link
Copy Markdown
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 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
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
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
Contributor Author

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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.

3 participants