Skip to content

Commit

Permalink
Release v0.4.0
Browse files Browse the repository at this point in the history
Release v0.4.0
  • Loading branch information
Nils1729 authored Apr 19, 2023
2 parents 3c5a1bc + 36723f4 commit c3e074e
Show file tree
Hide file tree
Showing 149 changed files with 5,582 additions and 628 deletions.
2 changes: 2 additions & 0 deletions .eslint/typescript.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ module.exports = {
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:import/typescript',
// TODO: doesn't work for some reason from this config and has to be imported separately
// 'prettier',
],
Expand Down Expand Up @@ -249,6 +250,7 @@ module.exports = {
*/
'import/no-deprecated': 'warn',
'import/order': 'warn',
'import/no-cycle': 'warn',

/**
* @typescript-eslint
Expand Down
14 changes: 14 additions & 0 deletions .github/actions/add-commit-hash-to-version/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Add commit hash to version
description: Adds the current branch name and commit hash as suffix to the current version number
runs:
using: composite
steps:
- uses: ./.github/actions/extract-version
- name: Get suffix
id: get-suffix
run: echo "SUFFIX=$(git branch --show-current).$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
shell: bash
- name: Add suffix to version number
uses: ./.github/actions/update-version
with:
version: '${{ env.VERSION_NAME }}+${{ steps.get-suffix.outputs.SUFFIX }}'
10 changes: 10 additions & 0 deletions .github/actions/extract-version/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Extract version
description: Reads the current version number from the package.json and writes it to the VERSION_NAME GitHub environment variable
runs:
using: composite
steps:
- name: Read version from package.json
run: |
versionName=`jq -jM .version package.json`
echo "VERSION_NAME=$versionName" >> "$GITHUB_ENV"
shell: bash
6 changes: 6 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
### PR Checklist

Please make sure to fulfil the following conditions before marking this PR ready for review:

- [ ] If this PR adds or changes features or fixes bugs, this has been added to the changelog
- [ ] If this PR adds new actions or other ways to alter the state, [test scenarios](https://github.com/hpi-sam/digital-fuesim-manv-public-test-scenarios) have been added
16 changes: 6 additions & 10 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
run: cd shared && npm run build && cd ..

lint:
timeout-minutes: 3
timeout-minutes: 5
runs-on: ubuntu-latest

needs: build
Expand Down Expand Up @@ -277,6 +277,8 @@ jobs:
steps:
- uses: actions/checkout@v3
# Source: https://docs.docker.com/ci-cd/github-actions/
- name: Add commit hash to version
uses: ./.github/actions/add-commit-hash-to-version
- name: Login to docker
uses: docker/login-action@v2
with:
Expand All @@ -300,10 +302,7 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Extract version
run: |
versionName=`jq -jM .version package.json`
echo "version_name=$versionName" >> "$GITHUB_ENV"
- uses: ./.github/actions/extract-version
# Source: https://docs.docker.com/ci-cd/github-actions/
- name: Login to docker
uses: docker/login-action@v2
Expand All @@ -318,7 +317,7 @@ jobs:
push: true
tags: >
${{ secrets.DOCKER_HUB_USERNAME }}/dfm:latest ,
${{ secrets.DOCKER_HUB_USERNAME }}/dfm:${{ env.version_name }}
${{ secrets.DOCKER_HUB_USERNAME }}/dfm:${{ env.VERSION_NAME }}
release-main:
timeout-minutes: 2
Expand All @@ -333,10 +332,7 @@ jobs:
run: |
git config user.name "GitHub Actions"
git config user.email [email protected]
- name: Extract version
run: |
versionName=`jq -jM .version package.json`
echo "VERSION_NAME=$versionName" >> "$GITHUB_ENV"
- uses: ./.github/actions/extract-version
- name: Extract release notes
id: extract_release_notes
uses: ffurrer2/extract-release-notes@v1
Expand Down
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ docker-compose.yml

# The states in here should not be touched by humans
benchmark/data

test-scenarios/
39 changes: 38 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,42 @@ and this project does **not** adhere to [Semantic Versioning](https://semver.org

## [Unreleased]

## [0.4.0] - 2023-04-19

### Added

- There is now a display for how many different variations of a patient template exists.
- There is now a display for whether a patient is pregnant.
- The patient status display that visualizes the progression of a patient explains its icons via a tooltip.
- There is now a behavior that answers vehicle requests from other regions.
- There is now a behavior that automatically distributes vehicles to regions.
- The types and optional limits of the distribution can be specified.
- The behavior distributes the vehicles in rounds of one vehicle per category for every region every 60 seconds
- There is now a behavior to forward requests to other simulated regions or the trainees.
- There is now a radiogram for missing transfer connections and vehicle requests.
- Radiograms for vehicle requests can also be answered in the user interface, whether they have been accepted or not.
- When personnel is missing during patient treatment in a simulated region, the reassign treatment activity now sends an event to notify the region about the shortage.
- A new behavior has been added to respond to personnel shortages by instructing the region to request new vehicles.
- The priorities of vehicles to request can be configured in a new behavior tab.
- Development builds (the docker container with the `dev` tag) now show the commit hash they have been built from in the version number.
- The time until the next treatment recalculation for the automatic patient treatment is shown.

### Fixed

- New patients added to simulated regions during treatment are now also triaged and treated.
- When treatment is no longer secured, the displayed status is reverted back to lack of personnel.
- When the treatment status changes, personnel is reassigned immediately instead of after the next interval.

### Changed

- The icon for `C` (transport priority) in a patient status code has been changed to a road sign to be distinguishable from the icon for `D` (complication).
- `ConditionParameters.minimumHealth` and `ConditionParameters.maximumHealth` are now inclusive.
- Connected transfer points and hospitals are now listed in alphabetical order in the transfer popups.

### Fixed

- Dead/Black patients can now be treated (for the automatic triage to work), but they won't be treated after triage.

## [0.3.0] - 2023-03-27

### Added
Expand Down Expand Up @@ -108,7 +144,8 @@ and this project does **not** adhere to [Semantic Versioning](https://semver.org

### Initial unstable release of Digitale FüSim MANV

[Unreleased]: https://github.com/hpi-sam/digital-fuesim-manv/compare/v0.3.0...HEAD
[Unreleased]: https://github.com/hpi-sam/digital-fuesim-manv/compare/v0.4.0...HEAD
[0.4.0]: https://github.com/hpi-sam/digital-fuesim-manv/compare/v0.3.0...0.4.0
[0.3.0]: https://github.com/hpi-sam/digital-fuesim-manv/compare/v0.2.1...v0.3.0
[0.2.1]: https://github.com/hpi-sam/digital-fuesim-manv/compare/v0.2.0...v0.2.1
[0.2.0]: https://github.com/hpi-sam/digital-fuesim-manv/compare/v0.1.0...v0.2.0
Expand Down
Loading

0 comments on commit c3e074e

Please sign in to comment.