Skip to content
Merged

Dev #322

Show file tree
Hide file tree
Changes from 90 commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
2f99864
Benchmarks toolkit and initial scripts.
martino-jembi Jul 22, 2024
2276bd8
Settings update for threadpool and concurrent connections
martino-jembi Jul 23, 2024
6ae5aa9
Small tweaks to improve message distribution and flow
martino-jembi Jul 24, 2024
a14573b
Support for passing random seed into data generator
martino-jembi Jul 25, 2024
2230536
Improvements to container monitoring
martino-jembi Jul 28, 2024
1ed8ca3
Test with 60s timeouts
martino-jembi Jul 28, 2024
f95be29
Readme update
martino-jembi Jul 28, 2024
f3774b1
Align with key changes on dev
martino-jembi Jul 28, 2024
1a96a51
Merge branch 'dev' into CU-86bz306ft_Benchmark-Linker-and-API
martino-jembi Jul 28, 2024
847b10a
Prevent caching in docker build
martino-jembi Jul 29, 2024
b43f277
Script to build and reboot individual apps
martino-jembi Jul 29, 2024
d22b2d6
Improvements to individual app reboot script
martino-jembi Jul 29, 2024
9e0db37
Fixed value for dgraph queries
martino-jembi Jul 29, 2024
d8cd47f
Akka and Dgraph error handling
martino-jembi Jul 30, 2024
81358f1
Comment about usage
martino-jembi Jul 30, 2024
a4d3706
Improved timeout and exception handling
martino-jembi Jul 30, 2024
496887f
Added folder check
martino-jembi Aug 12, 2024
cefd297
update on release and merge config
MatthewErispe Aug 12, 2024
d3b8421
test rull for open pull requests
MatthewErispe Aug 12, 2024
7c24830
revert test rules
MatthewErispe Aug 12, 2024
0c4f519
Merge pull request #303 from jembi/CU-86bzym5tr_fix-onRelease-and-Mer…
MatthewErispe Aug 12, 2024
24fb4dd
Minor improvements to benchmark scripts
martino-jembi Aug 13, 2024
4e93f58
Align Akka server timeout with .conf settings
martino-jembi Aug 13, 2024
34f1433
Improved timeout values
martino-jembi Aug 13, 2024
d34d87b
Improved error handling
martino-jembi Aug 13, 2024
d793f7e
Merge branch 'dev' into CU-86bz306ft_Benchmark-Linker-and-API
martino-jembi Aug 14, 2024
4b8699b
remove secrets setting
MatthewErispe Aug 14, 2024
7c88487
update config setting
MatthewErispe Aug 14, 2024
70952d0
Removed rec_start_num stub
martino-jembi Aug 14, 2024
8a4ba48
Merge branch 'CU-86bz306ft_Benchmark-Linker-and-API' of github.com:je…
MatthewErispe Aug 15, 2024
1c56bef
Merge pull request #305 from jembi/CU-86bz306ft_Benchmark-Linker-and-API
MatthewErispe Aug 15, 2024
4392869
Navigate to notifications page on "New/Open" IconButton click
NyashaMuusha Aug 29, 2024
fafb479
Auto-set start date for notification filter
NyashaMuusha Aug 30, 2024
e07b79e
added user guide documentation
NyashaMuusha Sep 2, 2024
4e1e12c
updated textfield type
NyashaMuusha Sep 2, 2024
19f8299
updated slider
NyashaMuusha Sep 2, 2024
3664f10
CU-86c029q15 - Update Windows Installation Scripts
sushantpatil1214 Sep 3, 2024
d456fab
updated Beta F Score Widget
NyashaMuusha Sep 3, 2024
bc9a2df
Updated formatValue, Typed data prop with DataProps
NyashaMuusha Sep 3, 2024
e076cd4
Merge pull request #302 from jembi/dev
NyashaMuusha Sep 4, 2024
b622719
added configuration settings images
NyashaMuusha Sep 4, 2024
a7dd205
added UI user guide documentation
NyashaMuusha Sep 4, 2024
2792243
updated image path for sso and back up and restore
NyashaMuusha Sep 4, 2024
6c6ec78
Formatted document
NyashaMuusha Sep 4, 2024
e77f1c7
Merge remote-tracking branch 'upstream/main'
NyashaMuusha Sep 4, 2024
6b083f4
added dashboard images
NyashaMuusha Sep 4, 2024
c2c9086
CU-86c06j114 - Dashboard
NyashaMuusha Sep 4, 2024
c4b532a
Merge branch 'main' into CU-86c060qh5_Documentation-Add-user-guide-fo…
NyashaMuusha Sep 4, 2024
ba6561a
Merge branch 'dev' into CU-86c060qh5_Documentation-Add-user-guide-for-UI
NyashaMuusha Sep 4, 2024
730a5c6
added browse tab images
NyashaMuusha Sep 5, 2024
f1ec19a
CU-86c06j1a7 - Browse Records
NyashaMuusha Sep 5, 2024
37926e8
Merge remote-tracking branch 'upstream/CU-86c060qh5_Documentation-Add…
NyashaMuusha Sep 5, 2024
7f36ef9
added notification images
NyashaMuusha Sep 5, 2024
519fb4b
CU-86c06j15m - Notification Worklist
NyashaMuusha Sep 5, 2024
1363c82
added import images
NyashaMuusha Sep 5, 2024
736befe
CU-86c06j1qp - Import
NyashaMuusha Sep 5, 2024
6f2fae5
CU-86c07x1f6 - Getting Started
NyashaMuusha Sep 5, 2024
0185543
Added config json logic for Windows path
sushantpatil1214 Sep 6, 2024
77c883e
Added logic for CSV import path in Windows
sushantpatil1214 Sep 9, 2024
f1bf7d6
updated back backup and restore
NyashaMuusha Sep 9, 2024
a5e780a
Fix CSV upload issue in Ubuntu and CU-86c01zt2k - Default ARG value f…
sushantpatil1214 Sep 10, 2024
bca7cb6
Clean code
sushantpatil1214 Sep 10, 2024
54759bd
Added installation of zip unzip
Sep 10, 2024
caa3d49
added future road map
NyashaMuusha Sep 10, 2024
01d85c0
Merge pull request #318 from jembi/CU-86c060qau_Documentation-Update-…
MatthewErispe Sep 10, 2024
cae8c76
Merge pull request #319 from jembi/CU-86bzwgcm5_Documentation-Create-…
MatthewErispe Sep 10, 2024
7811e56
Merge pull request #317 from jembi/CU-86c060qpp_Documentation-Add-pre…
MatthewErispe Sep 10, 2024
67d6b70
Apply suggestions from code review
MatthewErispe Sep 10, 2024
caa223d
Merge branch 'dev' into CU-86c029q15_Update-Windows-Installation-Scripts
sushantpatil1214 Sep 11, 2024
08d9a20
CU-86c095u7n - Default setup to use Keycloak
sushantpatil1214 Sep 11, 2024
547ec53
CU-86c095u7n - Default setup to use Keycloak
sushantpatil1214 Sep 11, 2024
c8028dc
Merge pull request #320 from jembi/CU-86c095u7n_Default-setup-to-use-…
MatthewErispe Sep 11, 2024
f1cc300
updated java installation prerequisite
NyashaMuusha Sep 11, 2024
0eafe7f
Merge branch 'dev' into CU-86c089af1_Documentation-Update-Installatio…
NyashaMuusha Sep 11, 2024
3b98f29
Merge pull request #314 from jembi/CU-86c04kukr_Min-Review-Threshold-…
MatthewErispe Sep 11, 2024
bcbc933
Merge pull request #311 from jembi/CU-86c04krnw_Auto-set-start-dates-…
MatthewErispe Sep 11, 2024
178a3ed
Merge pull request #310 from jembi/CU-86c04qfb9_Link-to-Notifications…
MatthewErispe Sep 11, 2024
5f46621
Merge branch 'dev' into CU-86c060qh5_Documentation-Add-user-guide-for-UI
MatthewErispe Sep 11, 2024
478cefc
Merge pull request #316 from jembi/CU-86c060qh5_Documentation-Add-use…
MatthewErispe Sep 11, 2024
d03bf27
fix typo
MatthewErispe Sep 11, 2024
06c0a27
Merge pull request #312 from jembi/CU-86c029q15_Update-Windows-Instal…
MatthewErispe Sep 11, 2024
05a388d
Merge branch 'dev' into CU-86c04wpae_Dashboard-Oops-Error-on-loading-…
MatthewErispe Sep 12, 2024
29af7d3
fix Dockerfile FromAsCasing
MatthewErispe Sep 12, 2024
2de693c
Merge branch 'dev' into CU-86c089af1_Documentation-Update-Installatio…
MatthewErispe Sep 12, 2024
d21433c
update documentation as per request
MatthewErispe Sep 12, 2024
2e80c8e
Merge pull request #315 from jembi/CU-86c04wpae_Dashboard-Oops-Error-…
MatthewErispe Sep 12, 2024
7480eac
Merge branch 'dev' into CU-86c089af1_Documentation-Update-Installatio…
MatthewErispe Sep 12, 2024
98ff0f9
added an example
MatthewErispe Sep 12, 2024
a4af960
Merge pull request #321 from jembi/CU-86c089af1_Documentation-Update-…
MatthewErispe Sep 12, 2024
16dfdd4
Merge branch 'main' into dev
MatthewErispe Sep 12, 2024
99be54c
added null check for logged in user
NyashaMuusha Sep 15, 2024
c099de6
added logging statements
NyashaMuusha Sep 15, 2024
ff5b6c1
updated format value function
NyashaMuusha Sep 16, 2024
bfb2604
updated beta f score
NyashaMuusha Sep 16, 2024
e75b4ad
Merge pull request #323 from jembi/CU-86c0aptvn_Beta-F-score-rounding
martino-jembi Sep 16, 2024
e11c1af
add default keycloack dev-user firstname lastname and email
MatthewErispe Sep 17, 2024
40aa3bc
remove logging statements
NyashaMuusha Sep 17, 2024
1fc8197
Merge branch 'dev' into CU-86c0af52c_Keycloak-User-shows-as-Undefined
NyashaMuusha Sep 17, 2024
8927d25
Merge pull request #324 from jembi/CU-86c0af52c_Keycloak-User-shows-a…
MatthewErispe Sep 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/entry-on-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- id: get-docker-push-tag
run: echo "docker-push-tag=$(git rev-parse --abbrev-ref HEAD)-$(git log -1 --pretty=format:%h)" >> $GITHUB_OUTPUT
- uses: ./.github/workflows/actions/build-deploy-images
with:
with:
docker-push-tag: ${{ steps.get-docker-push-tag.outputs.docker-push-tag }}
docker-host: "docker.io"
docker-username: ${{ secrets.DOCKER_HUB_USER_NAME }}
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@ my-notes
.settings
.classpath
.project
.metals
.metals
devops/benchmarking/k6
devops/windows/base-docker-wsl/config
devops/windows/base-docker-wsl/csv
2 changes: 1 addition & 1 deletion JeMPI_Apps/JeMPI_API/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG JAVA_VERSION
ARG JAVA_VERSION=21.0.1-tem

