Skip to content

Release 0.37.1 #2358

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

Closed
wants to merge 16 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- 5432:5432

redis:
image: redis:7.4.4
image: redis:7.4.5
ports:
- 6379:6379

Expand Down
18 changes: 18 additions & 0 deletions RELEASE.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,24 @@
Release Notes
=============

Version 0.37.1
--------------

- add a healthcheck route (#2357)
- fix price separator display (#2348)
- chore(deps): update dependency eslint-plugin-jest to v29 (#2356)
- canvas - separate courses per session (#2347)
- fix(deps): update dependency litellm to v1.74.2 (#2354)
- fix(deps): update dependency ruff to v0.12.3 (#2353)
- fix(deps): update dependency onnxruntime to v1.22.1 (#2352)
- chore(deps): update redis docker tag to v7.4.5 (#2351)
- Set language attribute on resource title and descriptions (#2346)
- Add Canvas platform for learning resources (#2345)
- Shanbady/summary flashcard sync (#2339)
- Testimonial spacing to allow 2 line attestation title (#2344)
- Remove the chat demo pages (#2341)
- Return to page after sign up (#2340)

Version 0.37.0 (Released July 14, 2025)
--------------

Expand Down
5 changes: 3 additions & 2 deletions authentication/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from django.contrib.auth import logout
from django.shortcuts import redirect
from django.utils.http import url_has_allowed_host_and_scheme
from django.utils.http import url_has_allowed_host_and_scheme, urlencode
from django.views import View

from main import settings
Expand Down Expand Up @@ -80,7 +80,8 @@ def get(
not profile.completed_onboarding
and request.GET.get("skip_onboarding", "0") == "0"
):
redirect_url = settings.MITOL_NEW_USER_LOGIN_URL
params = urlencode({"next": redirect_url})
redirect_url = f"{settings.MITOL_NEW_USER_LOGIN_URL}?{params}"
profile.completed_onboarding = True
profile.save()
return redirect(redirect_url)
5 changes: 4 additions & 1 deletion authentication/views_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,17 @@ def test_custom_login_view_authenticated_user_with_onboarding(mocker):
request.user = MagicMock(is_anonymous=False)
request.user.profile = MagicMock(completed_onboarding=False)
mocker.patch("authentication.views.get_redirect_url", return_value="/dashboard")
mocker.patch(
"authentication.views.urlencode", return_value="next=/search?resource=184"
)
mocker.patch(
"authentication.views.settings.MITOL_NEW_USER_LOGIN_URL", "/onboarding"
)

response = CustomLoginView().get(request)

assert response.status_code == 302
assert response.url == "/onboarding"
assert response.url == "/onboarding?next=/search?resource=184"


def test_custom_login_view_authenticated_user_skip_onboarding(mocker):
Expand Down
12 changes: 12 additions & 0 deletions data_fixtures/fixtures/platforms.json
Original file line number Diff line number Diff line change
Expand Up @@ -214,5 +214,17 @@
"created_on": "2024-02-23T00:00:00+00:00",
"updated_on": "2024-02-23T00:00:00+00:00"
}
},
{
"model": "learning_resources.LearningResourcePlatform",
"fields": {
"code": "canvas",
"name": "Canvas",
"is_edx": false,
"has_content_files": true,
"url": "https://web.mit.edu/canvas/",
"created_on": "2025-07-10T00:00:00+00:00",
"updated_on": "2025-07-10T00:00:00+00:00"
}
}
]
44 changes: 44 additions & 0 deletions data_fixtures/migrations/0016_add_canvas_platform.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Generated manually


from django.db import migrations


def remove_canvas_platform(apps, schema_editor):
"""
Remove canvas platform
"""

LearningResourcePlatform = apps.get_model(
"learning_resources", "LearningResourcePlatform"
)
LearningResourcePlatform.objects.filter(code="canvas").delete()


def add_canvas_platform(apps, schema_editor):
LearningResourcePlatform = apps.get_model(
"learning_resources", "LearningResourcePlatform"
)

LearningResourcePlatform.objects.update_or_create(
code="canvas",
defaults={
"name": "Canvas",
"is_edx": False,
"has_content_files": True,
"url": "https://web.mit.edu/canvas/",
},
)


class Migration(migrations.Migration):
dependencies = [
(
"data_fixtures",
"0015_unit_page_copy_updates",
),
]

operations = [
migrations.RunPython(add_canvas_platform, remove_canvas_platform),
]
2 changes: 1 addition & 1 deletion docker-compose.services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ services:
redis:
profiles:
- backend
image: redis:7.4.4
image: redis:7.4.5
healthcheck:
test: ["CMD", "redis-cli", "ping", "|", "grep", "PONG"]
interval: 3s
Expand Down
9 changes: 5 additions & 4 deletions frontends/api/src/generated/v0/api.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading