Skip to content

Commit

Permalink
Ensure MOD-DI advice is shown at consolidation regardless of MOD-ECJU…
Browse files Browse the repository at this point in the history
… advice
  • Loading branch information
currycoder committed Dec 17, 2024
1 parent 82dd6fa commit 7b4a548
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 4 deletions.
15 changes: 11 additions & 4 deletions caseworker/advice/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,20 @@
NCSC_TEAM = "NCSC"
OGD_TEAMS_EXCLUDING_MOD = [
*DESNZ_TEAMS,
# MOD-DI team present here to ensure that advice given in MOD-DI Direct is consolidated by LU
MOD_DI_TEAM,
FCDO_TEAM,
NCSC_TEAM,
]
OGD_TEAMS = [
*OGD_TEAMS_EXCLUDING_MOD,
*MOD_TEAMS,
]
# Make OGD_TEAMS a set to avoid having duplicate entries for MOD-DI - advice from them should appear unconditionally
OGD_TEAMS = list(
set(
[
*OGD_TEAMS_EXCLUDING_MOD,
*MOD_TEAMS,
]
)
)

# Flags
LU_COUNTERSIGN_REQUIRED_ID = "bbf29b42-0aae-4ebc-b77a-e502ddea30a8" # /PS-IGNORE
Expand Down
22 changes: 22 additions & 0 deletions caseworker/advice/tests/test_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,28 @@ def test_get_advice_to_consolidate_unrecognized_team_raises_exception():
"team": {"alias": MOD_ECJU_TEAM, "id": "id-mod-ecju"},
},
],
"id-mod-di-approve": [
{
"id": "advice-3",
"level": "team",
"type": {"key": "approve"},
"team": {"alias": MOD_DI_TEAM, "id": "id-mod-di"},
},
{
"id": "advice-4",
"level": "user",
"type": {"key": "approve"},
"team": {"alias": MOD_DI_TEAM, "id": "id-mod-di"},
},
],
"id-mod-di-refuse": [
{
"id": "advice-4",
"level": "user",
"type": {"key": "refuse"},
"team": {"alias": MOD_DI_TEAM, "id": "id-mod-di"},
},
],
},
),
),
Expand Down

0 comments on commit 7b4a548

Please sign in to comment.