Skip to content

Commit 249aa72

Browse files
committed
fix: enforce utf-8 encoding in the changelog endpoint; remove date from old changelog entries
1 parent 7de31b3 commit 249aa72

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

CHANGELOG.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88

99
## [5.0.1]
1010

11-
1211
### Fixed
1312

1413
#### Frontend
1514

1615
* empty `platform` attribute is no longer stored when SUSHI credentials are saved
1716
* display of the list of harvests was fixed for cases where sorting was switched off
17+
* changelog for the oldest versions was fixed and the changelog API endpoint was fixed
18+
for platforms where UTF-8 is not the default encoding
1819

1920
#### Backend
2021

2122
* deleting from Clickhouse was fixed to avoid slow performance for some queries
2223

2324

25+
2426
## [5.0.0]
2527

2628
### Added
@@ -1531,21 +1533,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
15311533
- StopIteration error occurring for empty Counter 4 files was fixed
15321534
- error ingesting JR1 GOA report was fixed
15331535

1534-
## [2.1.2] (2020-08-19)
1536+
## [2.1.2]
15351537

15361538
### Fixes
15371539

15381540
- fix metric display in charts - remapping should not be shown the same way as in the admin
15391541
- fix storing of TSV files instead of raw XML for successful C4 attempts
15401542

1541-
## [2.1.1] (2020-08-18)
1543+
## [2.1.1]
15421544

15431545
### Fixes
15441546

15451547
- fix mismatch of version hash between credentials and attempts causing
15461548
incorrect display of attempt status on SUSHI downloads page
15471549

1548-
## [2.1.0] (2020-08-18)
1550+
## [2.1.0]
15491551

15501552
### Added
15511553

apps/releases/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def latest(self, request):
3636

3737
class Changelog(ViewSet):
3838
def list(self, request):
39-
with open(settings.BASE_DIR / "CHANGELOG.md") as f:
39+
with open(settings.BASE_DIR / "CHANGELOG.md", 'rt', encoding='utf-8') as f:
4040
content = f.read()
4141
list_of_releases = content.split("## [")
4242
list_of_releases.pop(0)

0 commit comments

Comments
 (0)