From 5331f575e8bc98941f42fb2d50f0b9c6721c90fa Mon Sep 17 00:00:00 2001 From: denniscunningham <129115982+denniscunningham@users.noreply.github.com> Date: Tue, 12 Sep 2023 15:46:53 -0400 Subject: [PATCH] [JN-563] Setup cunningh as a superuser and update README (#542) --- README.md | 6 +++--- .../bio/terra/pearl/populate/service/BaseSeedPopulator.java | 2 +- populate/src/main/resources/seed/adminUsers/cunningh.json | 4 ++++ 3 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 populate/src/main/resources/seed/adminUsers/cunningh.json diff --git a/README.md b/README.md index f0ba495848..26e9340668 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ In IntelliJ, File -> New -> Protject from Existing Sources. When importing the * Preferences > Build, Execution, Deployment > Build Tools > Gradle > Gradle Projects > \[this project\] > Gradle JVM * Recommended setting for this is "Project SDK" * In Preferences > Build, Execution, Deployment > Compiler > Annotation Processors, make sure annotation processing is enabled (otherwise lombok getters/setters won't work) - * Create two Spring Boot Run/Debug Configurations. + * Create two Spring Boot Run/Debug Configurations (Run > Edit Configurations) * ApiAdminApp (in api-admin module) * set active profiles of "human-readable-logging" and "development" * disable launch optimization @@ -84,7 +84,7 @@ In IntelliJ, File -> New -> Protject from Existing Sources. When importing the ### Running the application #### Admin tool (study manager, population) * API (api-admin module) -In intelliJ, you can either run ApiAdminApp (from the api-admin module) directly, or execute the "bootRun" gradle task. +In intelliJ, you can either run ApiAdminApp directly (use the Run menu to choose ApiAdminApp), or execute the "bootRun" gradle task. In basic development mode, this will only serve the API, not the frontend assets. To make the application useful, you will want to populate some users and studies. After the admin API is running, @@ -104,7 +104,7 @@ From the command line: Then go to `localhost:3000` ##### Participant API (api-participant module) -In intelliJ, you can either run ApiParticipantApp (from the api-participant module) directly, or execute the "bootRun" gradle task. +In intelliJ, you can either run ApiParticipantApp directly (use the Run menu to choose ApiParticipantApp), or execute the "bootRun" gradle task. In basic development mode, this will only serve the API, not the frontend assets. ##### Participant UI (ui-participant module) diff --git a/populate/src/main/java/bio/terra/pearl/populate/service/BaseSeedPopulator.java b/populate/src/main/java/bio/terra/pearl/populate/service/BaseSeedPopulator.java index b345fa51e4..84816e84f8 100644 --- a/populate/src/main/java/bio/terra/pearl/populate/service/BaseSeedPopulator.java +++ b/populate/src/main/java/bio/terra/pearl/populate/service/BaseSeedPopulator.java @@ -30,7 +30,7 @@ public class BaseSeedPopulator { "adminUsers/myanaman.json", "adminUsers/kkaratza.json", "adminUsers/jkorte.json", "adminUsers/egwozdz.json", "adminUsers/mflinn.json", "adminUsers/nwatts.json", - "adminUsers/mbemis.json"); + "adminUsers/mbemis.json", "adminUsers/cunningh.json"); public static final List ENVIRONMENTS_TO_POPULATE = Arrays.asList("environments/sandbox.json", "environments/irb.json", "environments/live.json"); diff --git a/populate/src/main/resources/seed/adminUsers/cunningh.json b/populate/src/main/resources/seed/adminUsers/cunningh.json new file mode 100644 index 0000000000..892016ed5a --- /dev/null +++ b/populate/src/main/resources/seed/adminUsers/cunningh.json @@ -0,0 +1,4 @@ +{ + "username": "cunningh@broadinstitute.org", + "superuser": true +}