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

Cot 519 fpl add extra roles #1576

Merged
merged 8 commits into from
Sep 18, 2023
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ public enum FeatureFlagEnum {
PRIVATELAW_WA_1_1("privatelaw_wa_1_1"),
EMPLOYMENT_WA_1_0("employment_wa_1_0"),
PRIVATELAW_WA_1_2("privatelaw_wa_1_2"),
ST_CIC_WA_1_0("st_cic_wa_1_0");
ST_CIC_WA_1_0("st_cic_wa_1_0"),
PUBLICLAW_WA_1_1("publiclaw_wa_1_1");

private final String value;

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
INSERT INTO flag_config (flag_name, env, service_name, status) VALUES ('publiclaw_wa_1_1', 'local', 'st_cic', 'true');
INSERT INTO flag_config (flag_name, env, service_name, status) VALUES ('publiclaw_wa_1_1', 'pr', 'st_cic', 'true');
INSERT INTO flag_config (flag_name, env, service_name, status) VALUES ('publiclaw_wa_1_1', 'aat', 'st_cic', 'false');
INSERT INTO flag_config (flag_name, env, service_name, status) VALUES ('publiclaw_wa_1_1', 'demo', 'st_cic', 'false');
INSERT INTO flag_config (flag_name, env, service_name, status) VALUES ('publiclaw_wa_1_1', 'perftest', 'st_cic', 'false');
INSERT INTO flag_config (flag_name, env, service_name, status) VALUES ('publiclaw_wa_1_1', 'ithc', 'st_cic', 'false');
INSERT INTO flag_config (flag_name, env, service_name, status) VALUES ('publiclaw_wa_1_1', 'prod', 'st_cic', 'false');
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,8 @@ import function uk.gov.hmcts.reform.orgrolemapping.domain.service.RequestMapping
rule "global_hearing_manager_judicial"
when
$f: FeatureFlag(status && flagName == FeatureFlagEnum.SSCS_HEARING_1_0.getValue())
$joh: JudicialOfficeHolder(office in (
"PUBLICLAW District Judge - Salaried", "PUBLICLAW District Judge (MC) - SPTW",
"PUBLICLAW High Court Judge - Salaried", "PUBLICLAW Circuit Judge - Salaried",
"PUBLICLAW Deputy District Judge (MC) - Fee Paid", "PUBLICLAW Deputy District Judge (MC) - Sitting in Retirement",
"PUBLICLAW Deputy District Judge - Fee Paid", "PUBLICLAW Deputy District Judge - Sitting in Retirement - Fee Paid",
"PUBLICLAW Deputy District Judge - PRFD - Fee Paid", "PUBLICLAW Deputy High Court Judge - Fee Paid",
"PUBLICLAW High Court Judge - Sitting in Retirement - Fee Paid",
"PUBLICLAW Designated Family Judge - Salaried", "PUBLICLAW District Judge (MC) - Salaried",
"PUBLICLAW Deputy Circuit Judge - Fee Paid","PUBLICLAW Recorder - Fee Paid"))
$joh: JudicialOfficeHolder( jurisdiction in ("PUBLICLAW") &&
office not in ("PUBLICLAW Magistrate - Voluntary"))
then
Map<String,JsonNode> attribute = new HashMap<>();
attribute.put("jurisdiction", JacksonUtils.convertObjectIntoJsonNode($joh.getJurisdiction()));
Expand Down
Loading