Add multi-channel approver support to Google Chat App setup - #2341
Open
sshrushanth-ks wants to merge 4 commits into
Open
Add multi-channel approver support to Google Chat App setup#2341sshrushanth-ks wants to merge 4 commits into
sshrushanth-ks wants to merge 4 commits into
Conversation
-Remove duplicate FIELD_APPROVALS_SPACE_ID from record fields -Fix type annotation: any → object in _validate_service_account_dict() -Replace unsafe assert with proper CommandError error handling -Add test_multi_channel_approval_config_serialization() for multi-team coverage
-Change default channel field to chat_approvals_space_id (from approvals_channel_id) -Use space_id instead of channel_id in approvals_teams JSON for teams -Create _gchat_approvals_record_fields() for GChat-specific serialization -Update tests to verify new field naming conventions
sshrushanth-ks
marked this pull request as ready for review
September 2, 2026 12:30
sshrushanth-ks
requested review from
amangalampalli-ks,
pvagare-ks and
sali-ks
September 2, 2026 12:33
amangalampalli-ks
approved these changes
Sep 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Multi-channel approver support was added to Google Chat setup, providing feature parity with Slack.
Changes
_is_valid_space_id()with_validate_gchat_space_id()with stricter validation. Removed duplicateFIELD_APPROVALS_SPACE_IDfrom record fields. Replaced unsafeassertwith explicitCommandErrorraising. AddedCommandErrorimport.approvalsfield REQUIRED (no default). Added@property chat_approvals_space_iddelegating toapprovals.single_channel_id. Removed duplicate constants fromGChatConstants.ApprovalsConfig. Addedtest_chat_approvals_space_id_property()to verify invariant. Addedtest_multi_channel_approval_config_serialization()for multi-team coverage.