generated from qbicsoftware/spring-boot-starter-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from qbicsoftware/release/1.0.0
## 1.0.0 (2022-01-28) * Add first working implementation to report updates based on a point in time. * The application fails when any problems arise retrieving samples
- Loading branch information
Showing
59 changed files
with
2,095 additions
and
334 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<settings> | ||
<servers> | ||
<server> | ||
<id>nexus-snapshots</id> | ||
<username>${env.MAVEN_REPO_USERNAME}</username> | ||
<password>${env.MAVEN_REPO_PASSWORD}</password> | ||
</server> | ||
<server> | ||
<id>nexus-releases</id> | ||
<username>${env.MAVEN_REPO_USERNAME}</username> | ||
<password>${env.MAVEN_REPO_PASSWORD}</password> | ||
</server> | ||
</servers> | ||
</settings> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: Build Maven Package | ||
|
||
on: [push] | ||
on: [ push ] | ||
|
||
jobs: | ||
build: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ name: Generate reports and API documentation | |
|
||
on: | ||
release: | ||
types: [created] | ||
types: [ created ] | ||
push: | ||
branches: | ||
- development | ||
|
@@ -20,10 +20,10 @@ jobs: | |
- name: Install git | ||
run: sudo apt-get install git | ||
|
||
- name: Set up JDK 1.11 | ||
- name: Set up JDK 1.17 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.11 | ||
java-version: 1.17 | ||
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml | ||
settings-path: ${{ github.workspace }} | ||
|
||
|
@@ -44,15 +44,15 @@ jobs: | |
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
${{ runner.os }}-maven- | ||
- name: Maven generate reports | ||
run: mvn --activate-profiles !development-build,!release-build --settings .github.settings.xml site | ||
|
||
- name: Set up git | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "JohnnyQ5" | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "JohnnyQ5" | ||
- name: Publish reports | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: Groovy Checkstyle | ||
|
||
on: [push] | ||
on: [ push ] | ||
|
||
jobs: | ||
build: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: Run Maven Tests | ||
|
||
on: [push] | ||
on: [ push ] | ||
|
||
jobs: | ||
build: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,9 @@ hs_err_pid* | |
|
||
# misc | ||
*.DS_STORE | ||
/target/ | ||
/bin/ | ||
|
||
# IntelliJ | ||
|
||
.idea | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Changelog | ||
|
||
This project adheres to [Semantic Versioning](https://semver.org/). | ||
|
||
## 1.0.0 (2022-01-28) | ||
|
||
* Add first working implementation to report updates based on a point in time. | ||
* The application fails when any problems arise retrieving samples | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,43 @@ | ||
# LIMS Sample Status Reporter | ||
# LIMS Sample Status Reporter | ||
|
||
[![CodeQL](https://github.com/qbicsoftware/sample-status-reporter/actions/workflows/codeql-analysis.yml/badge.svg?branch=main)](https://github.com/qbicsoftware/sample-status-reporter/actions/workflows/codeql-analysis.yml) | ||
[![Latest Release ](https://img.shields.io/github/v/release/qbicsoftware/sample-status-reporter.svg)](https://github.com/qbicsoftware/sample-status-reporter/releases) | ||
![Groovy Language](https://img.shields.io/badge/language-groovy-blue.svg) | ||
|
||
The LIMS Sample status reporter application is used to report changes in the status of a sample set in the LIMS environment to Sample Tracking Service. | ||
|
||
Overview: | ||
|
||
- [Requirements](#requirements) | ||
- [Run the app](#run-the-app) | ||
- [App structure](#app-structure) | ||
|
||
# Requirements | ||
|
||
To run this app, you need to have version 17 of a **Java JRE** or **JDK** installed (e.g. **Zulu**). | ||
## System setup | ||
|
||
For this application to be run the following environment variables need to be set: | ||
|
||
| Name | Description | | ||
|-------------------------------------|------------------------------------------------------------------------| | ||
| `LAST_UPDATE_FILE` | A path to a persistent file. The last successful run is stored here. | | ||
| `LIMS_PASSWORD` | The password to access the OpenBiS LIMS | | ||
| `LIMS_SERVER_URL` | The URL to the OpenBiS LIMS API | | ||
| `LIMS_USER` | The user to access the OpenBiS LIMS | | ||
| `SAMPLE_TRACKING_AUTH_PASSWORD` | The password for the sample tracking user | | ||
| `SAMPLE_TRACKING_AUTH_USER` | The username for the sample tracking service | | ||
| `SAMPLE_TRACKING_LOCATION_ENDPOINT` | The endpoint to list all locations. This does not contain the base url | | ||
| `SAMPLE_TRACKING_LOCATION_USER` | The sample tracking user currently using the application | | ||
| `SAMPLE_TRACKING_URL` | The base URL for the sample tracking service | | ||
| `USER_DB_DIALECT` | The database dialect of the user database | | ||
| `USER_DB_DRIVER` | The database driver for the user database | | ||
| `USER_DB_HOST` | The URL to the host of the user database containing the database name | | ||
| `USER_DB_USER_NAME` | The database user name | | ||
| `USER_DB_USER_PW` | The database user password | | ||
|
||
## Run the app | ||
|
||
Checkout the latest code from `main` and run the Maven goal `spring-boot:run`: | ||
|
||
``` | ||
mvn spring-boot:run | ||
mvn spring-boot:run [-Dspring-boot.run.arguments=[-hV],[-t=<timePoint>]] | ||
-h, --help Show this help message and exit. | ||
-t, --time-point=<timePoint> | ||
Point in time from where to search for updates e.g. '2022-01-01T00:00:00Z'. | ||
Defaults to the last successful run. | ||
If never run successfully defaults to the same time yesterday. | ||
-V, --version Print version information and exit. | ||
``` | ||
|
||
|
||
## App structure | ||
|
||
The preliminary app structure is outlined in this UML diagram: | ||
![Bioinformatics Analysis Result Set ER](./docs/Spring%20Boot%20Starter%20Template%20UML.jpg) | ||
|
||
|
||
|
||
|
Oops, something went wrong.