Skip to content

Commit

Permalink
Merge pull request #309 from bcgov/feature/activationFix
Browse files Browse the repository at this point in the history
EDX API reviewer fix
  • Loading branch information
arcshiftsolutions authored Dec 5, 2023
2 parents 29e88bd + e72def3 commit 4d2a959
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy-to.openshift-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ env:
TARGET_ENV: "prod"
MIN_REPLICAS: "3"
MAX_REPLICAS: "3"
MIN_CPU: "75m"
MAX_CPU: "150m"
MIN_MEM: "400Mi"
MAX_MEM: "800Mi"
MIN_CPU: "200m"
MAX_CPU: "400m"
MIN_MEM: "800Mi"
MAX_MEM: "1Gi"

on:
# https://docs.github.com/en/actions/reference/events-that-trigger-workflows
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import ca.bc.gov.educ.api.edx.model.v1.SecureExchangeContactTypeCodeEntity;
import ca.bc.gov.educ.api.edx.model.v1.SecureExchangeEntity;
import ca.bc.gov.educ.api.edx.model.v1.SecureExchangeStatusCodeEntity;
import ca.bc.gov.educ.api.edx.props.ApplicationProperties;
import ca.bc.gov.educ.api.edx.repository.*;
import ca.bc.gov.educ.api.edx.struct.v1.SecureExchange;
import ca.bc.gov.educ.api.edx.utils.TransformUtil;
Expand Down Expand Up @@ -114,9 +115,15 @@ public void claimAllSecureExchanges(final List<UUID> secureExchangeIds, String r
final Optional<SecureExchangeEntity> curSecureExchange = this.getSecureExchangeRequestRepository().findById(secureExchangeId);
if (curSecureExchange.isPresent()) {
final SecureExchangeEntity secureExchange = curSecureExchange.get();
secureExchange.setReviewer(reviewer);
if(StringUtils.isNotEmpty(reviewer)) {
secureExchange.setReviewer(reviewer);
secureExchange.setUpdateUser(reviewer);
}else{
secureExchange.setReviewer(null);
secureExchange.setUpdateUser(ApplicationProperties.CLIENT_ID);
}
secureExchange.setUpdateDate(LocalDateTime.now());
secureExchange.setUpdateUser(reviewer);

this.secureExchangeRequestRepository.save(secureExchange);
}
}
Expand Down

0 comments on commit 4d2a959

Please sign in to comment.