Skip to content

Commit

Permalink
Issn loader improvements reset fail count (#7054)
Browse files Browse the repository at this point in the history
* Deactivated records should get 409 on GET requests

* Reset fail count when it is updated
  • Loading branch information
amontenegro authored Jul 22, 2024
1 parent 7c38028 commit d291c42
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,12 @@ private void recordFailure(GroupIdRecordEntity issnEntity, String notes) {

private void updateIssnEntity(GroupIdRecordEntity issnEntity, IssnData issnData) {
String currentGroupName = issnEntity.getGroupName();
String updatedGroupName = issnData.getMainTitle();

String updatedGroupName = issnData.getMainTitle();

// Clear the fail count and reason
issnEntity.setIssnLoaderFailCount(0);
issnEntity.setFailReason(null);

if(!StringUtils.equals(currentGroupName, updatedGroupName)) {
issnEntity.setGroupName(updatedGroupName);
issnEntity.setClientSourceId(orcidSource.getId());
Expand Down

0 comments on commit d291c42

Please sign in to comment.