Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 2.1.1 #763

Merged
merged 185 commits into from
Mar 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
185 commits
Select commit Hold shift + click to select a range
899f9f2
Merge pull request #733 from RADAR-base/732-append-managementportal-t…
blootsvoets Oct 9, 2023
007337e
Merge pull request #723 from RADAR-base/722-wait-no-longer-needed-in-…
blootsvoets Oct 9, 2023
f3ec015
update github workflow to include prod testing 9might be inn the wron…
Bdegraaf1234 Oct 9, 2023
24dc919
insert the e2e-prod script into the github workflow as that is what w…
Bdegraaf1234 Oct 9, 2023
68fc25a
let it run on the ci for now
Bdegraaf1234 Oct 9, 2023
f97b720
baseurl for cypress should match the ALDS
Bdegraaf1234 Oct 9, 2023
448bfba
shutdown the docker containers, it feels like there are some persiste…
Bdegraaf1234 Oct 9, 2023
1e2e7ff
or de we just need to force click?
Bdegraaf1234 Oct 9, 2023
fa61351
or both?
Bdegraaf1234 Oct 9, 2023
2460903
or both?
Bdegraaf1234 Oct 9, 2023
836c19d
no more alternate docker command needed for windows
Bdegraaf1234 Oct 10, 2023
b2a1549
apply dev context from the app.yml docker config. This removes the ne…
Bdegraaf1234 Oct 10, 2023
f1c2787
The test prod task fails when ran as a docker image, but pass when ra…
Bdegraaf1234 Oct 10, 2023
7ef184e
The test prod task fails when ran as a docker image, but pass when ra…
Bdegraaf1234 Oct 10, 2023
8ec99b1
remove some configurations that are already inherited from the defaul…
Bdegraaf1234 Oct 10, 2023
c1dfac7
prod docker image testing is a stub in the docker CI task
Bdegraaf1234 Oct 10, 2023
6753bb5
Change the run-prod-e2e.sh script to reflect the new changes. This sc…
Bdegraaf1234 Oct 10, 2023
5c6f52b
minor updates to the README to reflect the new situation
Bdegraaf1234 Oct 10, 2023
a294ed5
Merge branch 'master' into dev
blootsvoets Oct 16, 2023
3b00953
Bump dev version
blootsvoets Oct 16, 2023
556da3b
Update workflow versions
blootsvoets Oct 16, 2023
1684caa
Rename .java to .kt
Bdegraaf1234 Oct 25, 2023
1c08fe0
last file in radar auth to kotlin
Bdegraaf1234 Oct 25, 2023
31fd8b5
Rename .java to .kt
Bdegraaf1234 Oct 25, 2023
8d72052
first conversions, tests passing
Bdegraaf1234 Oct 25, 2023
0ff9730
Rename .java to .kt
Bdegraaf1234 Oct 25, 2023
54e3fd7
finished config folder
Bdegraaf1234 Oct 25, 2023
0dd7042
Rename .java to .kt
Bdegraaf1234 Oct 25, 2023
5d42dfe
finished config folder
Bdegraaf1234 Oct 25, 2023
5b45faf
CustomRevisionListener needs to be a @component
Bdegraaf1234 Oct 25, 2023
5f8e889
tests passing
Bdegraaf1234 Oct 25, 2023
dca221c
Rename .java to .kt
Bdegraaf1234 Oct 26, 2023
3e127d5
gradle build works, only test fails
Bdegraaf1234 Oct 26, 2023
97751c0
Rename .java to .kt
Bdegraaf1234 Oct 27, 2023
a74bdd0
all code converted and compiling
Bdegraaf1234 Oct 27, 2023
0e64d18
Rename .java to .kt
Bdegraaf1234 Oct 27, 2023
1bf3f5e
missed a class
Bdegraaf1234 Oct 27, 2023
2fe9a0b
fix some warnings about unused variables, java not compiling anymore now
Bdegraaf1234 Oct 27, 2023
55698d3
Rename .java to .kt
Bdegraaf1234 Oct 27, 2023
7876c5b
compiling again, but still some java classes
Bdegraaf1234 Oct 27, 2023
14d8f2b
Rename .java to .kt
Bdegraaf1234 Oct 30, 2023
2210111
main compiles, test does not
Bdegraaf1234 Oct 30, 2023
c1979b1
test compiles, not passing yet
Bdegraaf1234 Oct 30, 2023
9810dcf
Rename .java to .kt
Bdegraaf1234 Oct 31, 2023
230b791
test compiles, implemented joris' requested changes
Bdegraaf1234 Oct 31, 2023
99dab91
properties back to java class for simplicities' sake
Bdegraaf1234 Oct 31, 2023
90a53b2
change the renamed boolean properties back so hibernate plays nice
Bdegraaf1234 Oct 31, 2023
20d292f
structmap issues solved by reverting back to some java classes and us…
Bdegraaf1234 Oct 31, 2023
903575a
fixed updateproject test
Bdegraaf1234 Oct 31, 2023
c9fefe8
misc fixes
Bdegraaf1234 Nov 1, 2023
72e36ca
all tests in ProjectResourceIntTest.kt passing.
Bdegraaf1234 Nov 1, 2023
20bfc8f
move validation annotations and constraint annotations so that they a…
Bdegraaf1234 Nov 1, 2023
102b4d5
simplification of Authority.kt. all AccountResourceIntTest.kt tests p…
Bdegraaf1234 Nov 1, 2023
4839dc6
fix login generation
Bdegraaf1234 Nov 1, 2023
6420598
user service tests passing
Bdegraaf1234 Nov 1, 2023
2ff9e89
autowire all decorator constructor parameters
Bdegraaf1234 Nov 1, 2023
cb860ec
fix failing tests in OAuthClientsResourceIntTest.kt, OrganizationReso…
Bdegraaf1234 Nov 3, 2023
d3a7535
all tests passing
Bdegraaf1234 Nov 3, 2023
b667116
all but one e2e test passing
Bdegraaf1234 Nov 3, 2023
c61c793
stylefixes
Bdegraaf1234 Nov 3, 2023
7cdd0a4
name CriteriaRange.iss back to `is` to fix serialization
Bdegraaf1234 Nov 6, 2023
74e6b3c
fix warnings
Bdegraaf1234 Nov 6, 2023
86f4c45
fix gatling tests
Bdegraaf1234 Nov 6, 2023
65e839d
project.organizationName now defaults to the project.organization.nam…
Bdegraaf1234 Nov 6, 2023
47e101d
resolve Joris' comments
Bdegraaf1234 Nov 6, 2023
25e5f9c
Merge branch 'dev' into 717-test-production-mode-in-integration-test
Bdegraaf1234 Nov 7, 2023
01c1292
Revert "let it run on the ci for now"
Bdegraaf1234 Nov 7, 2023
2eab27b
minor fix
Bdegraaf1234 Nov 7, 2023
dc2f453
update yml indentation
Bdegraaf1234 Nov 8, 2023
14b5ce2
faulty test config
Bdegraaf1234 Nov 9, 2023
a750e62
revert ClaimsTokenEnhancer to java and reintegrate it in the oAuth2Se…
Bdegraaf1234 Nov 10, 2023
4896095
get rid of some TODOs
Bdegraaf1234 Nov 10, 2023
8e6cddb
get rid of some TODOs
Bdegraaf1234 Nov 10, 2023
daff9d9
fix compilation error
Bdegraaf1234 Nov 10, 2023
307fc89
more native kotlin
Bdegraaf1234 Nov 10, 2023
0daf310
fixing compilation errors
Bdegraaf1234 Nov 10, 2023
616e844
nullcheck sessionId to prevent throwing errors
Bdegraaf1234 Nov 10, 2023
293fc4a
enable appserver downstream testing
Bdegraaf1234 Nov 10, 2023
e651508
stylefixes
Bdegraaf1234 Nov 10, 2023
cb1a53e
update codeowners
Bdegraaf1234 Nov 16, 2023
da4138b
Merge pull request #736 from RADAR-base/717-test-production-mode-in-i…
peyman-mohtashami Nov 16, 2023
6362419
Rename .java to .kt
Bdegraaf1234 Oct 25, 2023
d509771
last file in radar auth to kotlin
Bdegraaf1234 Oct 25, 2023
2edec1f
Rename .java to .kt
Bdegraaf1234 Oct 25, 2023
b8dd773
first conversions, tests passing
Bdegraaf1234 Oct 25, 2023
38b3e64
Rename .java to .kt
Bdegraaf1234 Oct 25, 2023
5bff076
finished config folder
Bdegraaf1234 Oct 25, 2023
2d9f7d5
Rename .java to .kt
Bdegraaf1234 Oct 25, 2023
18a9af8
finished config folder
Bdegraaf1234 Oct 25, 2023
9cc55b1
CustomRevisionListener needs to be a @component
Bdegraaf1234 Oct 25, 2023
a60d3e6
tests passing
Bdegraaf1234 Oct 25, 2023
e2d5c7d
Rename .java to .kt
Bdegraaf1234 Oct 26, 2023
42fb2bb
gradle build works, only test fails
Bdegraaf1234 Oct 26, 2023
4128e58
Rename .java to .kt
Bdegraaf1234 Oct 27, 2023
d440f1d
all code converted and compiling
Bdegraaf1234 Oct 27, 2023
0abbe94
Rename .java to .kt
Bdegraaf1234 Oct 27, 2023
127293b
missed a class
Bdegraaf1234 Oct 27, 2023
d2778ca
fix some warnings about unused variables, java not compiling anymore now
Bdegraaf1234 Oct 27, 2023
05e70f8
Rename .java to .kt
Bdegraaf1234 Oct 27, 2023
5a3c044
compiling again, but still some java classes
Bdegraaf1234 Oct 27, 2023
98b160f
Rename .java to .kt
Bdegraaf1234 Oct 30, 2023
d7eaf52
main compiles, test does not
Bdegraaf1234 Oct 30, 2023
210c53c
test compiles, not passing yet
Bdegraaf1234 Oct 30, 2023
4bd3251
Rename .java to .kt
Bdegraaf1234 Oct 31, 2023
6cadd78
test compiles, implemented joris' requested changes
Bdegraaf1234 Oct 31, 2023
dce265e
properties back to java class for simplicities' sake
Bdegraaf1234 Oct 31, 2023
d9b6b71
change the renamed boolean properties back so hibernate plays nice
Bdegraaf1234 Oct 31, 2023
d655726
structmap issues solved by reverting back to some java classes and us…
Bdegraaf1234 Oct 31, 2023
0dd9e78
fixed updateproject test
Bdegraaf1234 Oct 31, 2023
bdfc5dd
misc fixes
Bdegraaf1234 Nov 1, 2023
3cd8a84
all tests in ProjectResourceIntTest.kt passing.
Bdegraaf1234 Nov 1, 2023
06f2aa7
move validation annotations and constraint annotations so that they a…
Bdegraaf1234 Nov 1, 2023
21c568a
simplification of Authority.kt. all AccountResourceIntTest.kt tests p…
Bdegraaf1234 Nov 1, 2023
e9b988d
fix login generation
Bdegraaf1234 Nov 1, 2023
633e930
user service tests passing
Bdegraaf1234 Nov 1, 2023
fcea169
autowire all decorator constructor parameters
Bdegraaf1234 Nov 1, 2023
6a080d1
fix failing tests in OAuthClientsResourceIntTest.kt, OrganizationReso…
Bdegraaf1234 Nov 3, 2023
28afdb7
all tests passing
Bdegraaf1234 Nov 3, 2023
433c0df
all but one e2e test passing
Bdegraaf1234 Nov 3, 2023
f7543f5
stylefixes
Bdegraaf1234 Nov 3, 2023
825a905
name CriteriaRange.iss back to `is` to fix serialization
Bdegraaf1234 Nov 6, 2023
289d25f
fix warnings
Bdegraaf1234 Nov 6, 2023
add1304
fix gatling tests
Bdegraaf1234 Nov 6, 2023
0c4a1f9
project.organizationName now defaults to the project.organization.nam…
Bdegraaf1234 Nov 6, 2023
3f52d6b
resolve Joris' comments
Bdegraaf1234 Nov 6, 2023
553754b
minor fix
Bdegraaf1234 Nov 7, 2023
e04a81b
revert ClaimsTokenEnhancer to java and reintegrate it in the oAuth2Se…
Bdegraaf1234 Nov 10, 2023
e9304ed
get rid of some TODOs
Bdegraaf1234 Nov 10, 2023
219e99a
get rid of some TODOs
Bdegraaf1234 Nov 10, 2023
0b7005e
fix compilation error
Bdegraaf1234 Nov 10, 2023
874856e
more native kotlin
Bdegraaf1234 Nov 10, 2023
6f5a246
fixing compilation errors
Bdegraaf1234 Nov 10, 2023
d39dab1
nullcheck sessionId to prevent throwing errors
Bdegraaf1234 Nov 10, 2023
a520b60
stylefixes
Bdegraaf1234 Nov 10, 2023
4e74e84
Merge branch '741-fully-move-to-kotlin' of https://github.com/RADAR-b…
Bdegraaf1234 Nov 16, 2023
9fe53af
Merge pull request #742 from RADAR-base/741-fully-move-to-kotlin
Bdegraaf1234 Nov 23, 2023
af6d561
fix: package.json & yarn.lock to reduce vulnerabilities
snyk-bot Nov 30, 2023
39c7f05
remove redundant open modifiers
Bdegraaf1234 Jan 2, 2024
af5f423
remove redundant authCheck as the results of the query are filtered u…
Bdegraaf1234 Jan 2, 2024
6614430
Merge pull request #747 from RADAR-base/746-project-admin-cannot-acce…
Bdegraaf1234 Jan 8, 2024
538301f
replace permission checks with scope checks for resources that should…
Bdegraaf1234 Feb 15, 2024
82ac2f5
Bump minimist from 1.2.5 to 1.2.8
dependabot[bot] Feb 23, 2024
5328548
Merge pull request #703 from RADAR-base/dependabot/npm_and_yarn/minim…
Bdegraaf1234 Feb 23, 2024
4172916
Bump http-cache-semantics from 4.1.0 to 4.1.1
dependabot[bot] Feb 23, 2024
a586ea4
Bump express from 4.17.1 to 4.18.2
dependabot[bot] Feb 23, 2024
07441fb
Bump qs from 6.5.2 to 6.5.3
dependabot[bot] Feb 23, 2024
541b4f0
Bump json5 from 1.0.1 to 1.0.2
dependabot[bot] Feb 23, 2024
c8b661e
Bump karma from 6.3.4 to 6.3.16
dependabot[bot] Feb 23, 2024
76f298f
Bump nanoid from 3.1.25 to 3.3.7
dependabot[bot] Feb 23, 2024
9a942db
Bump decode-uri-component from 0.2.0 to 0.2.2
dependabot[bot] Feb 23, 2024
f11e332
Bump url-parse from 1.5.3 to 1.5.10
dependabot[bot] Feb 23, 2024
6b64523
Bump follow-redirects from 1.14.2 to 1.15.5
dependabot[bot] Feb 23, 2024
841a8b5
Bump async from 2.6.3 to 2.6.4
dependabot[bot] Feb 23, 2024
b6228c2
Merge pull request #692 from RADAR-base/dependabot/npm_and_yarn/expre…
Bdegraaf1234 Feb 23, 2024
5f496c5
Merge pull request #691 from RADAR-base/dependabot/npm_and_yarn/qs-6.5.3
Bdegraaf1234 Feb 23, 2024
80e9ce5
Merge pull request #690 from RADAR-base/dependabot/npm_and_yarn/decod…
Bdegraaf1234 Feb 23, 2024
6751180
Merge pull request #675 from RADAR-base/dependabot/npm_and_yarn/async…
Bdegraaf1234 Feb 23, 2024
749aa30
Merge pull request #669 from RADAR-base/dependabot/npm_and_yarn/karma…
Bdegraaf1234 Feb 23, 2024
2a09812
Merge pull request #668 from RADAR-base/dependabot/npm_and_yarn/url-p…
Bdegraaf1234 Feb 23, 2024
454799e
Merge pull request #754 from RADAR-base/dependabot/npm_and_yarn/nanoi…
Bdegraaf1234 Feb 23, 2024
1548ad8
Merge pull request #757 from RADAR-base/dependabot/npm_and_yarn/follo…
Bdegraaf1234 Feb 23, 2024
0e20c75
Bump log4js from 6.3.0 to 6.9.1
dependabot[bot] Feb 23, 2024
ffa320c
Bump ua-parser-js from 0.7.28 to 0.7.37
dependabot[bot] Feb 23, 2024
197ebbc
Merge branch 'dependabot-security-updates' into dependabot/npm_and_ya…
Bdegraaf1234 Feb 23, 2024
862b3b2
Merge pull request #755 from RADAR-base/dependabot/npm_and_yarn/log4j…
Bdegraaf1234 Feb 23, 2024
ea2500d
Merge pull request #753 from RADAR-base/dependabot/npm_and_yarn/ua-pa…
Bdegraaf1234 Feb 23, 2024
dfa2a25
Merge pull request #694 from RADAR-base/dependabot/npm_and_yarn/json5…
Bdegraaf1234 Feb 23, 2024
48d4af2
Merge pull request #697 from RADAR-base/dependabot/npm_and_yarn/http-…
Bdegraaf1234 Feb 23, 2024
093db25
Bump loader-utils from 1.4.0 to 1.4.2
dependabot[bot] Feb 23, 2024
58141df
Merge branch 'dependabot-security-updates' into snyk-fix-be123e935eee…
Bdegraaf1234 Feb 23, 2024
6d05527
Merge pull request #689 from RADAR-base/dependabot/npm_and_yarn/loade…
Bdegraaf1234 Feb 23, 2024
8199a54
Merge pull request #745 from RADAR-base/snyk-fix-be123e935eeece1aee76…
Bdegraaf1234 Feb 23, 2024
691d410
Merge pull request #749 from RADAR-base/bugfix-project-manager-permis…
Bdegraaf1234 Feb 23, 2024
eb5e493
Manually bump minimatch to fix #685
Bdegraaf1234 Feb 23, 2024
a36e16d
postgresql to 42.6.1
Bdegraaf1234 Feb 23, 2024
f2cd6ec
manual snyk fixes
Bdegraaf1234 Feb 23, 2024
0aa808b
run yarn install to fix yarn.lock file
Bdegraaf1234 Feb 23, 2024
81d13a6
snyk fixes
Bdegraaf1234 Feb 23, 2024
7ce905c
Bump eventsource from 1.1.0 to 1.1.2
Bdegraaf1234 Mar 6, 2024
84d44c8
version reorganization
Bdegraaf1234 Mar 6, 2024
675d8a8
Tests passing
Bdegraaf1234 Mar 6, 2024
008daf9
Merge pull request #752 from RADAR-base/dependabot-security-updates
Bdegraaf1234 Mar 8, 2024
b320efb
version to non-snapshot
Bdegraaf1234 Mar 20, 2024
b97991f
fix ci
Bdegraaf1234 Mar 21, 2024
91b0dc6
fix ci
Bdegraaf1234 Mar 21, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
19 changes: 15 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,17 @@ jobs:
distribution: temurin
java-version: 17

