diff --git a/src/main/webapp/app/views/sideboxes/furtherFilterBy/furtherFilterByDegreeDate.html b/src/main/webapp/app/views/sideboxes/furtherFilterBy/furtherFilterByDegreeDate.html
index 4b8acb0052..cac0a5ac16 100644
--- a/src/main/webapp/app/views/sideboxes/furtherFilterBy/furtherFilterByDegreeDate.html
+++ b/src/main/webapp/app/views/sideboxes/furtherFilterBy/furtherFilterByDegreeDate.html
@@ -1,20 +1,20 @@
diff --git a/src/main/webapp/app/views/sideboxes/furtherFilterBy/furtherFilterByDegreeDateList.html b/src/main/webapp/app/views/sideboxes/furtherFilterBy/furtherFilterByDegreeDateList.html
new file mode 100644
index 0000000000..b258c2db94
--- /dev/null
+++ b/src/main/webapp/app/views/sideboxes/furtherFilterBy/furtherFilterByDegreeDateList.html
@@ -0,0 +1,10 @@
+
diff --git a/src/main/webapp/tests/mocks/models/mockSubmission.js b/src/main/webapp/tests/mocks/models/mockSubmission.js
index 49fdc00d95..4fddc9ab1f 100644
--- a/src/main/webapp/tests/mocks/models/mockSubmission.js
+++ b/src/main/webapp/tests/mocks/models/mockSubmission.js
@@ -13,6 +13,7 @@ var dataSubmission1 = {
customActionValues: [],
depositURL: "",
fieldValues: [],
+ columnValues: [],
organization: {
id: 1,
acceptsSubmissions: true,
@@ -73,6 +74,7 @@ var dataSubmission2 = {
customActionValues: [],
depositURL: "",
fieldValues: [],
+ columnValues: [],
organization: {
id: 2,
acceptsSubmissions: false,
@@ -124,6 +126,7 @@ var dataSubmission3 = {
customActionValues: [],
depositURL: "",
fieldValues: [],
+ columnValues: [],
organization: {
id: 1,
acceptsSubmissions: true,
@@ -184,6 +187,7 @@ var dataSubmission4 = {
customActionValues: [],
depositURL: "",
fieldValues: [],
+ columnValues: [],
organization: {
id: 1,
acceptsSubmissions: true,
@@ -225,6 +229,7 @@ var dataSubmission5 = {
customActionValues: [],
depositURL: "",
fieldValues: [],
+ columnValues: [],
organization: {
id: 1,
acceptsSubmissions: true,
@@ -266,6 +271,7 @@ var dataSubmission6 = {
customActionValues: [],
depositURL: "",
fieldValues: [],
+ columnValues: [],
organization: {
id: 2,
acceptsSubmissions: false,
diff --git a/src/main/webapp/tests/unit/controllers/settings/organizationManagementControllerTest.js b/src/main/webapp/tests/unit/controllers/settings/organizationManagementControllerTest.js
index 06d112f342..6891a29554 100644
--- a/src/main/webapp/tests/unit/controllers/settings/organizationManagementControllerTest.js
+++ b/src/main/webapp/tests/unit/controllers/settings/organizationManagementControllerTest.js
@@ -244,6 +244,7 @@ describe("controller: OrganizationManagementController", function () {
spyOn(AccordionService, "closeAll");
spyOn(OrganizationRepo, "reorderWorkflowSteps");
+ scope.selectedOrganization = mockOrganization(q);
scope.reorderWorkflowStepDown(1);
expect(AccordionService.closeAll).toHaveBeenCalled();
@@ -253,6 +254,7 @@ describe("controller: OrganizationManagementController", function () {
spyOn(AccordionService, "closeAll");
spyOn(OrganizationRepo, "reorderWorkflowSteps");
+ scope.selectedOrganization = mockOrganization(q);
scope.reorderWorkflowStepUp(1);
expect(AccordionService.closeAll).toHaveBeenCalled();
diff --git a/src/main/webapp/tests/unit/controllers/submission/submissionListControllerTest.js b/src/main/webapp/tests/unit/controllers/submission/submissionListControllerTest.js
index 2e283c3070..d1f412806b 100644
--- a/src/main/webapp/tests/unit/controllers/submission/submissionListControllerTest.js
+++ b/src/main/webapp/tests/unit/controllers/submission/submissionListControllerTest.js
@@ -352,8 +352,8 @@ describe("controller: SubmissionListController", function () {
expect(scope.columns.length).toBe(1);
});
it("displaySubmissionProperty should return a value", function () {
- var row = {};
- var column = { inputType: mockInputType(q) };
+ var row = { columnValues: [] };
+ var column = { inputType: mockInputType(q), id: 1 };
scope.displaySubmissionProperty(row, column);
@@ -399,8 +399,8 @@ describe("controller: SubmissionListController", function () {
});
it("getSubmissionProperty should return a property", function () {
var response;
- var row = { assignee: mockUser(q) };
- var column = { valuePath: [ "assignee" ] };
+ var row = { assignee: mockUser(q), columnValues: [] };
+ var column = { valuePath: [ "assignee" ], id: 1 };
response = scope.getSubmissionProperty(row, column);
expect(response).toEqual(row.assignee);
diff --git a/src/test/java/org/tdl/vireo/model/EmailRecipientContactTest.java b/src/test/java/org/tdl/vireo/model/EmailRecipientContactTest.java
index ff00b906ec..53a0e6c9d4 100644
--- a/src/test/java/org/tdl/vireo/model/EmailRecipientContactTest.java
+++ b/src/test/java/org/tdl/vireo/model/EmailRecipientContactTest.java
@@ -3,6 +3,7 @@
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.mockito.ArgumentMatchers.any;
+import static org.mockito.ArgumentMatchers.anyString;
import static org.mockito.Mockito.when;
import java.util.ArrayList;
@@ -44,11 +45,12 @@ public void testGetEmails() {
fieldValues.add(fieldValue);
fieldValues.add(otherFieldValue);
fieldPredicate.setId(1L);
- fieldPredicate.setValue("notnull");
+
+ fieldPredicate.setValue("fp_value");
ReflectionTestUtils.setField(emailRecipientContact, "fieldPredicate", fieldPredicate);
- when(submission.getFieldValuesByPredicateValue(any(String.class))).thenReturn(fieldValues);
+ when(submission.getFieldValuesByPredicateValue(anyString())).thenReturn(fieldValues);
List
got = emailRecipientContact.getEmails(submission);
diff --git a/src/test/java/org/tdl/vireo/model/repo/AbstractRepoTest.java b/src/test/java/org/tdl/vireo/model/repo/AbstractRepoTest.java
index 80c272910c..184e8c5c9f 100644
--- a/src/test/java/org/tdl/vireo/model/repo/AbstractRepoTest.java
+++ b/src/test/java/org/tdl/vireo/model/repo/AbstractRepoTest.java
@@ -133,6 +133,8 @@ public abstract class AbstractRepoTest {
// WorkFlow test
protected static final String TEST_WORKFLOW_NAME = "Test Workflow";
protected static final String TEST_GLOSS = "Test Gloss";
+ protected static final String TEST_GLOSS_2 = "Test Gloss 2";
+ protected static final String TEST_GLOSS_3 = "Test Gloss 3";
protected static final String TEST_SEVERABLE_GLOSS = "Test Severable Gloss";
// Organization Category test
diff --git a/src/test/java/org/tdl/vireo/model/repo/FieldProfileRepoTest.java b/src/test/java/org/tdl/vireo/model/repo/FieldProfileRepoTest.java
index 21627b1ffe..446d9ca1d6 100644
--- a/src/test/java/org/tdl/vireo/model/repo/FieldProfileRepoTest.java
+++ b/src/test/java/org/tdl/vireo/model/repo/FieldProfileRepoTest.java
@@ -307,11 +307,11 @@ public void testInheritAndRemoveFieldProfiles() {
workflowStep = workflowStepRepo.findById(workflowStep.getId()).get();
fieldPredicate = fieldPredicateRepo.findById(fieldPredicate.getId()).get();
- FieldProfile fp2 = fieldProfileRepo.create(workflowStep, fieldPredicate2, inputType, TEST_FIELD_PROFILE_USAGE, TEST_GLOSS, TEST_FIELD_PROFILE_REPEATABLE, TEST_FIELD_PROFILE_OVERRIDEABLE, TEST_FIELD_PROFILE_ENABLED, TEST_FIELD_PROFILE_OPTIONAL, TEST_FIELD_PROFILE_FLAGGED, TEST_FIELD_PROFILE_LOGGED, TEST_FIELD_PROFILE_DEFAULT_VALUE);
+ FieldProfile fp2 = fieldProfileRepo.create(workflowStep, fieldPredicate2, inputType, TEST_FIELD_PROFILE_USAGE, TEST_GLOSS_2, TEST_FIELD_PROFILE_REPEATABLE, TEST_FIELD_PROFILE_OVERRIDEABLE, TEST_FIELD_PROFILE_ENABLED, TEST_FIELD_PROFILE_OPTIONAL, TEST_FIELD_PROFILE_FLAGGED, TEST_FIELD_PROFILE_LOGGED, TEST_FIELD_PROFILE_DEFAULT_VALUE);
workflowStep = workflowStepRepo.findById(workflowStep.getId()).get();
fieldPredicate = fieldPredicateRepo.findById(fieldPredicate.getId()).get();
- FieldProfile fp3 = fieldProfileRepo.create(workflowStep, fieldPredicate3, inputType, TEST_FIELD_PROFILE_USAGE, TEST_GLOSS, TEST_FIELD_PROFILE_REPEATABLE, TEST_FIELD_PROFILE_OVERRIDEABLE, TEST_FIELD_PROFILE_ENABLED, TEST_FIELD_PROFILE_OPTIONAL, TEST_FIELD_PROFILE_FLAGGED, TEST_FIELD_PROFILE_LOGGED, TEST_FIELD_PROFILE_DEFAULT_VALUE);
+ FieldProfile fp3 = fieldProfileRepo.create(workflowStep, fieldPredicate3, inputType, TEST_FIELD_PROFILE_USAGE, TEST_GLOSS_3, TEST_FIELD_PROFILE_REPEATABLE, TEST_FIELD_PROFILE_OVERRIDEABLE, TEST_FIELD_PROFILE_ENABLED, TEST_FIELD_PROFILE_OPTIONAL, TEST_FIELD_PROFILE_FLAGGED, TEST_FIELD_PROFILE_LOGGED, TEST_FIELD_PROFILE_DEFAULT_VALUE);
workflowStep = workflowStepRepo.findById(workflowStep.getId()).get();
fieldPredicate = fieldPredicateRepo.findById(fieldPredicate.getId()).get();
@@ -458,11 +458,11 @@ public void testReorderAggregateFieldProfiles() throws WorkflowStepNonOverrideab
workflowStep = workflowStepRepo.findById(workflowStep.getId()).get();
fieldPredicate = fieldPredicateRepo.findById(fieldPredicate.getId()).get();
- FieldProfile fp2 = fieldProfileRepo.create(workflowStep, fieldPredicate2, inputType, TEST_FIELD_PROFILE_USAGE, TEST_GLOSS, TEST_FIELD_PROFILE_REPEATABLE, TEST_FIELD_PROFILE_OVERRIDEABLE, TEST_FIELD_PROFILE_ENABLED, TEST_FIELD_PROFILE_OPTIONAL, TEST_FIELD_PROFILE_FLAGGED, TEST_FIELD_PROFILE_LOGGED, TEST_FIELD_PROFILE_DEFAULT_VALUE);
+ FieldProfile fp2 = fieldProfileRepo.create(workflowStep, fieldPredicate2, inputType, TEST_FIELD_PROFILE_USAGE, TEST_GLOSS_2, TEST_FIELD_PROFILE_REPEATABLE, TEST_FIELD_PROFILE_OVERRIDEABLE, TEST_FIELD_PROFILE_ENABLED, TEST_FIELD_PROFILE_OPTIONAL, TEST_FIELD_PROFILE_FLAGGED, TEST_FIELD_PROFILE_LOGGED, TEST_FIELD_PROFILE_DEFAULT_VALUE);
workflowStep = workflowStepRepo.findById(workflowStep.getId()).get();
fieldPredicate = fieldPredicateRepo.findById(fieldPredicate.getId()).get();
- FieldProfile fp3 = fieldProfileRepo.create(workflowStep, fieldPredicate3, inputType, TEST_FIELD_PROFILE_USAGE, TEST_GLOSS, TEST_FIELD_PROFILE_REPEATABLE, TEST_FIELD_PROFILE_OVERRIDEABLE, TEST_FIELD_PROFILE_ENABLED, TEST_FIELD_PROFILE_OPTIONAL, TEST_FIELD_PROFILE_FLAGGED, TEST_FIELD_PROFILE_LOGGED, TEST_FIELD_PROFILE_DEFAULT_VALUE);
+ FieldProfile fp3 = fieldProfileRepo.create(workflowStep, fieldPredicate3, inputType, TEST_FIELD_PROFILE_USAGE, TEST_GLOSS_3, TEST_FIELD_PROFILE_REPEATABLE, TEST_FIELD_PROFILE_OVERRIDEABLE, TEST_FIELD_PROFILE_ENABLED, TEST_FIELD_PROFILE_OPTIONAL, TEST_FIELD_PROFILE_FLAGGED, TEST_FIELD_PROFILE_LOGGED, TEST_FIELD_PROFILE_DEFAULT_VALUE);
workflowStep = workflowStepRepo.findById(workflowStep.getId()).get();
fieldPredicate = fieldPredicateRepo.findById(fieldPredicate.getId()).get();
@@ -761,11 +761,11 @@ public void testMaintainFieldOrderWhenOverriding() throws HeritableModelNonOverr
workflowStep = workflowStepRepo.findById(workflowStep.getId()).get();
fieldPredicate = fieldPredicateRepo.findById(fieldPredicate.getId()).get();
- FieldProfile fp2 = fieldProfileRepo.create(workflowStep, fieldPredicate2, inputType, TEST_FIELD_PROFILE_USAGE, TEST_GLOSS, TEST_FIELD_PROFILE_REPEATABLE, TEST_FIELD_PROFILE_OVERRIDEABLE, TEST_FIELD_PROFILE_ENABLED, TEST_FIELD_PROFILE_OPTIONAL, TEST_FIELD_PROFILE_FLAGGED, TEST_FIELD_PROFILE_LOGGED, TEST_FIELD_PROFILE_DEFAULT_VALUE);
+ FieldProfile fp2 = fieldProfileRepo.create(workflowStep, fieldPredicate2, inputType, TEST_FIELD_PROFILE_USAGE, TEST_GLOSS_2, TEST_FIELD_PROFILE_REPEATABLE, TEST_FIELD_PROFILE_OVERRIDEABLE, TEST_FIELD_PROFILE_ENABLED, TEST_FIELD_PROFILE_OPTIONAL, TEST_FIELD_PROFILE_FLAGGED, TEST_FIELD_PROFILE_LOGGED, TEST_FIELD_PROFILE_DEFAULT_VALUE);
workflowStep = workflowStepRepo.findById(workflowStep.getId()).get();
fieldPredicate = fieldPredicateRepo.findById(fieldPredicate.getId()).get();
- fieldProfileRepo.create(workflowStep, fieldPredicate3, inputType, TEST_FIELD_PROFILE_USAGE, TEST_GLOSS, TEST_FIELD_PROFILE_REPEATABLE, TEST_FIELD_PROFILE_OVERRIDEABLE, TEST_FIELD_PROFILE_ENABLED, TEST_FIELD_PROFILE_OPTIONAL, TEST_FIELD_PROFILE_FLAGGED, TEST_FIELD_PROFILE_LOGGED, TEST_FIELD_PROFILE_DEFAULT_VALUE);
+ fieldProfileRepo.create(workflowStep, fieldPredicate3, inputType, TEST_FIELD_PROFILE_USAGE, TEST_GLOSS_3, TEST_FIELD_PROFILE_REPEATABLE, TEST_FIELD_PROFILE_OVERRIDEABLE, TEST_FIELD_PROFILE_ENABLED, TEST_FIELD_PROFILE_OPTIONAL, TEST_FIELD_PROFILE_FLAGGED, TEST_FIELD_PROFILE_LOGGED, TEST_FIELD_PROFILE_DEFAULT_VALUE);
workflowStep = workflowStepRepo.findById(workflowStep.getId()).get();
fieldPredicate = fieldPredicateRepo.findById(fieldPredicate.getId()).get();
@@ -822,11 +822,11 @@ public void testMakeFieldProfileNonOverrideable() throws HeritableModelNonOverri
workflowStep = workflowStepRepo.findById(wsId).get();
fieldPredicate = fieldPredicateRepo.findById(fieldPredicate.getId()).get();
- FieldProfile fp2 = fieldProfileRepo.create(workflowStep, fieldPredicate2, inputType, TEST_FIELD_PROFILE_USAGE, TEST_GLOSS, TEST_FIELD_PROFILE_REPEATABLE, TEST_FIELD_PROFILE_OVERRIDEABLE, TEST_FIELD_PROFILE_ENABLED, TEST_FIELD_PROFILE_OPTIONAL, TEST_FIELD_PROFILE_FLAGGED, TEST_FIELD_PROFILE_LOGGED, TEST_FIELD_PROFILE_DEFAULT_VALUE);
+ FieldProfile fp2 = fieldProfileRepo.create(workflowStep, fieldPredicate2, inputType, TEST_FIELD_PROFILE_USAGE, TEST_GLOSS_2, TEST_FIELD_PROFILE_REPEATABLE, TEST_FIELD_PROFILE_OVERRIDEABLE, TEST_FIELD_PROFILE_ENABLED, TEST_FIELD_PROFILE_OPTIONAL, TEST_FIELD_PROFILE_FLAGGED, TEST_FIELD_PROFILE_LOGGED, TEST_FIELD_PROFILE_DEFAULT_VALUE);
workflowStep = workflowStepRepo.findById(wsId).get();
fieldPredicate = fieldPredicateRepo.findById(fieldPredicate.getId()).get();
- /* FieldProfile fp3 = */ fieldProfileRepo.create(workflowStep, fieldPredicate3, inputType, TEST_FIELD_PROFILE_USAGE, TEST_GLOSS, TEST_FIELD_PROFILE_REPEATABLE, TEST_FIELD_PROFILE_OVERRIDEABLE, TEST_FIELD_PROFILE_ENABLED, TEST_FIELD_PROFILE_OPTIONAL, TEST_FIELD_PROFILE_FLAGGED, TEST_FIELD_PROFILE_LOGGED, TEST_FIELD_PROFILE_DEFAULT_VALUE);
+ /* FieldProfile fp3 = */ fieldProfileRepo.create(workflowStep, fieldPredicate3, inputType, TEST_FIELD_PROFILE_USAGE, TEST_GLOSS_3, TEST_FIELD_PROFILE_REPEATABLE, TEST_FIELD_PROFILE_OVERRIDEABLE, TEST_FIELD_PROFILE_ENABLED, TEST_FIELD_PROFILE_OPTIONAL, TEST_FIELD_PROFILE_FLAGGED, TEST_FIELD_PROFILE_LOGGED, TEST_FIELD_PROFILE_DEFAULT_VALUE);
workflowStep = workflowStepRepo.findById(wsId).get();
fieldPredicate = fieldPredicateRepo.findById(fieldPredicate.getId()).get();
@@ -928,11 +928,11 @@ public void testDeleteFPAtDescendantOrgAndDuplicateWSIsDeletedToo() throws Herit
workflowStep = workflowStepRepo.findById(workflowStep.getId()).get();
fieldPredicate = fieldPredicateRepo.findById(fieldPredicate.getId()).get();
- /* FieldProfile fp2 = */ fieldProfileRepo.create(workflowStep, fieldPredicate2, inputType, TEST_FIELD_PROFILE_USAGE, TEST_GLOSS, TEST_FIELD_PROFILE_REPEATABLE, TEST_FIELD_PROFILE_OVERRIDEABLE, TEST_FIELD_PROFILE_ENABLED, TEST_FIELD_PROFILE_OPTIONAL, TEST_FIELD_PROFILE_FLAGGED, TEST_FIELD_PROFILE_LOGGED, TEST_FIELD_PROFILE_DEFAULT_VALUE);
+ /* FieldProfile fp2 = */ fieldProfileRepo.create(workflowStep, fieldPredicate2, inputType, TEST_FIELD_PROFILE_USAGE, TEST_GLOSS_2, TEST_FIELD_PROFILE_REPEATABLE, TEST_FIELD_PROFILE_OVERRIDEABLE, TEST_FIELD_PROFILE_ENABLED, TEST_FIELD_PROFILE_OPTIONAL, TEST_FIELD_PROFILE_FLAGGED, TEST_FIELD_PROFILE_LOGGED, TEST_FIELD_PROFILE_DEFAULT_VALUE);
workflowStep = workflowStepRepo.findById(workflowStep.getId()).get();
fieldPredicate = fieldPredicateRepo.findById(fieldPredicate.getId()).get();
- /* FieldProfile fp3 = */ fieldProfileRepo.create(workflowStep, fieldPredicate3, inputType, TEST_FIELD_PROFILE_USAGE, TEST_GLOSS, TEST_FIELD_PROFILE_REPEATABLE, TEST_FIELD_PROFILE_OVERRIDEABLE, TEST_FIELD_PROFILE_ENABLED, TEST_FIELD_PROFILE_OPTIONAL, TEST_FIELD_PROFILE_FLAGGED, TEST_FIELD_PROFILE_LOGGED, TEST_FIELD_PROFILE_DEFAULT_VALUE);
+ /* FieldProfile fp3 = */ fieldProfileRepo.create(workflowStep, fieldPredicate3, inputType, TEST_FIELD_PROFILE_USAGE, TEST_GLOSS_3, TEST_FIELD_PROFILE_REPEATABLE, TEST_FIELD_PROFILE_OVERRIDEABLE, TEST_FIELD_PROFILE_ENABLED, TEST_FIELD_PROFILE_OPTIONAL, TEST_FIELD_PROFILE_FLAGGED, TEST_FIELD_PROFILE_LOGGED, TEST_FIELD_PROFILE_DEFAULT_VALUE);
workflowStep = workflowStepRepo.findById(workflowStep.getId()).get();
fieldPredicate = fieldPredicateRepo.findById(fieldPredicate.getId()).get();
diff --git a/src/test/java/org/tdl/vireo/service/SystemDataLoaderTest.java b/src/test/java/org/tdl/vireo/service/SystemDataLoaderTest.java
index 815d03671f..4b9fa9f5ef 100644
--- a/src/test/java/org/tdl/vireo/service/SystemDataLoaderTest.java
+++ b/src/test/java/org/tdl/vireo/service/SystemDataLoaderTest.java
@@ -274,7 +274,7 @@ private void assertWorkflowStep(boolean isReload) {
? "Incorrect number of workflowStep found after reload"
: "Incorrect number of workflowStep found");
-
+
assertWorkflowStepHeritableProperties(new int[] { 3, 18 }, "Personal Information", isReload);
assertWorkflowStepHeritableProperties(new int[] { 0, 2 }, "License Agreement", isReload);
assertWorkflowStepHeritableProperties(new int[] { 4, 13 }, "Document Information", isReload);
@@ -480,19 +480,19 @@ private void assertSubmissionStatusState(SubmissionState expected, SubmissionSta
private void assertSubmissionStatusTransitions(String[] expected, SubmissionStatus actual, boolean isReload) {
assertEquals(expected.length, actual.getTransitionSubmissionStatuses().size(),
- isReload
+ isReload
? String.format("%s submission status has incorrect number of transition status after reload", actual.getName())
: String.format("%s submission status has incorrect number of transition status", actual.getName()));
for (String name : expected) {
assertTrue(actual.getTransitionSubmissionStatuses().stream().anyMatch(ts -> ts.getName().equals(name)),
- isReload
+ isReload
? String.format("%s submission status is missing %s transition status after reload", actual.getName(), name)
: String.format("%s submission status is missing %s transition status", actual.getName(), name));
}
}
private void assertSubmissionListColumn(boolean isReload) {
- assertEquals(61, submissionListColumnRepo.count(),
+ assertEquals(63, submissionListColumnRepo.count(),
isReload
? "Incorrect number of submissionListColumn found after reload"
: "Incorrect number of submissionListColumn found");