FROM eclipse-temurin:${JAVA_VERSION}-jre

Expand Down
36 changes: 25 additions & 11 deletions JeMPI_Apps/JeMPI_API/src/main/resources/application.conf
Original file line number Diff line number Diff line change
@@ -1,14 +1,28 @@
akka.http {
session {
enabled = true
akka {
http {
session {
enabled = true
}
host-connection-pool {
max-connections = 1024
max-open-requests = 1024
}
server {
idle-timeout = 60 s
request-timeout = 60 s
linger-timeout = 60 s
parsing {
max-to-strict-bytes = 128m
max-to-strict-bytes = ${?JEMPI_FILE_IMPORT_MAX_SIZE_BYTE}
}
}
}
server {
idle-timeout = 10 s
request-timeout = 5 s
linger-timeout = 5 s
parsing {
max-to-strict-bytes = 128m
max-to-strict-bytes = ${?JEMPI_FILE_IMPORT_MAX_SIZE_BYTE}
actor {
default-dispatcher {
fork-join-executor {
parallelism-min = 8
parallelism-max = 64
}
}
}
}
Expand Down Expand Up @@ -71,7 +85,7 @@ my-blocking-dispatcher {
type = Dispatcher
executor = "thread-pool-executor"
thread-pool-executor {
fixed-pool-size = 512
fixed-pool-size = 1024
}
throughput = 1
}
2 changes: 1 addition & 1 deletion JeMPI_Apps/JeMPI_API_KC/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG JAVA_VERSION
ARG JAVA_VERSION=21.0.1-tem

FROM eclipse-temurin:${JAVA_VERSION}-jre

Expand Down
36 changes: 25 additions & 11 deletions JeMPI_Apps/JeMPI_API_KC/src/main/resources/application.conf
Original file line number Diff line number Diff line change
@@ -1,14 +1,28 @@
akka.http {
session {
enabled = true
akka {
http {
session {
enabled = true
}
host-connection-pool {
max-connections = 1024
max-open-requests = 1024
}
server {
idle-timeout = 60 s
request-timeout = 60 s
linger-timeout = 60 s
parsing {
max-to-strict-bytes = 128m
max-to-strict-bytes = ${?JEMPI_FILE_IMPORT_MAX_SIZE_BYTE}
}
}
}
server {
idle-timeout = 10 s
request-timeout = 5 s
linger-timeout = 5 s
parsing {
max-to-strict-bytes = 128m
max-to-strict-bytes = ${?JEMPI_FILE_IMPORT_MAX_SIZE_BYTE}
actor {
default-dispatcher {
fork-join-executor {
parallelism-min = 8
parallelism-max = 64
}
}
}
}
Expand Down Expand Up @@ -98,7 +112,7 @@ my-blocking-dispatcher {
type = Dispatcher
executor = "thread-pool-executor"
thread-pool-executor {
fixed-pool-size = 512
fixed-pool-size = 1024
}
throughput = 1
}
2 changes: 1 addition & 1 deletion JeMPI_Apps/JeMPI_AsyncReceiver/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG JAVA_VERSION
ARG JAVA_VERSION=21.0.1-tem

FROM eclipse-temurin:${JAVA_VERSION}-jre

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ private void apacheReadCSV(
if (givenName.isEmpty() && familyName.isEmpty()) {
partitionKey += "Unknown";
}
LOGGER.info("Kafka topic/partition for patient: " + partitionKey);
LOGGER.info("Using Kafka topic/partition: " + partitionKey);

final var interactionEnvelop = new InteractionEnvelop(InteractionEnvelop.ContentType.BATCH_INTERACTION,
tag,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
akka.http {
server {
idle-timeout = 10 s
request-timeout = 5 s
linger-timeout = 5 s
idle-timeout = 60 s
request-timeout = 60 s
linger-timeout = 60 s
}
}

Expand Down
2 changes: 1 addition & 1 deletion JeMPI_Apps/JeMPI_BackupRestoreAPI/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG JAVA_VERSION
ARG JAVA_VERSION=21.0.1-tem

FROM eclipse-temurin:${JAVA_VERSION}-jre

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ akka.http {
enabled = true
}
server {
idle-timeout = 10 s
request-timeout = 5 s
linger-timeout = 5 s
idle-timeout = 60 s
request-timeout = 60 s
linger-timeout = 60 s
}
}

Expand Down
2 changes: 1 addition & 1 deletion JeMPI_Apps/JeMPI_Bootstrapper/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG JAVA_VERSION
ARG JAVA_VERSION=21.0.1-tem

FROM eclipse-temurin:${JAVA_VERSION}-jre

Expand Down
2 changes: 1 addition & 1 deletion JeMPI_Apps/JeMPI_Controller/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG JAVA_VERSION
ARG JAVA_VERSION=21.0.1-tem

FROM eclipse-temurin:${JAVA_VERSION}-jre

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
akka.http {
server {
idle-timeout = 10 s
request-timeout = 5 s
linger-timeout = 5 s
idle-timeout = 60 s
request-timeout = 60 s
linger-timeout = 60 s
}
}

Expand Down
2 changes: 1 addition & 1 deletion JeMPI_Apps/JeMPI_EM_Scala/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG JAVA_VERSION
ARG JAVA_VERSION=21.0.1-tem

FROM eclipse-temurin:${JAVA_VERSION}-jre

Expand Down
2 changes: 1 addition & 1 deletion JeMPI_Apps/JeMPI_ETL/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG JAVA_VERSION
ARG JAVA_VERSION=21.0.1-tem

FROM eclipse-temurin:${JAVA_VERSION}-jre

Expand Down
6 changes: 3 additions & 3 deletions JeMPI_Apps/JeMPI_ETL/src/main/resources/application.conf
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
akka.http {
server {
idle-timeout = 10 s
request-timeout = 5 s
linger-timeout = 5 s
idle-timeout = 60 s
request-timeout = 60 s
linger-timeout = 60 s
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import org.jembi.jempi.shared.models.dashboard.NotificationStats;
import org.jembi.jempi.shared.models.dashboard.SQLDashboardData;
import org.jembi.jempi.shared.utils.AppUtils;

import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
Expand Down Expand Up @@ -469,7 +468,14 @@ private Behavior<Event> postUploadCsvFileHandler(final PostUploadCsvFileRequest
if (request.uploadConfig != null) {
appendUploadConfigToFile(request.uploadConfig, file);
}
Files.move(file.toPath(), Paths.get("/app/csv/" + file.getName()));
Path ubuntuFilePath = new File(String.format("/app/csv")).toPath();
if (Files.exists(ubuntuFilePath)) {
Files.move(file.toPath(), Paths.get("/app/csv/" + file.getName()));
} else {
final String configDir = System.getenv("SYSTEM_CSV_DIR");
Path filePath = Paths.get(configDir, file.getName());
Files.move(file.toPath(), filePath);
}
} catch (NoSuchFileException e) {
LOGGER.error("No such file");
} catch (SecurityException | IOException e) {
Expand Down Expand Up @@ -510,8 +516,17 @@ private Behavior<Event> getConfigurationHandler(final GetConfigurationRequest re

private Behavior<Event> getFieldsConfigurationHandler(final GetFieldsConfigurationRequest request) {
final var separator = FileSystems.getDefault().getSeparator();
final var filePath =
new File("%sapp%sconf_system%s%s".formatted(separator, separator, separator, fieldsConfigurationFileName)).toPath();
final String configDir = System.getenv("SYSTEM_CONFIG_DIRS");
Path filePath = Paths.get(""); // Start with an empty path
// Create ubuntuFilePath
Path ubuntuFilePath = new File(String.format("%sapp%sconf_system%s%s", separator, separator, separator, fieldsConfigurationFileName)).toPath();
// Check if ubuntuFilePath exists
if (Files.exists(ubuntuFilePath)) {
filePath = ubuntuFilePath;
} else {
// If ubuntuFilePath does not exist, assign the alternative path
filePath = Paths.get(configDir, "config-api.json");
}
try {
String configFileContent = new String(Files.readAllBytes(filePath), StandardCharsets.UTF_8);
FieldsConfiguration fieldsConfiguration = AppUtils.OBJECT_MAPPER.readValue(configFileContent, FieldsConfiguration.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ static Route proxyPostDashboardData(
responseBody = Unmarshaller
.entityToString()
.unmarshal(dashboardDataResponse.entity(), actorSystem)
.toCompletableFuture().get(10, TimeUnit.SECONDS);
.toCompletableFuture().get(GlobalConstants.TIMEOUT_GENERAL_SECS, TimeUnit.SECONDS);
} catch (InterruptedException | ExecutionException | TimeoutException e) {
LOGGER.error("Error getting dashboard data ", e);
return complete(StatusCodes.INTERNAL_SERVER_ERROR);
Expand Down
Loading