- name: Setup Gradle
uses: gradle/gradle-build-action@v2

- name: Cache
uses: actions/cache@v3
with:
path: |
${{ steps.yarn-cache-dir-path.outputs.dir }}
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-java-${{ hashFiles('**/build.gradle', '**/gradle.properties', '**/yarn.lock', '.yarnrc.yml') }}
key: ${{ runner.os }}-node-${{ hashFiles('**/build.gradle', '**/gradle.properties', '**/yarn.lock', '.yarnrc.yml') }}
restore-keys: |
${{ runner.os }}-java-
${{ runner.os }}-node-

- name: Install Yarn dependencies
run: yarn install
Expand Down Expand Up @@ -202,6 +203,16 @@ jobs:
org.opencontainers.image.vendor=RADAR-base
org.opencontainers.image.licenses=Apache-2.0

# # placeholder for testing
# - name: End to end tests (docker image)
# id: e2e-prod-docker
# run: |
# cp src/test/resources/config/keystore.p12 src/main/docker/etc/config
# ./gradlew -Pprod buildDocker -x test -x javadocJar
# docker-compose -f src/main/docker/app.yml up -d
# yarn run e2e-prod
# docker-compose -f src/main/docker/app.yml down -v

# Temp fix
# https://github.com/docker/build-push-action/issues/252
# https://github.com/moby/buildkit/issues/1896
Expand Down
35 changes: 23 additions & 12 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,29 +33,40 @@ jobs:
distribution: temurin
java-version: 17

