Skip to content

Commit

Permalink
Merge branch 'development' into feature/#988-close-dialogs-in-the-mea…
Browse files Browse the repository at this point in the history
…surement-view-on-browser-navigation
  • Loading branch information
Steffengreiner authored Jan 27, 2025
2 parents 1838fca + dc2808b commit eb6b83f
Show file tree
Hide file tree
Showing 28 changed files with 537 additions and 141 deletions.
1 change: 1 addition & 0 deletions .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
push:
branches:
- development
- main
pull_request:
branches:
- development
Expand Down
449 changes: 449 additions & 0 deletions THIRD-PARTY.txt

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion application-commons/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>datamanager</artifactId>
<groupId>life.qbic</groupId>
<version>1.6.6</version>
<version>1.7.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>application-commons</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion broadcasting/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>datamanager</artifactId>
<groupId>life.qbic</groupId>
<version>1.6.6</version>
<version>1.7.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>broadcasting</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion domain-concept/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>life.qbic</groupId>
<artifactId>datamanager</artifactId>
<version>1.6.6</version>
<version>1.7.2</version>
</parent>

<artifactId>domain-concept</artifactId>
Expand Down
6 changes: 3 additions & 3 deletions email-service-provider/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>life.qbic</groupId>
<artifactId>datamanager</artifactId>
<version>1.6.6</version>
<version>1.7.2</version>
</parent>

<groupId>life.qbic.infrastructure</groupId>
Expand All @@ -21,13 +21,13 @@
<dependency>
<groupId>life.qbic</groupId>
<artifactId>identity</artifactId>
<version>1.6.6</version>
<version>1.7.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>life.qbic</groupId>
<artifactId>project-management</artifactId>
<version>1.6.6</version>
<version>1.7.2</version>
<scope>compile</scope>
</dependency>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion finances-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>life.qbic</groupId>
<artifactId>datamanager</artifactId>
<version>1.6.6</version>
<version>1.7.2</version>
</parent>

<groupId>life.qbic.finances</groupId>
Expand Down
4 changes: 2 additions & 2 deletions finances-infrastructure/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>life.qbic</groupId>
<artifactId>datamanager</artifactId>
<version>1.6.6</version>
<version>1.7.2</version>
</parent>

<artifactId>finances-infrastructure</artifactId>
Expand All @@ -20,7 +20,7 @@
<dependency>
<groupId>life.qbic</groupId>
<artifactId>finances</artifactId>
<version>1.6.6</version>
<version>1.7.2</version>
<scope>compile</scope>
</dependency>
<dependency>
Expand Down
4 changes: 2 additions & 2 deletions finances/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>datamanager</artifactId>
<groupId>life.qbic</groupId>
<version>1.6.6</version>
<version>1.7.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>finances</artifactId>
Expand Down Expand Up @@ -38,7 +38,7 @@
<dependency>
<groupId>life.qbic.finances</groupId>
<artifactId>finances-api</artifactId>
<version>1.6.6</version>
<version>1.7.2</version>
<scope>compile</scope>
</dependency>
</dependencies>
Expand Down
4 changes: 2 additions & 2 deletions identity-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>life.qbic</groupId>
<artifactId>datamanager</artifactId>
<version>1.6.6</version>
<version>1.7.2</version>
</parent>

