Skip to content

Commit

Permalink
Merge branch 'master' into feature/forbedring_workflows
Browse files Browse the repository at this point in the history
# Conflicts:
#	apps/budpro-service/build.gradle
  • Loading branch information
rfc3092 committed Jan 29, 2024
2 parents bf24407 + 4d62b12 commit a1a4f07
Show file tree
Hide file tree
Showing 117 changed files with 1,375 additions and 2,067 deletions.
7 changes: 0 additions & 7 deletions apps/adresse-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,8 @@ test {
jvmArgs '--add-opens', 'java.base/java.lang=ALL-UNNAMED'
}

jacocoTestReport {
reports {
xml.required = true
}
}

sonarqube {
properties {
property "sonar.coverage.jacoco.xmlReportPaths", "${project.layout.buildDirectory}/reports/jacoco/test/jacocoTestReport.xml"
property "sonar.dynamicAnalysis", "reuseReports"
property "sonar.host.url", "https://sonarcloud.io"
property "sonar.java.coveragePlugin", "jacoco"
Expand Down
7 changes: 0 additions & 7 deletions apps/amelding-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,8 @@ test {
useJUnitPlatform()
}

jacocoTestReport {
reports {
xml.required = true
}
}

sonarqube {
properties {
property "sonar.coverage.jacoco.xmlReportPaths", "${project.layout.buildDirectory}/reports/jacoco/test/jacocoTestReport.xml"
property "sonar.dynamicAnalysis", "reuseReports"
property "sonar.host.url", "https://sonarcloud.io"
property "sonar.java.coveragePlugin", "jacoco"
Expand Down
7 changes: 0 additions & 7 deletions apps/app-tilgang-analyse-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,8 @@ test {
useJUnitPlatform()
}

jacocoTestReport {
reports {
xml.required = true
}
}

sonarqube {
properties {
property "sonar.coverage.jacoco.xmlReportPaths", "${project.layout.buildDirectory}/reports/jacoco/test/jacocoTestReport.xml"
property "sonar.dynamicAnalysis", "reuseReports"
property "sonar.host.url", "https://sonarcloud.io"
property "sonar.java.coveragePlugin", "jacoco"
Expand Down
7 changes: 0 additions & 7 deletions apps/arbeidsforhold-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,8 @@ test {
useJUnitPlatform()
}

jacocoTestReport {
reports {
xml.required = true
}
}

sonarqube {
properties {
property "sonar.coverage.jacoco.xmlReportPaths", "${project.layout.buildDirectory}/reports/jacoco/test/jacocoTestReport.xml"
property "sonar.dynamicAnalysis", "reuseReports"
property "sonar.host.url", "https://sonarcloud.io"
property "sonar.java.coveragePlugin", "jacoco"
Expand Down
7 changes: 0 additions & 7 deletions apps/batch-bestilling-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,8 @@ test {
useJUnitPlatform()
}

jacocoTestReport {
reports {
xml.required = true
}
}

sonarqube {
properties {
property "sonar.coverage.jacoco.xmlReportPaths", "${project.layout.buildDirectory}/reports/jacoco/test/jacocoTestReport.xml"
property "sonar.dynamicAnalysis", "reuseReports"
property "sonar.host.url", "https://sonarcloud.io"
property "sonar.java.coveragePlugin", "jacoco"
Expand Down
7 changes: 0 additions & 7 deletions apps/brreg-stub/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,8 @@ test {
useJUnitPlatform()
}

jacocoTestReport {
reports {
xml.required = true
}
}

sonarqube {
properties {
property "sonar.coverage.jacoco.xmlReportPaths", "${project.layout.buildDirectory}/reports/jacoco/test/jacocoTestReport.xml"
property "sonar.dynamicAnalysis", "reuseReports"
property "sonar.host.url", "https://sonarcloud.io"
property "sonar.java.coveragePlugin", "jacoco"
Expand Down
7 changes: 0 additions & 7 deletions apps/bruker-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,8 @@ def iTest = tasks.register("iTest", Test) {
shouldRunAfter test
}

jacocoTestReport {
reports {
xml.required = true
}
}

sonarqube {
properties {
property "sonar.coverage.jacoco.xmlReportPaths", "${project.layout.buildDirectory}/reports/jacoco/test/jacocoTestReport.xml"
property "sonar.dynamicAnalysis", "reuseReports"
property "sonar.host.url", "https://sonarcloud.io"
property "sonar.java.coveragePlugin", "jacoco"
Expand Down
8 changes: 0 additions & 8 deletions apps/budpro-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -90,16 +90,8 @@ test {
jvmArgs '--add-opens', 'java.base/java.lang=ALL-UNNAMED'
}

//jacocoTestReport {
// reports {
// xml.required = true
// }
//}

sonarqube {
properties {
//property "sonar.coverage.jacoco.xmlReportPaths", "${project.layout.buildDirectory}/reports/jacoco/test/jacocoTestReport.xml"
//property "sonar.groovy.jacoco.reportPath", "${project.layout.buildDirectory}/reports/jacoco/test/jacocoTestReport.xml"
property "sonar.dynamicAnalysis", "reuseReports"
property "sonar.host.url", "https://sonarcloud.io"
property "sonar.java.coveragePlugin", "jacoco"
Expand Down
7 changes: 0 additions & 7 deletions apps/dolly-backend/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,8 @@ test {
jvmArgs '--add-opens', 'java.base/java.lang=ALL-UNNAMED'
}

jacocoTestReport {
reports {
xml.required = true
}
}

sonarqube {
properties {
property "sonar.coverage.jacoco.xmlReportPaths", "${project.layout.buildDirectory}/reports/jacoco/test/jacocoTestReport.xml"
property "sonar.dynamicAnalysis", "reuseReports"
property "sonar.host.url", "https://sonarcloud.io"
property "sonar.java.coveragePlugin", "jacoco"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.elasticsearch.ElasticsearchDataAutoConfiguration;

@SpringBootApplication(exclude = {ElasticsearchDataAutoConfiguration.class})
@SpringBootApplication(exclude = { ElasticsearchDataAutoConfiguration.class })
public class DollyBackendApplicationStarter {
public static void main(String[] args) {

SpringApplication.run(DollyBackendApplicationStarter.class, args);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public void mapAtoB(RsDigitalKontaktdata digitalKontaktdata, DigitalKontaktdata
if (isNotBlank(digitalKontaktdata.getMobil())) {
kontaktdataRequest.setMobilOppdatert(getDato(digitalKontaktdata));
kontaktdataRequest.setMobilVerifisert(getDato(digitalKontaktdata));
kontaktdataRequest.setMobil(digdirFormatertTlfNummer(digitalKontaktdata.getMobil(), digitalKontaktdata.getLandkode()));
}
if (isNotBlank(digitalKontaktdata.getEpost())) {
kontaktdataRequest.setEpostOppdatert(getDato(digitalKontaktdata));
Expand All @@ -43,18 +44,23 @@ public void mapAtoB(RsDigitalKontaktdata digitalKontaktdata, DigitalKontaktdata
kontaktdataRequest.setSpraakOppdatert(getDato(digitalKontaktdata));
}

kontaktdataRequest.setMobil(digdirFormatertTlfNummer(digitalKontaktdata.getMobil()));
kontaktdataRequest.setEpost(isBlank(digitalKontaktdata.getEpost()) ? null : digitalKontaktdata.getEpost());
kontaktdataRequest.setSpraak(isBlank(digitalKontaktdata.getSpraak()) ? null : digitalKontaktdata.getSpraak());
kobleMaalformTilSpraak((RsDollyUtvidetBestilling) context.getProperty("bestilling"), kontaktdataRequest);
}

private String digdirFormatertTlfNummer(String mobil) {
private String digdirFormatertTlfNummer(String mobil, String landkode) {
if (isBlank(mobil)) {
return null;
}
var nummerUtenSpace = mobil.replace(" ", "");
return nummerUtenSpace.contains("+47") ? nummerUtenSpace : "+47%s".formatted(nummerUtenSpace);
if (nummerUtenSpace.contains("+")) {
return nummerUtenSpace;
} else if (isBlank(landkode)) {
return "+47%s".formatted(nummerUtenSpace);
} else {
return "%s%s".formatted(landkode, nummerUtenSpace);
}
}

private ZonedDateTime getDato(RsDigitalKontaktdata digitalKontaktdata) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ public class RsDigitalKontaktdata {
private LocalDateTime gyldigFra;
private boolean reservert;
private String mobil;
private String landkode;
private String land;
private String epost;
private boolean registrert;
private String sdpAdresse;
Expand Down
7 changes: 0 additions & 7 deletions apps/dolly-frontend/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,8 @@ test {
useJUnitPlatform()
}

jacocoTestReport {
reports {
xml.required = true
}
}

sonarqube {
properties {
property "sonar.coverage.jacoco.xmlReportPaths", "${project.layout.buildDirectory}/reports/jacoco/test/jacocoTestReport.xml"
property "sonar.dynamicAnalysis", "reuseReports"
property "sonar.host.url", "https://sonarcloud.io"
property "sonar.java.coveragePlugin", "jacoco"
Expand Down
1 change: 1 addition & 0 deletions apps/dolly-frontend/src/main/js/cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { defineConfig } from 'cypress'
export default defineConfig({
pageLoadTimeout: 120000,
defaultCommandTimeout: 25000,
numTestsKeptInMemory: 3,

env: {
'cypress-react-selector': {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1290,6 +1290,7 @@ export const backendBestillingerMock = [
bestilling: {
krrstub: {
reservert: false,
landkode: '+47',
mobil: '12345678',
epost: '[email protected]',
registrert: true,
Expand Down
Loading

0 comments on commit a1a4f07

Please sign in to comment.