Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@ public HttpResponse<Response<ProgramBreedingMethodEntity>> updateProgramBreeding
}

@Put("programs/{programId}/breeding-methods/enable")
@ProgramSecured(roles = {ProgramSecuredRole.BREEDER})
// BI-1779 - Removing the ability to choose predefined methods for a program until we make the germplasm import template dynamically generated
// @ProgramSecured(roles = {ProgramSecuredRole.BREEDER})
@Secured(SecurityRule.DENY_ALL)
public HttpResponse enableSystemBreedingMethods(@PathVariable UUID programId, @Body List<UUID> systemBreedingMethodIds) throws ApiException, BadRequestException {
log.debug("enabling system breeding methods for program: "+programId);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ public void fetchMethodsForNewProgram() {
.collect(Collectors.toList())));
}

@Disabled //BI-1779 - Removing the ability to choose predefined methods for a program until we make the germplasm import template dynamically generated
@Test
public void enableSystemMethods() {
Program program = createProgram("enableProgramBM", "EBM", "ENBM");
Expand Down Expand Up @@ -498,6 +499,7 @@ public void tryDeleteProgramMethodInUse() throws ApiException {
assertThat(programMethods.stream().map(ProgramBreedingMethodEntity::getId).collect(Collectors.toList()), hasItem(createdMethod.getId()));
}

@Disabled //BI-1779 - Removing the ability to choose predefined methods for a program until we make the germplasm import template dynamically generated
@Test
public void tryDisableSystemMethodInUse() {
Program program = createProgram("tryDeleteSystemBM", "TDSBM", "TRDSBM");
Expand Down