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.30.2 #2032

Merged
merged 14 commits into from
Feb 10, 2025
Merged
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
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
with:
node-version: "^20"
cache: yarn
Expand Down Expand Up @@ -194,7 +194,7 @@ jobs:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
with:
node-version: "^22"
cache: yarn
Expand All @@ -217,7 +217,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
with:
node-version: "^20"
cache: yarn
Expand Down Expand Up @@ -256,7 +256,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
with:
node-version: "^20"
cache: yarn
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
run: heroku container:login

- name: Release Backend on Heroku
uses: akhileshns/heroku-deploy@e86b991436e126ff9d78399b801a6610a64881c9
uses: akhileshns/heroku-deploy@c3187cbbeceea824a6f5d9e0e14e2995a611059c
with:
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: mitopen-production
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
with:
node-version: "^20"
cache: yarn
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-candidate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
run: heroku container:login

- name: Release Backend on Heroku
uses: akhileshns/heroku-deploy@e86b991436e126ff9d78399b801a6610a64881c9
uses: akhileshns/heroku-deploy@c3187cbbeceea824a6f5d9e0e14e2995a611059c
with:
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: mitopen-rc
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -135,3 +135,6 @@ storybook-static/

# ignore local ssl certs
certs/

# ignore db backups
backups/
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ repos:
- ".*/generated/"
additional_dependencies: ["gibberish-detector"]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.9.1"
rev: "v0.9.4"
hooks:
- id: ruff-format
- id: ruff
Expand Down
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ RUN mkdir /src
RUN adduser --disabled-password --gecos "" mitodl
RUN mkdir /var/media && chown -R mitodl:mitodl /var/media

