Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 0.14.4 #1341

Merged
merged 12 commits into from
Jul 31, 2024
14 changes: 14 additions & 0 deletions RELEASE.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
Release Notes
=============

Version 0.14.4
--------------

- fix bug (#1340)
- dev mode (#1333)
- Updated designs for the unit page (#1325)
- Avoid course overwrites in program ETL pipelines (#1332)
- Assign mitxonline certificate type from api values (#1335)
- add default yearly_decay_percent (#1330)
- Modal dialog component and styles
- tab widths (#1309)
- Resource availability: backend changes (#1301)
- styling and icon updates (#1316)

Version 0.14.3 (Released July 29, 2024)
--------------

Expand Down
35 changes: 35 additions & 0 deletions data_fixtures/migrations/0005_unit_page_copy_updates.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
from django.db import migrations

fixtures = [
{
"name": "mitpe",
"channel_configuration": {
"heading": (
"Offering lifelong learning opportunities that prepare engineering, "
"science, and technology professionals to address complex industry "
"challenges."
),
},
},
]


def update_copy(apps, schema_editor):
Channel = apps.get_model("channels", "Channel")
for fixture in fixtures:
channel_configuration_updates = fixture["channel_configuration"]
channel = Channel.objects.get(name=fixture["name"])
if Channel.objects.filter(name=fixture["name"]).exists():
for key, val in channel_configuration_updates.items():
channel.configuration[key] = val
channel.save()


class Migration(migrations.Migration):
dependencies = [
("data_fixtures", "0004_upsert_initial_topic_data"),
]

operations = [
migrations.RunPython(update_copy, migrations.RunPython.noop),
]
Loading
Loading