<groupId>life.qbic.datamanager</groupId>
Expand All @@ -21,7 +21,7 @@
<dependency>
<groupId>life.qbic</groupId>
<artifactId>application-commons</artifactId>
<version>1.6.6</version>
<version>1.7.2</version>
<scope>compile</scope>
</dependency>
</dependencies>
Expand Down
4 changes: 2 additions & 2 deletions identity-infrastructure/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
<parent>
<groupId>life.qbic</groupId>
<artifactId>datamanager</artifactId>
<version>1.6.6</version>
<version>1.7.2</version>
</parent>
<artifactId>identity-infrastructure</artifactId>
<dependencies>
<dependency>
<groupId>life.qbic</groupId>
<artifactId>identity</artifactId>
<version>1.6.6</version>
<version>1.7.2</version>
<scope>compile</scope>
</dependency>
<dependency>
Expand Down
12 changes: 6 additions & 6 deletions identity/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>datamanager</artifactId>
<groupId>life.qbic</groupId>
<version>1.6.6</version>
<version>1.7.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down Expand Up @@ -45,25 +45,25 @@
<dependency>
<groupId>life.qbic</groupId>
<artifactId>broadcasting</artifactId>
<version>1.6.6</version>
<version>1.7.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>life.qbic</groupId>
<artifactId>application-commons</artifactId>
<version>1.6.6</version>
<version>1.7.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>life.qbic</groupId>
<artifactId>logging</artifactId>
<version>1.6.6</version>
<version>1.7.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>life.qbic</groupId>
<artifactId>domain-concept</artifactId>
<version>1.6.6</version>
<version>1.7.2</version>
<scope>compile</scope>
</dependency>
<dependency>
Expand All @@ -86,7 +86,7 @@
<dependency>
<groupId>life.qbic.datamanager</groupId>
<artifactId>identity-api</artifactId>
<version>1.6.6</version>
<version>1.7.2</version>
<scope>compile</scope>
</dependency>
</dependencies>
Expand Down
6 changes: 3 additions & 3 deletions logging/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>datamanager</artifactId>
<groupId>life.qbic</groupId>
<version>1.6.6</version>
<version>1.7.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>logging</artifactId>
Expand All @@ -31,7 +31,7 @@
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
<version>1.5.11</version>
<version>1.5.16</version>
</dependency>
</dependencies>
</dependencyManagement>
Expand All @@ -53,7 +53,7 @@
<dependency>
<groupId>life.qbic.logging</groupId>
<artifactId>subscription-api</artifactId>
<version>1.6.6</version>
<version>1.7.2</version>
<scope>compile</scope>
</dependency>
</dependencies>
Expand Down
27 changes: 23 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<groupId>life.qbic</groupId>
<artifactId>datamanager</artifactId>
<name>Data Manager</name>
<version>1.6.6</version>
<version>1.7.2</version>
<modules>
<module>user-interface</module>
<module>identity</module>
Expand Down Expand Up @@ -146,14 +146,14 @@
<dependency>
<groupId>org.apache.groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>4.0.23</version>
<version>4.0.24</version>
<type>pom</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jobrunr</groupId>
<artifactId>jobrunr-spring-boot-3-starter</artifactId>
<version>7.3.1</version>
<version>7.3.2</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
Expand Down Expand Up @@ -182,6 +182,25 @@
</dependencyManagement>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>2.0.0</version> <!-- Use the latest version -->
<executions>
<execution>
<goals>
<goal>aggregate-add-third-party</goal>
</goals>
</execution>
</executions>
<configuration>
<!-- Configuration for licenses aggregation -->
<outputDirectory>${project.build.directory}/generated-sources/license</outputDirectory>
<thirdPartyFilename>THIRD-PARTY.txt</thirdPartyFilename>
<failIfWarning>false</failIfWarning> <!-- Optional: fail the build on issues -->
<includeTransitiveDependencies>true</includeTransitiveDependencies>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.gmavenplus</groupId>
<artifactId>gmavenplus-plugin</artifactId>
Expand Down Expand Up @@ -220,7 +239,7 @@
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.5.1</version>
<version>3.5.2</version>
<configuration>
<useModulePath>false</useModulePath>
<includes>
Expand Down
4 changes: 2 additions & 2 deletions project-management-infrastructure/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>life.qbic</groupId>
<artifactId>datamanager</artifactId>
<version>1.6.6</version>
<version>1.7.2</version>
</parent>