- name: Setup Gradle
uses: gradle/gradle-build-action@v2

- name: Cache
uses: actions/cache@v3
with:
path: |
${{ steps.yarn-cache-dir-path.outputs.dir }}
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-java-${{ hashFiles('**/build.gradle', '**/gradle.properties', '**/yarn.lock') }}
key: ${{ runner.os }}-rc-node-${{ hashFiles('**/build.gradle', '**/gradle.properties', '**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-java-
${{ runner.os }}-rc-node-
${{ runner.os }}-node-

- name: Install Yarn dependencies
run: yarn install

- name: Yarn build
run: yarn build:prod

- name: Yarn check
run: yarn test

# Compile the code
- name: Install dependencies
run: |
yarn install
- name: Compile java
run: ./gradlew assemble

- name: Run full end to end tests
- name: Run full production end to end tests
id: e2e
run: |
cp src/test/resources/config/keystore.p12 src/main/resources/config/keystore.p12
./gradlew bootRun &>mp.log </dev/null &
yarn run wait-for-managementportal
./gradlew generateOpenApiSpec
yarn e2e
docker-compose -f src/main/docker/postgresql.yml up -d
./gradlew bootRun -Pprod -Pe2e-prod-test &>mp.log </dev/null &
yarn run e2e-prod
docker-compose -f src/main/docker/postgresql.yml down -v
./gradlew --stop

- name: Upload screenshots of failed e2e tests
Expand Down
18 changes: 4 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,32 +23,22 @@ jobs:
with:
node-version: 16

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=.yarn/cache" >> $GITHUB_OUTPUT

- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17

- name: Cache
uses: actions/cache@v3
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
path: |
${{ steps.yarn-cache-dir-path.outputs.dir }}
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-java-${{ hashFiles('**/build.gradle', '**/gradle.properties', '**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-java-
cache-disabled: true

- name: Compile code
run: ./gradlew assemble

# Upload it to GitHub
- name: Upload to GitHub
uses: AButler/[email protected]
uses: AButler/[email protected].2
with:
files: '*/build/libs/*'
repo-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @nivemaham @blootsvoets
* @nivemaham @blootsvoets @bdegraaf1234 @peyman-mohtashami
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Management Portal is an application which is used to manage clinical studies for
- [Testing](#testing)
* [Client tests](#client-tests)
* [Other tests](#other-tests)
- [Using Docker to simplify development (optional)](#using-docker-to-simplify-development--optional-)
- [Using Docker to simplify development (optional)](#using-docker-to-simplify-development-optional)
- [Documentation](#documentation)
- [Client libraries](#client-libraries)

Expand Down Expand Up @@ -49,7 +49,7 @@ docker-compose files.
3. Now, we can start the stack with `docker-compose -f src/main/docker/management-portal.yml up -d`.

This will start a Postgres database and ManagementPortal. The default password for the `admin`
account is `admin`.
account is `admin`. An angular live development server to access the managementportal can be started using the `yarn start` command (see [Development](#development)).

### Build from source

Expand All @@ -68,15 +68,14 @@ You must install and configure the following dependencies on your machine to run
main differences between the profiles. Configure the application using the property file at `src/main/resources/config/application-<profile>.yml`.Read more about configurations [here](#configuration)

5. Run ManagementPortal by running `./gradlew bootRun -Pprod` or `./gradlew bootRun -Pdev`. Development mode will start an in
memory database and ManagementPortal.
memory database and ManagementPortal. An angular live development server to access the managementportal can be started using the `yarn start` command (see [Development](#development)).
6. You can log in to the application using `admin:admin`. Please don't forgot to change the password of `admin`, if you are using the application on production environment.


| | Development | Production |
|----------------------------------|-----------------|-----------------------------------|
| Database type | In-memory | Postgres |
| Demo data loaded | Yes | No |
| Context path of the application | `/` | `/managementportal` |



Expand Down Expand Up @@ -249,6 +248,8 @@ auto-refreshes when files change on your hard drive.

Then open <http://localhost:8081/> to start the interface and sign in with admin/admin.

### Managing dependencies

[Yarn][] is also used to manage CSS and JavaScript dependencies used in this application. You can upgrade dependencies by
specifying a newer version in [package.json](package.json). You can also run `yarn update` and `yarn install` to manage dependencies.
Add the `help` flag on any command to see how you can use it. For example, `yarn help update`.
Expand Down Expand Up @@ -294,15 +295,15 @@ To launch your application's tests, run:

### Client tests

Unit tests are run by [Karma][] and written with [Jasmine][]. They're located in [src/test/javascript/](src/test/javascript/) and can be run with:
Unit tests are run by [Karma][] and written with [Jasmine][]. They're located in `src/test/javascript/` and can be run with:

yarn test

UI end-to-end tests are powered by [Cypress][], which is built on top of WebDriverJS. They're located in [src/test/javascript/e2e](src/test/javascript/e2e)
and can be run by starting Spring Boot in one terminal (`./gradlew bootRun`) and running the tests (`yarn run e2e`) in a second one.
### Other tests

Performance tests are run by [Gatling][] and written in Scala. They're located in [src/test/gatling](src/test/gatling) and can be run with:
Performance tests are run by [Gatling][] and written in Scala. They're located in `src/test/gatling` and can be run with:

./gradlew gatlingRunAll

Expand Down
4 changes: 1 addition & 3 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,7 @@
},
"configurations": {
"production": {
"devServerTarget": "management-portal:serve:production",
"watch": false,
"headless": true
"devServerTarget": "management-portal:serve:production"
}
}
}
Expand Down
37 changes: 25 additions & 12 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ plugins {
id "io.github.gradle-nexus.publish-plugin" version "1.3.0"
id("com.github.ben-manes.versions") version "0.47.0"
id 'org.jetbrains.kotlin.jvm' version "1.9.10"
id "org.jetbrains.kotlin.kapt" version "1.9.10"
id 'org.jetbrains.kotlin.plugin.serialization' version '1.9.10' apply false
id 'org.jetbrains.dokka' version "1.8.20"
id "org.jetbrains.kotlin.plugin.allopen" version "1.9.10"
}

apply plugin: 'org.springframework.boot'
Expand All @@ -32,7 +34,7 @@ apply plugin: 'io.spring.dependency-management'

allprojects {
group 'org.radarbase'
version '2.1.0' // project version
version '2.1.1' // project version

// The comment on the previous line is only there to identify the project version line easily
// with a sed command, to auto-update the version number with the prepare-release-branch.sh
Expand Down Expand Up @@ -147,9 +149,10 @@ if (project.hasProperty('prod')) {
ext.findbugAnnotationVersion = '3.0.2'

dependencies {
implementation("org.jetbrains.kotlin:kotlin-reflect:${kotlin_version}")
implementation("tech.jhipster:jhipster-framework:${jhipster_server_version}")
implementation("tech.jhipster:jhipster-dependencies:${jhipster_server_version}")
implementation("io.micrometer:micrometer-core")
implementation("io.micrometer:micrometer-core:${micrometer_version}")
runtimeOnly "com.fasterxml.jackson.datatype:jackson-datatype-jsr310"
implementation "com.fasterxml.jackson.datatype:jackson-datatype-hibernate5"
implementation "com.fasterxml.jackson.dataformat:jackson-dataformat-csv"
Expand All @@ -169,28 +172,29 @@ dependencies {
runtimeOnly ("org.springframework.boot:spring-boot-starter-data-jpa") {
exclude group: 'org.hibernate', module: 'hibernate-entitymanager'
}
implementation "org.hibernate:hibernate-core"
implementation "org.hibernate:hibernate-envers"
implementation 'org.hibernate:hibernate-validator:8.0.0.Final'

runtimeOnly "org.postgresql:postgresql:${postgresql_version}"
runtimeOnly "org.hsqldb:hsqldb:${hsqldb_version}"

runtimeOnly "org.springframework.boot:spring-boot-starter-security"
implementation "org.springframework.security:spring-security-data"

implementation("org.springframework.boot:spring-boot-starter-web") {
exclude module: 'spring-boot-starter-tomcat'
}
runtimeOnly "org.springframework.boot:spring-boot-starter-security"
implementation ("org.springframework.boot:spring-boot-starter-undertow")

implementation "org.hibernate:hibernate-core"
implementation "org.hibernate:hibernate-envers"
implementation "org.hibernate:hibernate-validator:${hibernate_validator_version}"

runtimeOnly "org.postgresql:postgresql:${postgresql_version}"
runtimeOnly "org.hsqldb:hsqldb:${hsqldb_version}"

// Fix vulnerabilities
runtimeOnly("io.undertow:undertow-websockets-jsr:2.2.25.Final")
runtimeOnly("io.undertow:undertow-servlet:2.2.25.Final")
runtimeOnly("io.undertow:undertow-core:2.2.25.Final")

implementation "org.springframework.boot:spring-boot-starter-thymeleaf"
runtimeOnly("org.thymeleaf:thymeleaf-spring5:${thymeleaf_version}")
runtimeOnly("org.thymeleaf:thymeleaf:${thymeleaf_version}")
runtimeOnly("org.thymeleaf:thymeleaf-spring5:${thymeleaf_version}")
implementation("org.springframework:spring-context-support")
implementation("org.springframework.session:spring-session-hazelcast")

Expand All @@ -201,6 +205,9 @@ dependencies {
implementation project(':radar-auth')
implementation "org.springframework.data:spring-data-envers"

implementation "org.mockito:mockito-core:$mockito_version"
implementation "org.mockito.kotlin:mockito-kotlin:${mockito_kotlin_version}"

runtimeOnly("jakarta.xml.bind:jakarta.xml.bind-api:${javax_xml_bind_version}")
runtimeOnly("org.glassfish.jaxb:jaxb-core:${javax_jaxb_core_version}")
runtimeOnly("org.glassfish.jaxb:jaxb-runtime:${javax_jaxb_runtime_version}")
Expand All @@ -217,14 +224,20 @@ dependencies {
testImplementation "org.springframework.boot:spring-boot-test"
testImplementation "org.assertj:assertj-core:${assertj_version}"
testImplementation "org.junit.jupiter:junit-jupiter-api"
testImplementation "org.mockito:mockito-core:$mockito_version"
testImplementation "org.mockito.kotlin:mockito-kotlin:${mockito_kotlin_version}"
testImplementation "com.mattbertolini:liquibase-slf4j:${liquibase_slf4j_version}"
testImplementation "org.hamcrest:hamcrest-library"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine"

annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")
}

allOpen {
annotation("org.springframework.stereotype.Component")
annotation("org.springframework.boot.test.context.SpringBootTest")
annotation("org.springframework.web.bind.annotation.RestController")
}

dependencyManagement {
imports {
mavenBom "com.fasterxml.jackson:jackson-bom:$jackson_version"
Expand Down
2 changes: 1 addition & 1 deletion cypress.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"screenshotsFolder": "src/test/javascript/e2e/cypress/screenshots",
"pluginsFile": false,
"fixturesFolder": false,
"baseUrl": "http://localhost:9000"
"baseUrl": "http://localhost:8081"
}
18 changes: 13 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ rootProject.name=management-portal
profile=dev
assertj_version=3.23.1
jhipster_server_version=7.9.3
hazelcast_version=5.2.4
hazelcast_version=5.2.5
hazelcast_hibernate_version=5.1.0
hikaricp_version=5.0.1
liquibase_slf4j_version=4.1.0
liquibase_version=4.22.0
postgresql_version=42.6.0
postgresql_version=42.6.1
springdoc_version=1.6.15
spring_boot_version=2.7.15
spring_framework_version=5.3.27
Expand All @@ -16,20 +16,28 @@ thymeleaf_version=3.1.2.RELEASE
spring_session_version=2021.2.0
gatling_version=3.8.4
mapstruct_version=1.5.5.Final
jackson_version=2.15.2
jackson_version=2.16.1
javax_xml_bind_version=2.3.3
javax_jaxb_core_version=2.3.0.1
javax_jaxb_runtime_version=2.3.8
javax_activation=1.1.1
mockito_version=4.8.1
mockito_kotlin_version=5.1.0
slf4j_version=2.0.7
logback_version=1.4.11
oauth_jwt_version=4.4.0
junit_version=5.10.0
okhttp_version=4.10.0
hsqldb_version=2.7.2
coroutines_version=1.7.3
ktor_version=2.3.3
coroutines_version=1.8.0
ktor_version=2.3.9
radar_commons_version=1.0.0
hamcrest_version=2.2
wiremock_version=3.0.1
kotlin_version=1.9.10
micrometer_version=1.12.3
hibernate_orm_version=6.4.4.Final
hibernate_validator_version=8.0.0.Final

kotlin.code.style=official
org.gradle.vfs.watch=true
Expand Down
6 changes: 1 addition & 5 deletions gradle/docker.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,5 @@ task buildDocker(type: Exec, dependsOn: bootWar) {
include "*.war*"
}
}
if (OperatingSystem.current().isWindows()) {
commandLine 'cmd', '/c', 'docker', 'image', 'build', '-f', 'build/docker/Dockerfile', '-t', 'managementportal', 'build/docker/'
} else {
commandLine 'docker', 'image', 'build', '-f', 'build/docker/Dockerfile', '-t', 'managementportal', 'build/docker/'
}
commandLine 'docker', 'image', 'build', '-f', 'build/docker/Dockerfile', '-t', 'managementportal', 'build/docker/'
}
2 changes: 1 addition & 1 deletion gradle/mapstruct.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

dependencies {
implementation group: 'org.mapstruct', name: 'mapstruct', version: mapstruct_version
annotationProcessor group: 'org.mapstruct', name: 'mapstruct-processor', version: mapstruct_version
kapt group: 'org.mapstruct', name: 'mapstruct-processor', version: mapstruct_version
}
4 changes: 4 additions & 0 deletions gradle/profile_dev.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ if (project.hasProperty('no-liquibase')) {
profiles += ',no-liquibase'
}

if (project.hasProperty('e2e-prod-test')) {
profiles += ',e2e-prod-test'
}

bootRun {
args = []
systemProperty "spring.profiles.active", profiles
Expand Down
Loading
Loading