Skip to content

Commit

Permalink
Merge pull request #243 from Health-Education-England/feat/removeUnus…
Browse files Browse the repository at this point in the history
…edDoctorsForDBConfig

feat:remove unused DoctorsForDB entity and repository
  • Loading branch information
JosephKelly authored Nov 15, 2023
2 parents 4b1f87b + d956f99 commit d6e687d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 104 deletions.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,11 @@
import uk.nhs.hee.tis.revalidation.connection.entity.AddConnectionReasonCode;
import uk.nhs.hee.tis.revalidation.connection.entity.ConnectionRequestLog;
import uk.nhs.hee.tis.revalidation.connection.entity.ConnectionRequestType;
import uk.nhs.hee.tis.revalidation.connection.entity.DoctorsForDB;
import uk.nhs.hee.tis.revalidation.connection.entity.GmcResponseCode;
import uk.nhs.hee.tis.revalidation.connection.entity.HideConnectionLog;
import uk.nhs.hee.tis.revalidation.connection.entity.RemoveConnectionReasonCode;
import uk.nhs.hee.tis.revalidation.connection.message.ConnectionMessage;
import uk.nhs.hee.tis.revalidation.connection.repository.ConnectionRepository;
import uk.nhs.hee.tis.revalidation.connection.repository.DoctorsForDBRepository;
import uk.nhs.hee.tis.revalidation.connection.repository.HideConnectionRepository;

@Slf4j
Expand All @@ -68,8 +66,6 @@ public class ConnectionService {

private final HideConnectionRepository hideRepository;

private final DoctorsForDBRepository doctorsForDbRepository;

private final RabbitTemplate rabbitTemplate;

@Value("${app.rabbit.reval.exchange}")
Expand All @@ -80,12 +76,11 @@ public class ConnectionService {

public ConnectionService(GmcClientService gmcClientService, ExceptionService exceptionService,
ConnectionRepository repository, HideConnectionRepository hideRepository,
DoctorsForDBRepository doctorsForDbRepository, RabbitTemplate rabbitTemplate) {
RabbitTemplate rabbitTemplate) {
this.gmcClientService = gmcClientService;
this.exceptionService = exceptionService;
this.repository = repository;
this.hideRepository = hideRepository;
this.doctorsForDbRepository = doctorsForDbRepository;
this.rabbitTemplate = rabbitTemplate;
}

Expand Down Expand Up @@ -153,17 +148,6 @@ public List<String> getAllHiddenConnections() {
return allConnections.stream().map(HideConnectionLog::getGmcId).collect(toList());
}

/**
* Get GMC DoctorsForDB data by GMC reference number.
*
* @param gmcReferenceNumber gmcId of the trainee
* @return GMC DoctorsForDB data of the trainee
*/
public Optional<DoctorsForDB> getDoctorsForDbByGmcId(final String gmcReferenceNumber) {
return doctorsForDbRepository
.findFirstByGmcReferenceNumberOrderBySubmissionDateDesc(gmcReferenceNumber);
}

private UpdateConnectionResponseDto processConnectionRequest(
final UpdateConnectionDto addDoctorDto,
final ConnectionRequestType connectionRequestType) {
Expand Down

0 comments on commit d6e687d

Please sign in to comment.