<groupId>life.qbic.identity</groupId>
Expand All @@ -29,7 +29,7 @@
<dependency>
<groupId>life.qbic</groupId>
<artifactId>project-management</artifactId>
<version>1.6.6</version>
<version>1.7.2</version>
<scope>compile</scope>
</dependency>
<dependency>
Expand Down
12 changes: 6 additions & 6 deletions project-management/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>datamanager</artifactId>
<groupId>life.qbic</groupId>
<version>1.6.6</version>
<version>1.7.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>project-management</artifactId>
Expand Down Expand Up @@ -37,13 +37,13 @@
<dependency>
<groupId>life.qbic</groupId>
<artifactId>application-commons</artifactId>
<version>1.6.6</version>
<version>1.7.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>life.qbic</groupId>
<artifactId>logging</artifactId>
<version>1.6.6</version>
<version>1.7.2</version>
<scope>compile</scope>
</dependency>
<dependency>
Expand All @@ -54,7 +54,7 @@
<dependency>
<groupId>life.qbic</groupId>
<artifactId>domain-concept</artifactId>
<version>1.6.6</version>
<version>1.7.2</version>
<scope>compile</scope>
</dependency>
<dependency>
Expand All @@ -77,13 +77,13 @@
<dependency>
<groupId>life.qbic.datamanager</groupId>
<artifactId>identity-api</artifactId>
<version>1.6.6</version>
<version>1.7.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>life.qbic.finances</groupId>
<artifactId>finances-api</artifactId>
<version>1.6.6</version>
<version>1.7.2</version>
<scope>compile</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import life.qbic.projectmanagement.application.OrganisationLookupService;
import life.qbic.projectmanagement.application.ProjectInformationService;
import life.qbic.projectmanagement.application.ontology.SpeciesLookupService;
import life.qbic.projectmanagement.application.ontology.TerminologyService;
import life.qbic.projectmanagement.application.sample.SampleIdCodeEntry;
import life.qbic.projectmanagement.application.sample.SampleInformationService;
import life.qbic.projectmanagement.domain.model.OntologyTerm;
Expand Down Expand Up @@ -65,28 +66,29 @@ public class MeasurementService {
private final MeasurementDomainService measurementDomainService;
private final MeasurementLookupService measurementLookupService;
private final SampleInformationService sampleInformationService;
private final SpeciesLookupService speciesLookupService;
private final OrganisationLookupService organisationLookupService;
private final ProjectInformationService projectInformationService;
private final MeasurementRepository measurementRepository;
private final TerminologyService terminologyService;

@Autowired
public MeasurementService(MeasurementDomainService measurementDomainService,
SampleInformationService sampleInformationService,
SpeciesLookupService speciesLookupService,
OrganisationLookupService organisationLookupService,
MeasurementLookupService measurementLookupService,
ProjectInformationService projectInformationService,
MeasurementRepository measurementRepository,
TerminologyService terminologyService,
ApplicationContext context) {
this.measurementDomainService = Objects.requireNonNull(measurementDomainService);
this.sampleInformationService = Objects.requireNonNull(sampleInformationService);
this.speciesLookupService = Objects.requireNonNull(speciesLookupService);
this.organisationLookupService = Objects.requireNonNull(organisationLookupService);
this.measurementLookupService = Objects.requireNonNull(measurementLookupService);
this.projectInformationService = Objects.requireNonNull(projectInformationService);
this.measurementRepository = Objects.requireNonNull(measurementRepository);
this.context = Objects.requireNonNull(context);
this.terminologyService = Objects.requireNonNull(terminologyService);

}

/**
Expand Down Expand Up @@ -778,7 +780,7 @@ private boolean allMeasurementCodesExist(List<String> measurementCode) {
}

private Optional<OntologyTerm> resolveOntologyCURI(String ontologyCURI) {
return speciesLookupService.findByCURI(ontologyCURI).map(OntologyTerm::from);
return terminologyService.findByCurie(ontologyCURI);
}

private Optional<SampleIdCodeEntry> queryIdCodePair(SampleCode sampleCode) {
Expand Down
Loading

0 comments on commit eb6b83f

Please sign in to comment.