-
Notifications
You must be signed in to change notification settings - Fork 384
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Display escalation address for teams that provide one (#3484)
* progress * Rephrase and add privacy team email. * Updated tests
- Loading branch information
Showing
6 changed files
with
22 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -509,6 +509,7 @@ def test_minimal(self): | |
'gate_type': 3, | ||
'team_name': appr_def.team_name, | ||
'gate_name': appr_def.name, | ||
'escalation_email': None, | ||
'state': 4, | ||
'requested_on': None, | ||
'responded_on': None, | ||
|
@@ -543,6 +544,7 @@ def test_maxmimal(self, mock_now): | |
'gate_type': 34, | ||
'team_name': appr_def.team_name, | ||
'gate_name': appr_def.name, | ||
'escalation_email': '[email protected]', | ||
'state': 4, | ||
'requested_on': '2022-12-14 01:02:03', | ||
'responded_on': None, | ||
|
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,6 +61,7 @@ class ApprovalFieldDef: | |
rule: str | ||
approvers: str | list[str] | ||
team_name: str | ||
escalation_email: str | None = None | ||
slo_initial_response: int = DEFAULT_SLO_LIMIT | ||
|
||
|
||
|
@@ -96,13 +97,15 @@ class ApprovalFieldDef: | |
'Privacy OT Review', | ||
core_enums.GATE_PRIVACY_ORIGIN_TRIAL, ONE_LGTM, | ||
approvers=PRIVACY_APPROVERS, team_name='Privacy', | ||
escalation_email='[email protected]', | ||
slo_initial_response=6) | ||
|
||
PrivacyShipApproval = ApprovalFieldDef( | ||
'Privacy Ship Review', | ||
'Privacy Ship Review', | ||
core_enums.GATE_PRIVACY_SHIP, ONE_LGTM, | ||
approvers=PRIVACY_APPROVERS, team_name='Privacy', | ||
escalation_email='[email protected]', | ||
slo_initial_response=6) | ||
|
||
SecurityOriginTrialApproval = ApprovalFieldDef( | ||
|
This file contains 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