Skip to content

Commit

Permalink
Merge pull request #118 from rmnldwg/release-0.4.5
Browse files Browse the repository at this point in the history
Release 0.4.5
  • Loading branch information
rmnldwg authored Aug 7, 2024
2 parents 7650d64 + 2743eea commit 84e1262
Show file tree
Hide file tree
Showing 7 changed files with 281 additions and 200 deletions.
22 changes: 10 additions & 12 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: https://github.com/hadialqattan/pycln
rev: v2.3.0
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.6
hooks:
- id: pycln
args: [--config=pyproject.toml]
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
files: "\\.(py)$"
args: [--settings-path=pyproject.toml]
- id: ruff
args: [ --fix ]
- id: ruff-format
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v2.1.1
rev: v3.4.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
Expand Down
51 changes: 41 additions & 10 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,25 @@

All notable changes to this project will be documented in this file.

<a name="0.4.5"></a>

## [0.4.5] - 2024-08-07

### 📚 Documentation

- Add `collectstatic` to `run-local.md` help

### ⚙️ Miscellaneous Tasks

- Minor permission stuff
- Switch to ruff

### Change

- Represent M-stage MX as -1 instead of 2 in model definition

<a name="0.4.4"></a>

## [0.4.4] - 2024-04-11

With a lot of trial end error I have improved the setup process to a point where I think it runs stable and reproducible. Also, this fixes an issue where secrets could have been leaked.
Expand All @@ -23,8 +41,8 @@ With a lot of trial end error I have improved the setup process to a point where
- Collectstatic & migrate may need root access during service startup
- Shush matplotlib's warning (not used anyways)


<a name="0.4.3"></a>

## [0.4.3] - 2024-04-10

### 🐛 Bug Fixes
Expand All @@ -36,8 +54,8 @@ With a lot of trial end error I have improved the setup process to a point where

- Bump git-cliff


<a name=0.4.1></a>

## [0.4.2] - 2024-03-15

### Change
Expand All @@ -60,8 +78,8 @@ With a lot of trial end error I have improved the setup process to a point where
- Refs parsed as equation
- Throw better error when GitHub token expired


<a name=0.4.1></a>

## [0.4.1] - 2023-12-05

### Bug Fixes
Expand All @@ -76,11 +94,12 @@ With a lot of trial end error I have improved the setup process to a point where

- Deployment script (GitHub actions) runs more stably now and accepts inputs (fixes [#110])


<a name="0.4.0"></a>

## [0.4.0] - 2023-11-28

### Bug Fixes

- add minor version to all dependencies
- store GitHub/repo related `Dataset` info in fields to reduce number of API calls
- `Dataset` import now works with private repos and stores them hidden behind authentication
Expand All @@ -96,6 +115,7 @@ With a lot of trial end error I have improved the setup process to a point where
- make AJAX update data-tooltips, fixes [#99]

### Code Refactoring

- trim down duplicate & unused CSS code, related to [#100]
- pull apart CSS files in dataexplorer, related to [#100]
- clean up index templates & static files, related to [#100]
Expand All @@ -108,10 +128,12 @@ With a lot of trial end error I have improved the setup process to a point where
- rename `core` to `lyprox`

### Documentation

- update home, add link to lynference revision
- add help tooltips to risk predictor

### Features

- add T0 button to the Data Explorer. Fixes [#108]
- add commands `add_institutions`, `add_users`, `add_datasets`, and `add_riskmodels` twith which one can either initialize the respective models from a JSON file or add individual instances using command line arguments. This fixes [#109]
- enable dataset to detect corruption via SHA value of file
Expand All @@ -130,21 +152,25 @@ With a lot of trial end error I have improved the setup process to a point where
- implement risk predictor, fixes [#15]

### Maintenance

- replace migration with command for initial user and institution data
- add Esmee to initial user database

### Testing
- write tests for dataset functionality

- write tests for dataset functionality

<a name="0.3.4"></a>

## [0.3.4] - 2023-03-23

### Documentation

- add info to important settings
- update run-local instructions

### Maintenance

- use a minimalistic deploy bash script and change GitHub actions CI
- write a simple bash script for backing up the [SQLite3] database
- add `systemd` config for [gunicorn] service, making start-up faster and more seamless
Expand All @@ -159,50 +185,56 @@ With a lot of trial end error I have improved the setup process to a point where
[gunicorn]: https://gunicorn.org/
[nginx]: https://nginx.org/en/


<a name="0.3.3"></a>

## [0.3.3] - 2023-03-08

### Bug Fixes
- revert syntax to python 3.8

- revert syntax to python 3.8

<a name="0.3.2"></a>

## [0.3.2] - 2023-03-08

### Bug Fixes

- new query produces fewer SQL lines, thereby fixing [#89]
- patient list working again after new query broke it

### Documentation

- switch to markdown for `README.md`
- improve `README.md`
- correct two small errors in static texts
- improve query function's docstrings

### Testing
- Implement some unit tests for new querying

- Implement some unit tests for new querying

<a name="0.3.1"></a>

## [0.3.1] - 2023-03-06

### Code Refactoring

- make `DashboardView` methods more reusable
- modularize dashboard HTML layout
- put dashboard help templates in separate folder

### Features

- dashboard uses AJAX now (fixes [#94])

### Maintenance

- use conventional commits & start changelog

## Before [0.3.0] - 2023-03-02

Commits before the 2nd of March 2023 did not use conventional commits and no changelog was maintained. For completeness, we give the links to the respective diffs of previous releases below.


[lynference]: https://github.com/rmnldwg/lynference

- [0.3.0] - 2022-07-05
Expand Down Expand Up @@ -232,7 +264,6 @@ Commits before the 2nd of March 2023 did not use conventional commits and no cha
- [0.0.2] - 2021-10-04
- 0.0.1 - 2021-10-04

[Unreleased]: https://github.com/rmnldwg/lyprox/compare/0.4.4...HEAD
[0.4.4]: https://github.com/rmnldwg/lyprox/compare/0.4.3...0.4.4
[0.4.3]: https://github.com/rmnldwg/lyprox/compare/0.4.2...0.4.3
[0.4.2]: https://github.com/rmnldwg/lyprox/compare/0.4.1...0.4.2
Expand Down
18 changes: 18 additions & 0 deletions lyprox/patients/migrations/0004_alter_patient_m_stage.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 4.2.15 on 2024-08-07 15:13

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('patients', '0003_alter_patient_t_stage_alter_tumor_t_stage'),
]

operations = [
migrations.AlterField(
model_name='patient',
name='m_stage',
field=models.SmallIntegerField(choices=[(0, 'M0'), (1, 'M1'), (-1, 'MX')], default=0),
),
]
Loading

0 comments on commit 84e1262

Please sign in to comment.