diff --git a/CHANGELOG.md b/CHANGELOG.md index 0e40966486f..c427584637c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,15 @@ +## v2.66.1 - 2024-10-09 + +[Full Changelog](https://github.com/ORCID/ORCID-Source/compare/v2.66.0...v2.66.1) + +## v2.66.0 - 2024-10-09 + +[Full Changelog](https://github.com/ORCID/ORCID-Source/compare/v2.65.6...v2.66.0) + +### Feature + +- map check names to their workflow files to allow for searching + ## v2.65.6 - 2024-10-02 [Full Changelog](https://github.com/ORCID/ORCID-Source/compare/v2.65.5...v2.65.6) diff --git a/orcid-persistence/src/main/java/org/orcid/persistence/dao/impl/EmailDaoImpl.java b/orcid-persistence/src/main/java/org/orcid/persistence/dao/impl/EmailDaoImpl.java index a0effb50ab8..3df5afeb243 100644 --- a/orcid-persistence/src/main/java/org/orcid/persistence/dao/impl/EmailDaoImpl.java +++ b/orcid-persistence/src/main/java/org/orcid/persistence/dao/impl/EmailDaoImpl.java @@ -123,7 +123,7 @@ public void addSourceToEmail(String sourceId, String email) { @Transactional @UpdateProfileLastModified public boolean verifyEmail(String email) { - Query query = entityManager.createNativeQuery("update email set is_verified = true, is_current=true, last_modified=now() where trim(lower(email)) = trim(lower(:email))"); + Query query = entityManager.createNativeQuery("update email set is_verified = true, is_current=true, last_modified=now(), date_verified=now() where trim(lower(email)) = trim(lower(:email))"); query.setParameter("email", email); return query.executeUpdate() > 0; } diff --git a/orcid-persistence/src/main/java/org/orcid/persistence/jpa/entities/EmailEntity.java b/orcid-persistence/src/main/java/org/orcid/persistence/jpa/entities/EmailEntity.java index d9dbd1b5a8e..6977ec86502 100644 --- a/orcid-persistence/src/main/java/org/orcid/persistence/jpa/entities/EmailEntity.java +++ b/orcid-persistence/src/main/java/org/orcid/persistence/jpa/entities/EmailEntity.java @@ -3,6 +3,7 @@ import java.util.Collection; import java.util.HashMap; import java.util.Map; +import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; @@ -24,7 +25,8 @@ public class EmailEntity extends SourceAwareEntity implements OrcidAware private Boolean primary; private Boolean current; private Boolean verified; - private String visibility; + private String visibility; + private Date dateVerified; @Override @Id @@ -90,6 +92,15 @@ public String getVisibility() { public void setVisibility(String visibility) { this.visibility = visibility; } + + @Column(name = "date_verified") + public Date getDateVerified() { + return dateVerified; + } + + public void setDateVerified(Date dateVerified) { + this.dateVerified = dateVerified; + } public static Map mapByLowerCaseEmail(Collection emailEntities) { Map map = new HashMap<>(); @@ -109,5 +120,6 @@ public void clean() { visibility= null; verified = null; visibility = null; + dateVerified = null; } } \ No newline at end of file diff --git a/orcid-persistence/src/main/resources/db-master.xml b/orcid-persistence/src/main/resources/db-master.xml index c1a531b9bb3..65dfe060bf5 100644 --- a/orcid-persistence/src/main/resources/db-master.xml +++ b/orcid-persistence/src/main/resources/db-master.xml @@ -404,4 +404,5 @@ + \ No newline at end of file diff --git a/orcid-persistence/src/main/resources/db/updates/add_date_verified_to_email.xml b/orcid-persistence/src/main/resources/db/updates/add_date_verified_to_email.xml new file mode 100644 index 00000000000..2b1327cf016 --- /dev/null +++ b/orcid-persistence/src/main/resources/db/updates/add_date_verified_to_email.xml @@ -0,0 +1,14 @@ + + + + + + + + + + \ No newline at end of file