-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #646 from Opetushallitus/feature/OPHKIOS-15
OTR(Frontend & Backend): OPHKIOS-15 Add assurance given field to interpreter
- Loading branch information
Showing
19 changed files
with
88 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -336,6 +336,7 @@ public void testCreateInterpreter() { | |
.permissionToPublishPhone(true) | ||
.otherContactInfo("other") | ||
.permissionToPublishOtherContactInfo(false) | ||
.isAssuranceGiven(true) | ||
.street("Tulkintie 44") | ||
.postalCode("00100") | ||
.town("Helsinki") | ||
|
@@ -459,6 +460,7 @@ public void testCreateInterpreterWithExistingStudent() { | |
.permissionToPublishEmail(false) | ||
.permissionToPublishPhone(true) | ||
.permissionToPublishOtherContactInfo(false) | ||
.isAssuranceGiven(true) | ||
.regions(List.of("01")) | ||
.qualifications( | ||
List.of( | ||
|
@@ -526,6 +528,7 @@ public void testCreateInterpreterFailsForUnknownRegion() { | |
.permissionToPublishEmail(false) | ||
.permissionToPublishPhone(true) | ||
.permissionToPublishOtherContactInfo(false) | ||
.isAssuranceGiven(true) | ||
.regions(List.of("01", "This region does not exist")) | ||
.qualifications( | ||
List.of( | ||
|
@@ -569,6 +572,7 @@ public void testCreateInterpreterFailsForOnrIdAndIndividualisedMismatch() { | |
.permissionToPublishEmail(false) | ||
.permissionToPublishPhone(true) | ||
.permissionToPublishOtherContactInfo(false) | ||
.isAssuranceGiven(true) | ||
.regions(List.of("01")) | ||
.qualifications( | ||
List.of( | ||
|
@@ -674,6 +678,7 @@ public void testUpdateInterpreter() { | |
.permissionToPublishPhone(false) | ||
.otherContactInfo("[email protected]") | ||
.permissionToPublishOtherContactInfo(true) | ||
.isAssuranceGiven(true) | ||
.extraInformation("extra") | ||
.regions(List.of("01")) | ||
.build(); | ||
|
@@ -742,6 +747,7 @@ public void testUpdateInterpreterWithDuplicateRegions() { | |
.permissionToPublishPhone(false) | ||
.otherContactInfo("[email protected]") | ||
.permissionToPublishOtherContactInfo(true) | ||
.isAssuranceGiven(true) | ||
.extraInformation("extra") | ||
.regions(List.of("01", "01", "02")) | ||
.build(); | ||
|
@@ -803,6 +809,7 @@ public void testUpdateInterpreterFailsForUnknownRegion() { | |
.permissionToPublishPhone(false) | ||
.otherContactInfo("[email protected]") | ||
.permissionToPublishOtherContactInfo(true) | ||
.isAssuranceGiven(true) | ||
.extraInformation("extra") | ||
.regions(List.of("This region code does not exist")) | ||
.build(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,6 +90,16 @@ public void setup() { | |
.identityNumber("3") | ||
.email("[email protected]") | ||
.phoneNumber("+3583456789") | ||
.build(), | ||
"7", | ||
PersonalData | ||
.builder() | ||
.lastName("Ilmarinen") | ||
.firstName("Seppo") | ||
.nickName("Seppo") | ||
.identityNumber("7") | ||
.email("[email protected]") | ||
.phoneNumber("+358121234") | ||
.build() | ||
) | ||
); | ||
|
@@ -109,6 +119,7 @@ public void testOnlyPublishingPermittedAreReturned() { | |
final Interpreter interpreter4 = createInterpreter("4"); | ||
final Interpreter interpreter5 = createInterpreterDeleted(); | ||
final Interpreter interpreter6 = createInterpreter("6"); | ||
final Interpreter interpreter7 = createInterpreter("7"); | ||
|
||
final MeetingDate meetingDate = Factory.meetingDate(); | ||
entityManager.persist(meetingDate); | ||
|
@@ -118,6 +129,9 @@ public void testOnlyPublishingPermittedAreReturned() { | |
interpreter1.setOtherContactInformation("oikeustulkki.company@invalid"); | ||
interpreter2.setPermissionToPublishPhone(false); | ||
|
||
// Should be missing from public listing | ||
interpreter7.setAssuranceGiven(false); | ||
|
||
createRegion(interpreter2, "01"); | ||
createRegion(interpreter2, "02"); | ||
createRegion(interpreter3, "03"); | ||
|
@@ -149,6 +163,15 @@ public void testOnlyPublishingPermittedAreReturned() { | |
nextWeek, | ||
true | ||
); | ||
final Qualification qualification71 = createQualification( | ||
interpreter7, | ||
meetingDate, | ||
"FI", | ||
"EN", | ||
today, | ||
tomorrow, | ||
true | ||
); | ||
|
||
// Hidden, duplicate of qualification 21 | ||
createQualification(interpreter2, meetingDate, "FI", "SE", yesterday, nextWeek, true); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ export const clerkInterpreter = { | |
firstName: 'Anneli Anna', | ||
nickName: 'Anneli', | ||
email: '[email protected]', | ||
isAssuranceGiven: true, | ||
permissionToPublishEmail: true, | ||
phoneNumber: '+358401000011', | ||
permissionToPublishPhone: true, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters