Skip to content

Commit

Permalink
search-by-aql to search-by-manager
Browse files Browse the repository at this point in the history
  • Loading branch information
ramueSVA committed Nov 18, 2024
1 parent 30e6620 commit 76eaa5c
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
@ConfigurationProperties(prefix = "feature")
public class FeatureProperties {

private boolean searchWithAql = false;
private boolean searchByManager = false;

}
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
@AllArgsConstructor
@RequestMapping(value = "/manager", produces = "application/json")
@SecurityRequirement(name = "security_auth")
@ConditionalOnProperty(value = "feature.search-with-aql", havingValue = "true")
@ConditionalOnProperty(value = "feature.search-by-manager", havingValue = "true")
public class ManagerController {

private final EhrBaseService ehrBaseService;
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,4 @@ user-service:
delete-users-cron: 0 0 5 * * *

feature:
search-with-aql: false
search-by-manager: true
2 changes: 1 addition & 1 deletion src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -208,4 +208,4 @@ user-service:
delete-users-cron: 0 0 5 * * *

feature:
search-with-aql: false
search-by-manager: false
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;

@TestPropertySource(properties = """
feature.search-with-aql = false
feature.search-by-manager = false
""")
public class ManagerControllerFeatureDisabledIT extends IntegrationTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
@AutoConfigureMockMvc
@ActiveProfiles("itest")
@TestPropertySource(properties = """
feature.search-with-aql = true
feature.search-by-manager = true
""")
public class ManagerControllerIT extends IntegrationTest {

Expand Down

0 comments on commit 76eaa5c

Please sign in to comment.