# copy in trusted certs
COPY --chmod=644 certs/*.crt /usr/local/share/ca-certificates/
RUN update-ca-certificates

## Set some poetry config
ENV \
POETRY_VERSION=1.7.1 \
Expand Down
16 changes: 16 additions & 0 deletions RELEASE.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
Release Notes
=============

Version 0.30.2
--------------

- Update dependency litellm to v1.60.8 (#2028)
- Update dependency drf-spectacular to ^0.28.0 (#2027)
- Update nginx Docker tag to v1.27.4 (#2026)
- Skip existing embeddings (#2017)
- Update dependency ruff to v0.9.5 (#2025)
- Update dependency Django to v4.2.19 (#2024)
- Update akhileshns/heroku-deploy digest to c3187cb (#1829)
- [pre-commit.ci] pre-commit autoupdate (#1976)
- Update dependency eslint-config-prettier to v10 (#1995)
- Update actions/setup-node digest to 1d0ff46 (#2009)
- Added SCIM /Bulk API endpoint (#1985)
- Add initial migration for users app (#2013)

Version 0.30.1 (Released February 10, 2025)
--------------

Expand Down
File renamed without changes.
Empty file added certs/.keep
Empty file.
1 change: 1 addition & 0 deletions docker-compose.services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ services:
- POSTGRES_PASSWORD=postgres
volumes:
- pgdata:/var/lib/postgresql
- ./backups:/mnt/backups

redis:
profiles:
Expand Down
2 changes: 1 addition & 1 deletion frontends/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"cross-fetch": "^4.0.0",
"eslint": "8.57.1",
"eslint-config-mitodl": "^2.1.0",
"eslint-config-prettier": "^9.0.0",
"eslint-config-prettier": "^10.0.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jest": "^28.6.0",
Expand Down
6 changes: 3 additions & 3 deletions main/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import ulid
from django.conf import settings
from factory import LazyFunction, RelatedFactory, SubFactory, Trait
from factory import Faker, LazyFunction, RelatedFactory, SubFactory, Trait
from factory.django import DjangoModelFactory
from factory.fuzzy import FuzzyText
from social_django.models import UserSocialAuth
Expand All @@ -15,8 +15,8 @@ class UserFactory(DjangoModelFactory):

username = LazyFunction(lambda: ulid.new().str)
email = FuzzyText(suffix="@example.com")
first_name = FuzzyText()
last_name = FuzzyText()
first_name = Faker("first_name")
last_name = Faker("last_name")

profile = RelatedFactory("profiles.factories.ProfileFactory", "user")

Expand Down
12 changes: 8 additions & 4 deletions main/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
from main.settings_pluggy import * # noqa: F403
from openapi.settings_spectacular import open_spectacular_settings

VERSION = "0.30.1"
VERSION = "0.30.2"

log = logging.getLogger()

Expand Down Expand Up @@ -107,6 +107,7 @@
"drf_spectacular",
# Put our apps after this point
"main",
"users",
"authentication",
"channels",
"profiles",
Expand All @@ -121,6 +122,7 @@
"data_fixtures",
"vector_search",
"ai_chat",
"scim",
)

if not get_bool("RUN_DATA_MIGRATIONS", default=False):
Expand All @@ -140,9 +142,11 @@
"documentationUri": "",
},
],
"USER_ADAPTER": "profiles.scim.adapters.LearnSCIMUser",
"USER_MODEL_GETTER": "profiles.scim.adapters.get_user_model_for_scim",
"USER_FILTER_PARSER": "profiles.scim.filters.LearnUserFilterQuery",
"SERVICE_PROVIDER_CONFIG_MODEL": "scim.config.LearnSCIMServiceProviderConfig",
"USER_ADAPTER": "scim.adapters.LearnSCIMUser",
"USER_MODEL_GETTER": "scim.adapters.get_user_model_for_scim",
"USER_FILTER_PARSER": "scim.filters.LearnUserFilterQuery",
"GET_IS_AUTHENTICATED_PREDICATE": "scim.utils.is_authenticated_predicate",
}


Expand Down
6 changes: 6 additions & 0 deletions main/settings_celery.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,12 @@
"schedule": crontab(minute=30, hour=18), # 2:30pm EST
"kwargs": {"period": "daily", "subscription_type": "channel_subscription_type"},
},
"daily_embed_new_learning_resources": {
"task": "vector_search.tasks.embed_new_learning_resources",
"schedule": get_int(
"EMBED_NEW_RESOURCES_SCHEDULE_SECONDS", 60 * 30
), # default is every 30 minutes
},
"send-search-subscription-emails-every-1-days": {
"task": "learning_resources_search.tasks.send_subscription_emails",
"schedule": crontab(minute=0, hour=19), # 3:00pm EST
Expand Down
4 changes: 2 additions & 2 deletions main/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import include, path, re_path
from django.urls import include, re_path
from django.views.generic.base import RedirectView
from rest_framework.routers import DefaultRouter

Expand All @@ -41,7 +41,6 @@

urlpatterns = (
[ # noqa: RUF005
path("scim/v2/", include("django_scim.urls")),
re_path(r"^o/", include("oauth2_provider.urls", namespace="oauth2_provider")),
re_path(r"^admin/", admin.site.urls),
re_path(r"", include("authentication.urls")),
Expand All @@ -58,6 +57,7 @@
re_path(r"", include("articles.urls")),
re_path(r"", include("testimonials.urls")),
re_path(r"", include("news_events.urls")),
re_path(r"", include("scim.urls")),
re_path(r"", include(features_router.urls)),
re_path(r"^app", RedirectView.as_view(url=settings.APP_BASE_URL)),
# Hijack
Expand Down
2 changes: 1 addition & 1 deletion nginx/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# it's primary purpose is to emulate heroku-buildpack-nginx's
# functionality that compiles config/nginx.conf.erb
# See https://github.com/heroku/heroku-buildpack-nginx/blob/fefac6c569f28182b3459cb8e34b8ccafc403fde/bin/start-nginx
FROM nginx:1.27.3
FROM nginx:1.27.4

# Logs are configured to a relatic path under /etc/nginx
# but the container expects /var/log
Expand Down
82 changes: 48 additions & 34 deletions poetry.lock

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

Loading
Loading