Skip to content

Commit ec0676e

Browse files
authored
Merge pull request #174 from companieshouse/feature/rename-feature-flag
Rename Feature flag FEATURE_FLAG_PSC_INDIVIDUAL_FULL_RECORD_GET_081124
2 parents f94b5ff + 247d154 commit ec0676e

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

src/itest/java/uk/gov/companieshouse/pscdataapi/CucumberFeaturesRunnerIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public class CucumberFeaturesRunnerIT {
3636

3737
@DynamicPropertySource
3838
public static void setProperties(DynamicPropertyRegistry registry) {
39-
registry.add("feature.psc_individual_full_record_get", () -> true);
39+
registry.add("feature.identity_verification", () -> true);
4040
registry.add("spring.data.mongodb.uri", mongoDBContainer::getReplicaSetUrl);
4141
mongoDBContainer.start();
4242
}

src/main/java/uk/gov/companieshouse/pscdataapi/config/FeatureFlags.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public class FeatureFlags {
1111
private final boolean individualPscFullRecordAddVerificationStateEnabled;
1212

1313
public FeatureFlags(@Value("${feature.seeding_collection_enabled}") final boolean streamHookDisabled,
14-
@Value("${feature.psc_individual_full_record_get}") final boolean individualPscFullRecordGetEnabled,
14+
@Value("${feature.identity_verification}") final boolean individualPscFullRecordGetEnabled,
1515
@Value("${feature.psc_individual_full_record_add_verification_state}") final boolean individualPscFullRecordAddVerificationStateEnabled) {
1616
this.streamHookDisabled = streamHookDisabled;
1717
this.individualPscFullRecordGetEnabled = individualPscFullRecordGetEnabled;

src/main/java/uk/gov/companieshouse/pscdataapi/config/WebSecurityConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
@Configuration
2222
public class WebSecurityConfig implements WebMvcConfigurer {
2323
// feature flag marked for future removal
24-
@Value("${feature.psc_individual_full_record_get:false}")
24+
@Value("${feature.identity_verification:false}")
2525
private Boolean featurePscIndividualFullRecordGet;
2626

2727
List<String> otherAllowedAuthMethods = Arrays.asList("oauth2");

src/main/java/uk/gov/companieshouse/pscdataapi/controller/CompanyPscFullRecordGetController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import uk.gov.companieshouse.pscdataapi.service.CompanyPscService;
1515

1616
@RestController
17-
@ConditionalOnProperty(prefix = "feature", name = "psc_individual_full_record_get", havingValue = "true")
17+
@ConditionalOnProperty(prefix = "feature", name = "identity_verification", havingValue = "true")
1818
@RequestMapping(path = "/company/{company_number}/persons-with-significant-control",
1919
produces = "application/json")
2020
public class CompanyPscFullRecordGetController {

src/main/resources/application.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ spring.mvc.throw-exception-if-no-handler-found=false
2121
spring.data.jackson.default-property-inclusion=NON_NULL
2222

2323
feature.seeding_collection_enabled=${SEEDING_COLLECTION_ENABLED:false}
24-
feature.psc_individual_full_record_get=${FEATURE_FLAG_PSC_INDIVIDUAL_FULL_RECORD_GET_081124:false}
24+
feature.identity_verification=${FEATURE_FLAG_IDENTITY_VERIFICATION_081124:false}
2525
feature.psc_individual_full_record_add_verification_state=${FEATURE_FLAG_PSC_INDIVIDUAL_FULL_RECORD_ADD_VERIFICATION_STATE_180225:false}
2626

2727
server.port=${PORT:8081}

src/test/java/uk/gov/companieshouse/pscdataapi/config/WebSecurityConfigTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
@ExtendWith(SpringExtension.class)
2323
@WebMvcTest(value = CompanyPscFullRecordGetController.class,
24-
properties = {"feature.psc_individual_full_record_get=true"})
24+
properties = {"feature.identity_verification=true"})
2525
class WebSecurityConfigTest {
2626
private static final String MOCK_COMPANY_NUMBER = "1234567";
2727
private static final String MOCK_NOTIFICATION_ID = "123456789";

src/test/java/uk/gov/companieshouse/pscdataapi/controller/CompanyPscFullRecordGetControllerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
import uk.gov.companieshouse.pscdataapi.exceptions.ResourceNotFoundException;
3030
import uk.gov.companieshouse.pscdataapi.service.CompanyPscService;
3131

32-
@SpringBootTest(properties = {"feature.psc_individual_full_record_get=true"})
32+
@SpringBootTest(properties = {"feature.identity_verification=true"})
3333
@AutoConfigureMockMvc
3434
class CompanyPscFullRecordGetControllerTest {
3535

src/test/java/uk/gov/companieshouse/pscdataapi/controller/CompanyPscFullRecordGetDisabledControllerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import uk.gov.companieshouse.api.psc.Individual;
2222
import uk.gov.companieshouse.pscdataapi.service.CompanyPscService;
2323

24-
@SpringBootTest(properties = {"feature.psc_individual_full_record_get=false"}, webEnvironment = WebEnvironment.RANDOM_PORT)
24+
@SpringBootTest(properties = {"feature.identity_verification=false"}, webEnvironment = WebEnvironment.RANDOM_PORT)
2525
@AutoConfigureMockMvc
2626
class CompanyPscFullRecordGetDisabledControllerTest {
2727

0 commit comments

Comments
 (0)