Skip to content

Commit

Permalink
add and intalize okta feature flag (#7645)
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbywells52 authored Apr 30, 2024
1 parent 9793c9c commit daf6f4d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public class FeatureFlagsConfig {
@Setter(AccessLevel.NONE)
private final FeatureFlagRepository _repo;

private boolean oktaMigrationEnabled;
private boolean syphilisEnabled;
private boolean hivBulkUploadEnabled;
private boolean hivEnabled;
Expand All @@ -38,6 +39,7 @@ private void loadFeatureFlagsFromDB() {

private void flagMapping(String flagName, Boolean flagValue) {
switch (flagName) {
case "oktaMigrationEnabled" -> setOktaMigrationEnabled(flagValue);
case "syphilisEnabled" -> setSyphilisEnabled(flagValue);
case "hivBulkUploadEnabled" -> setHivBulkUploadEnabled(flagValue);
case "hivEnabled" -> setHivEnabled(flagValue);
Expand Down
1 change: 1 addition & 0 deletions backend/src/main/resources/application-azure-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ twilio:
enabled: true
from-number: "+14045312484"
features:
oktaMigrationEnabled: false
syphilisEnabled: false
hivBulkUploadEnabled: false
hivEnabled: false
Expand Down
1 change: 1 addition & 0 deletions backend/src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ datahub:
csv-upload-api-client: "simple_report.csvuploader"
csv-upload-api-fhir-client: "simple_report.fullelr"
features:
oktaMigrationEnabled: false
syphilisEnabled: true
hivBulkUploadEnabled: true
hivEnabled: true
Expand Down

0 comments on commit daf6f4d

Please sign in to comment.