Skip to content

Commit

Permalink
[Workflows] Remove gating feature variants for fully-launched opportu…
Browse files Browse the repository at this point in the history
…nities (Recidiviz/recidiviz-dashboards#7163)

Remove the following feature variants from the codebase. According to go/roadmap, these opportunities are all fully launched:

- usIdCRC
- usIdExpandedCRC
- usMeAnnualReclassificationReview
- usMeCustodyLevelReview
- usMeFurloughRelease
- usMeWorkRelease

GitOrigin-RevId: 01bde739545790f1e87da3d40517cbe457f1a554
  • Loading branch information
ryanrecidiviz authored and Helper Bot committed Feb 1, 2025
1 parent 83b9836 commit 348ce53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 36 deletions.
22 changes: 2 additions & 20 deletions apps/staff/src/RootStore/__tests__/UserStore.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -985,12 +985,6 @@ describe("feature variants", () => {
"supervisorHomepageVitals": {},
"supervisorHomepageWorkflows": {},
"usCaEnableSMS": {},
"usIdCRC": {},
"usIdExpandedCRC": {},
"usMeAnnualReclassificationReview": {},
"usMeCustodyLevelReview": {},
"usMeFurloughRelease": {},
"usMeWorkRelease": {},
"usMoOverdueRHPilot": {},
"usPaSpecialCircumstances": {},
"usTnExpiration": {},
Expand Down Expand Up @@ -1030,12 +1024,6 @@ describe("feature variants", () => {
"supervisorHomepageVitals": {},
"supervisorHomepageWorkflows": {},
"usCaEnableSMS": {},
"usIdCRC": {},
"usIdExpandedCRC": {},
"usMeAnnualReclassificationReview": {},
"usMeCustodyLevelReview": {},
"usMeFurloughRelease": {},
"usMeWorkRelease": {},
"usMoOverdueRHPilot": {},
"usPaSpecialCircumstances": {},
"usTnExpiration": {},
Expand Down Expand Up @@ -1073,12 +1061,6 @@ describe("feature variants", () => {
"supervisorHomepageVitals": {},
"supervisorHomepageWorkflows": {},
"usCaEnableSMS": {},
"usIdCRC": {},
"usIdExpandedCRC": {},
"usMeAnnualReclassificationReview": {},
"usMeCustodyLevelReview": {},
"usMeFurloughRelease": {},
"usMeWorkRelease": {},
"usMoOverdueRHPilot": {},
"usPaSpecialCircumstances": {},
"usTnExpiration": {},
Expand Down Expand Up @@ -1184,12 +1166,12 @@ describe("feature variants", () => {
runInAction(() => {
store.user = getMockUserObject({
featureVariants: { TEST: { variant: "a" } },
demoModeFeatureVariants: { usMeWorkRelease: {} },
demoModeFeatureVariants: { enableSnooze: {} },
});
});

expect(store.activeFeatureVariants).toEqual({
usMeWorkRelease: {},
enableSnooze: {},
});
});

Expand Down
16 changes: 0 additions & 16 deletions apps/staff/src/RootStore/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,9 @@ export type FeatureVariant =
| "TEST"
| "enableSnooze"
| "supervisionUnrestrictedSearch"
| "usMeWorkRelease"
| "usMeFurloughRelease"
| "usTnExpiration"
| "usTnExpirationSubmitToTomis"
| "usIdCRC"
| "usIdExpandedCRC"
| "usCaEnableSMS"
| "usMeCustodyLevelReview"
| "usMeAnnualReclassificationReview"
| "usMoOverdueRHPilot"
| "formRevertButton"
| "insightsLeadershipPageAllDistricts"
Expand Down Expand Up @@ -117,12 +111,8 @@ export type ActiveFeatureVariantRecord = Partial<
>;
export const allFeatureVariants: FeatureVariantMapping = {
TEST: {},
usMeWorkRelease: {},
usMeFurloughRelease: {},
usTnExpiration: {},
usTnExpirationSubmitToTomis: {},
usIdCRC: {},
usIdExpandedCRC: {},
usCaEnableSMS: {},
enableSnooze: {},
supervisionUnrestrictedSearch: {},
Expand All @@ -131,8 +121,6 @@ export const allFeatureVariants: FeatureVariantMapping = {
insightsLeadershipPageAllDistricts: {},
insightsOnboarding: {},
hideDenialRevert: {},
usMeCustodyLevelReview: {},
usMeAnnualReclassificationReview: {},
workflowsSupervisorSearch: {},
supervisorHomepage: {},
supervisorHomepageWorkflows: {},
Expand All @@ -154,12 +142,8 @@ export const allFeatureVariants: FeatureVariantMapping = {
export const defaultFeatureVariantsActive: Partial<FeatureVariantMapping> =
import.meta.env.VITE_DEPLOY_ENV === "production"
? {
usIdCRC: {},
usIdExpandedCRC: {},
usTnExpiration: {},
usTnExpirationSubmitToTomis: {},
usMeFurloughRelease: {},
usMeWorkRelease: {},
supervisionUnrestrictedSearch: {},
usMoOverdueRHPilot: {},
enableSnooze: {},
Expand Down

0 comments on commit 348ce53

Please sign in to comment.