-
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.
AKR(Frontend & Backend) OPHKIOS-16: ONR osoitelähteen valinta virkail…
…ijalle (#643) * AKR(Backend) tests for onr contact details * AKR(Backend & Frontend) ONR multiple address feature continues * AKR(Backend & Frontend) ONR multiple address feature continues * AKR(Backend & Frontend) ONR multiple address feature continues * AKR(Backend & Frontend) ONR multiple address feature continues * AKR(Backend & Frontend) ONR multiple address feature continues * AKR(Backend & Frontend) ONR multiple address feature continues * AKR(Backend & Frontend) ONR multiple address feature continues * AKR(Frontend) ONR multiple address feature continues * AKR(Frontend) ONR multiple address tests * AKR(Backend) test fixes * AKR(Backend) wrong annotation? * AKR(Frontend) edit AKR address * AKR(Frontend) small UI tweaks * AKR(Frontend) some cypress tests * AKR(Backend) address logic * Revert "Merge pull request #625 from Opetushallitus/feature/OPHAKRKEH-523" This reverts commit eb5fa08, reversing changes made to 06d5026. * AKR(Backend & Frontend) deploy commit [deploy] * Update frontend/packages/akr/public/i18n/fi-FI/translation.json Co-authored-by: Pyry Koivisto <[email protected]> * AKR(Backend & Frontend) random fixes * AKR(Backend & Frontend) review fixes and debug end point * AKR(Backend) review fix * AKR(Frontend) linter fix * AKR(Frontend) new translator add fix * AKR(Backend & Frontend) review fixes [deploy] * AKR(Backend) fix migration id --------- Co-authored-by: Pyry Koivisto <[email protected]>
- Loading branch information
Showing
43 changed files
with
1,851 additions
and
310 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
28 changes: 28 additions & 0 deletions
28
backend/akr/src/main/java/fi/oph/akr/api/dto/clerk/ClerkTranslatorAddressDTO.java
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package fi.oph.akr.api.dto.clerk; | ||
|
||
import fi.oph.akr.api.dto.translator.CommonTranslatorAddressDTO; | ||
import fi.oph.akr.onr.dto.ContactDetailsGroupSource; | ||
import fi.oph.akr.onr.dto.ContactDetailsGroupType; | ||
import fi.oph.akr.util.StringUtil; | ||
import jakarta.validation.constraints.Size; | ||
import lombok.Builder; | ||
import lombok.NonNull; | ||
|
||
@Builder | ||
public record ClerkTranslatorAddressDTO( | ||
@Size(max = 255) String street, | ||
@Size(max = 255) String postalCode, | ||
@Size(max = 255) String town, | ||
@Size(max = 255) String country, | ||
@NonNull ContactDetailsGroupSource source, | ||
@NonNull ContactDetailsGroupType type, | ||
@NonNull Boolean selected | ||
) | ||
implements CommonTranslatorAddressDTO { | ||
public ClerkTranslatorAddressDTO { | ||
street = StringUtil.sanitize(street); | ||
postalCode = StringUtil.sanitize(postalCode); | ||
town = StringUtil.sanitize(town); | ||
country = StringUtil.sanitize(country); | ||
} | ||
} |
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
13 changes: 13 additions & 0 deletions
13
backend/akr/src/main/java/fi/oph/akr/api/dto/translator/CommonTranslatorAddressDTO.java
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package fi.oph.akr.api.dto.translator; | ||
|
||
import fi.oph.akr.onr.dto.ContactDetailsGroupSource; | ||
import fi.oph.akr.onr.dto.ContactDetailsGroupType; | ||
|
||
public interface CommonTranslatorAddressDTO { | ||
String street(); | ||
String postalCode(); | ||
String town(); | ||
String country(); | ||
ContactDetailsGroupSource source(); | ||
ContactDetailsGroupType type(); | ||
} |
17 changes: 17 additions & 0 deletions
17
backend/akr/src/main/java/fi/oph/akr/api/dto/translator/TranslatorAddressDTO.java
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package fi.oph.akr.api.dto.translator; | ||
|
||
import fi.oph.akr.onr.dto.ContactDetailsGroupSource; | ||
import fi.oph.akr.onr.dto.ContactDetailsGroupType; | ||
import lombok.Builder; | ||
import lombok.NonNull; | ||
|
||
@Builder | ||
public record TranslatorAddressDTO( | ||
String street, | ||
String postalCode, | ||
String town, | ||
String country, | ||
@NonNull ContactDetailsGroupSource source, | ||
@NonNull ContactDetailsGroupType type | ||
) | ||
implements CommonTranslatorAddressDTO {} |
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
Oops, something went wrong.