Skip to content
Snippets Groups Projects

fix: Update project fields to upper camel case + fix project date field

2 files
+ 13
10
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -11,6 +11,7 @@
**********************************************************************/
package org.eclipsefoundation.profile.helpers;
import java.time.ZoneId;
import java.util.Collections;
import java.util.List;
import java.util.Map;
@@ -71,8 +72,9 @@ public final class UserMetadataHelper {
return PeopleProject
.builder()
.setActiveDate(fullData.getActiveDate())
.setInactiveDate(fullData.getInactiveDate())
.setActiveDate(fullData.getActiveDate().toInstant().atZone(ZoneId.of("US/Eastern")).toLocalDate())
.setInactiveDate(fullData.getInactiveDate() == null ? null
: fullData.getInactiveDate().toInstant().atZone(ZoneId.of("US/Eastern")).toLocalDate())
.setEditBugs(fullData.getEditBugs() ? "1" : "0")
.setSortOrder(project.getSortOrder() == 0 ? "" : String.valueOf(project.getSortOrder()))
.setProjectName(project.getName())
@@ -105,9 +107,7 @@ public final class UserMetadataHelper {
* @return True if any match, false if there's no match
*/
public boolean userCoveredByEca(List<PeopleDocumentData> docs) {
return docs
.stream()
.anyMatch(d -> userSignedIca(d) || userSignedEca(d));
return docs.stream().anyMatch(d -> userSignedIca(d) || userSignedEca(d));
}
private boolean userSignedIca(PeopleDocumentData doc) {
Loading