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.
<!-- Release notes generated using configuration in .github/release.yml at development --> ## What's Changed ### New Features 🚀 * remove queries to user database, use user from known locations by @wow-such-code in #20 * Allow for property name adjustment in the LIMS by @KochTobi in #21 ### Bugfixes 🪲 * update workflows by @wow-such-code in #19 * Ignore sequencing completed status. by @KochTobi in #22 ## New Contributors * @JohnnyQ5 made their first contribution in #18 * @wow-such-code made their first contribution in #19 **Full Changelog**: 1.0.2...1.1.0
- Loading branch information
Showing
18 changed files
with
328 additions
and
463 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
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,9 +1,8 @@ | ||
<div align="center"> | ||
|
||
# LIMS Sample Status Reporter | ||
<i>A command line tool to report LIMS changes to the sample-tracking service</i>. | ||
|
||
|
||
<i>A command line tool to report LIMS changes to the sample-tracking service</i>. | ||
|
||
[![Build Maven Package](https://github.com/qbicsoftware/sample-status-reporter/actions/workflows/build_package.yml/badge.svg)](https://github.com/qbicsoftware/sample-status-reporter/actions/workflows/build_package.yml) | ||
[![Run Maven Tests](https://github.com/qbicsoftware/sample-status-reporter/actions/workflows/run_tests.yml/badge.svg)](https://github.com/qbicsoftware/sample-status-reporter/actions/workflows/run_tests.yml) | ||
|
@@ -20,7 +19,7 @@ | |
|
||
As updating sample statuses in more then one place can lead to errors and frustration, automation of | ||
this process is deemed important. The `sample-status-reporter` automates the migration of updated | ||
sample statuses from an openBis LIMS to the | ||
sample statuses from an openBis LIMS to the | ||
[sample-tracking-service](https://github.com/qbicsoftware/sample-tracking-service). | ||
|
||
**Interaction with the sample-tracking-service** | ||
|
@@ -37,12 +36,13 @@ entry for further detail. | |
**Integration with the openBIS LIMS** | ||
|
||
The sample information is retrieved automatically from an openBIS instance acting as LIMS. The | ||
configuration of the openBIS needs to make sure each sample proviedes the following properties: | ||
configuration of the openBIS needs to make sure each sample provides a QBiC barcode (containing `Q`) and a sample status. | ||
Furthermore, the names of the properties providing this information needs to be provided (see [Environment Variables](#environment-variables)). | ||
|
||
* `QBIC_BARCODE` containing `Q` | ||
* `SAMPLE_STATUS` containing values | ||
from `[SAMPLE_RECEIVED, QC_PASSED, QC_FAILED, LIBRARY_PREP_FINISHED]`. | ||
* The sample status may contain values | ||
from `["Sample received", "QC passed", "QC failed", "Library completed"]`. | ||
|
||
Besides that you can configure LIMS statuses this tools will ignore. For this pass a comma-separated list in the `LIMS_IGNORED_STATUSES` environment variable. | ||
This tool acts in the role of a user configured by you. Please make sure, that the configured user | ||
only sees projects where you want to propagate the status to the sample-tracking system. | ||
|
||
|
@@ -97,22 +97,22 @@ Please note that this project requires `java 17`. | |
For this application to be run the following environment variables need to be set: | ||
| Environment Variable | Description | Default Value | | ||
|-------------------------------------|------------------------------------------------------------------------|----------------------------------------| | ||
| `LAST_UPDATE_FILE` | A path to a persistent file. The last successful run is stored here. | `last-updated.txt ` | | ||
| `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 | `astrongpassphrase! ` | | ||
| `SAMPLE_TRACKING_AUTH_USER` | The username for the sample tracking service | `qbic` | | ||
| `SAMPLE_TRACKING_LOCATION_ENDPOINT` | The endpoint to list all locations. This does not contain the base url | `/locations` | | ||
| `SAMPLE_TRACKING_LOCATION_USER` | The sample tracking user currently using the application | `[email protected]` | | ||
| `SAMPLE_TRACKING_URL` | The base URL for the sample tracking service | `http://localhost.de` | | ||
| `USER_DB_DIALECT` | The database dialect of the user database | `org.hibernate.dialect.MariaDBDialect` | | ||
| `USER_DB_DRIVER` | The database driver for the user database | `com.mysql.cj.jdbc.Driver` | | ||
| `USER_DB_HOST` | The URL to the host of the user database containing the database name | `localhost` | | ||
| `USER_DB_USER_NAME` | The database user name | `myusername` | | ||
| `USER_DB_USER_PW` | The database user password | ` astrongpassphrase!` | | ||
| Environment Variable | Description | Default Value | | ||
|-------------------------------------|-----------------------------------------------------------------------------------------------|----------------------------------------| | ||
| `LAST_UPDATE_FILE` | A path to a persistent file. The last successful run is stored here. | `last-updated.txt ` | | ||
| `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 | | | ||
| `LIMS_BARCODE_PROPERTY` | The name of the property in the OpenBiS LIMS from which to read the QBiC barcode | | | ||
| `LIMS_STATUS_PROPERTY` | The name of the property in the OpenBis LIMS from which to read the sample status information | | | ||
| `LIMS_IGNORED_STATUSES` | A comma-separated list of LIMS sample statuses to be ignored by the reporter | | | ||
| `SAMPLE_TRACKING_AUTH_PASSWORD` | The password for the sample tracking user | `astrongpassphrase! ` | | ||
| `SAMPLE_TRACKING_AUTH_USER` | The username for the sample tracking service | `qbic` | | ||
| `SAMPLE_TRACKING_LOCATION_ENDPOINT` | The endpoint to list all locations. This does not contain the base url | `/locations` | | ||
| `SAMPLE_TRACKING_LOCATION_USER` | The sample tracking user currently using the application | `[email protected]` | | ||
| `SAMPLE_TRACKING_URL` | The base URL for the sample tracking service | `http://localhost.de` | | ||
| `USER_DB_DIALECT` | The database dialect of the user database | `org.hibernate.dialect.MariaDBDialect` | | ||
| `USER_DB_DRIVER` | The database driver for the user database | `com.mysql.cj.jdbc.Driver` | | ||
| `USER_DB_HOST` | The URL to the host of the user database containing the database name | `localhost` | | ||
| `USER_DB_USER_NAME` | The database user name | `myusername` | | ||
| `USER_DB_USER_PW` | The database user password | ` astrongpassphrase!` | |
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
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
Oops, something went wrong.