Skip to content

Commit

Permalink
Translator Job Record
Browse files Browse the repository at this point in the history
  • Loading branch information
samleeflang committed Apr 8, 2024
1 parent a0fab6b commit 41e2a7c
Show file tree
Hide file tree
Showing 33 changed files with 2,377 additions and 1,267 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/.trivyignore
Original file line number Diff line number Diff line change
@@ -1,4 +0,0 @@
# Date: Feb 12, 2024
# Notes: Issue with libexpat, parsing large tokens can trigger a denial of service
# Needs to be fixed in Docker Image.
CVE-2023-52425
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.2.3</version>
<version>3.2.4</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>eu.dissco.core</groupId>
Expand Down
6 changes: 5 additions & 1 deletion src/main/java/eu/dissco/core/translator/ProjectRunner.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package eu.dissco.core.translator;

import eu.dissco.core.translator.service.TranslatorJobRecordService;
import eu.dissco.core.translator.service.WebClientService;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
Expand All @@ -14,10 +15,13 @@ public class ProjectRunner implements CommandLineRunner {

private final WebClientService webService;
private final ConfigurableApplicationContext context;
private final TranslatorJobRecordService tjrService;

@Override
public void run(String... args) {
webService.retrieveData();
var jobId = tjrService.createNewJobRecord();
var processingResult = webService.retrieveData();
tjrService.updateJobState(jobId, processingResult);
context.close();
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 19 additions & 11 deletions src/main/java/eu/dissco/core/translator/database/jooq/Keys.java

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

82 changes: 46 additions & 36 deletions src/main/java/eu/dissco/core/translator/database/jooq/Public.java

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 15 additions & 9 deletions src/main/java/eu/dissco/core/translator/database/jooq/Tables.java

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 41e2a7c

Please sign in to comment.