Skip to content

Commit bd703bd

Browse files
authored
fix: set utf8mb4 charset on django conection options (#173)
Since several releases ago Tutor uses utf8mb4 as the default conection charset but does not properly configure it for instances running external MySQL. This also includes some unrelated changes to the changelog management.
1 parent 35339ca commit bd703bd

6 files changed

Lines changed: 29 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,15 @@ See the fragment files in the [changelog.d/ directory](./changelog.d).
1313

1414
<!-- scriv-insert-here -->
1515

16+
<a id='changelog-20.2.0'></a>
17+
## 20.2.0 — 2026-01-27
18+
19+
### Fixed
20+
21+
- Ensure that the `utf8mb4` charset is used when connecting to MySQL.
22+
- Do not proxy SCORM assets directly through the LMS. This restores the previous
23+
behaviour for versions prior to v19.0.3 of openedx-scorm-xblock.
24+
1625
<a id='changelog-20.1.1'></a>
1726
## 20.1.1 — 2025-12-04
1827

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{% if version %}{{ version }} — {% endif %}{{ date.strftime('%Y-%m-%d') }}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!--
2+
A new scriv changelog fragment.
3+
4+
Uncomment the section that is right (remove the HTML comment wrapper).
5+
For top level release notes, leave all the headers commented out.
6+
-->
7+
8+
{% for cat in config.categories -%}
9+
<!--
10+
### {{ cat }}
11+
12+
- A bullet item for the {{ cat }} category.
13+
14+
-->
15+
{% endfor -%}

drydock/patches/openedx-common-settings

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,5 @@ LOGGING["loggers"].pop("tracking")
3030
LOGGING["loggers"][""]["handlers"] = ["console"]
3131

3232
FORUM_MONGODB_DATABASE = "{{ FORUM_MONGODB_DATABASE }}"
33+
34+
DATABASES["default"]["OPTIONS"]["charset"] = "utf8mb4"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "tutor-contrib-drydock"
3-
version = "20.1.1"
3+
version = "20.2.0"
44
description = "A Tutor plugin to manage our opinionated Open edX operations"
55
readme = "README.md"
66
requires-python = ">=3.10"

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)