8000 Release 0.37.0 by odlbot · Pull Request #2343 · mitodl/mit-learn · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Release 0.37.0 #2343

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

Open
wants to merge 17 commits into
base: release
Choose a base branch
from
Open
Show file tree
8000 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
552 changes: 273 additions & 279 deletions .yarn/releases/yarn-4.9.1.cjs → .yarn/releases/yarn-4.9.2.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ enableGlobalCache: false

nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.9.1.cjs
yarnPath: .yarn/releases/yarn-4.9.2.cjs

# https://github.com/vitejs/vite-plugin-react-swc/issues/74#issuecomment-1520484130
# https://github.com/swc-project/swc/issues/5616#issuecomment-1265639797
Expand Down
19 changes: 19 additions & 0 deletions RELEASE.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,25 @@
Release Notes
=============

Version 0.37.0
--------------

- Add a Sitemap (#2338)
- chore(deps): update yarn to v4.9.2 (#2325)
- fix(deps): update dependency ruff to v0.12.2 (#2333)
- Updated Designs for 404 and Error pages (#2337)
- New honor code page and copy updates to privacy policy and terms. (#2336)
- Display certificate type on list cards (#2335)
- add one click enroll functionality to dashboard cards (#2319)
- adding favorites list plugin (#2322)
- fix(deps): update dependency onnxruntime to v1.22.0 (#2332)
- fix(deps): update dependency llama-index-llms-openai to ^0.4.0 (#2331)
- fix(deps): update dependency litellm to v1.73.6 (#2330)
- fix(deps): update dependency cairosvg to v2.8.2 (#2329)
- chore(deps): update node.js to v22.17.0 (#2328)
- chore(deps): update nginx docker tag to v1.29.0 (#2327)
- fix(deps): update dependency django to v4.2.23 (#2326)

Version 0.36.5 (Released July 08, 2025)
--------------

Expand Down
2 changes: 1 addition & 1 deletion docker-compose.apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ services:
profiles:
- frontend
working_dir: /src
image: node:22.14
image: node:22.17
entrypoint: ["/bin/sh", "-c"]
command:
- |
Expand Down
2 changes: 1 addition & 1 deletion env/frontend.env
Original file line number Diff line number Diff line change Expand Up @@ -6,7 +6,7 @@ SENTRY_ENV=dev # Re-enable sentry NEXT_PUBLIC_ORIGIN=${MITOL_APP_BASE_URL} NEXT_PUBLIC_MITOL_API_BASE_URL=${MITOL_API_BASE_URL} NEXT_PUBLIC_CSRF_COOKIE_NAME=${CSRF_COOKIE_NAME} NEXT_PUBLIC_MITX_ONLINE_CSRF_COOKIE_NAME=csrftoken NEXT_PUBLIC_MITX_ONLINE_CSRF_COOKIE_NAME=csrf_mitxonline NEXT_PUBLIC_MITOL_SUPPORT_EMAIL=${MITOL_SUPPORT_EMAIL}
NEXT_PUBLIC_POSTHOG_API_KEY=${POSTHOG_PROJECT_API_KEY} Expand Down
2 changes: 1 addition & 1 deletion frontends/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"ol-test-utilities": "0.0.0"
},
"dependencies": {
"@mitodl/mitxonline-api-axios": "^2025.6.3",
"@mitodl/mitxonline-api-axios": "^2025.6.23",
"@tanstack/react-query": "^5.66.0",
"axios": "^1.6.3"
}
Expand Down
636 changes: 636 additions & 0 deletions frontends/api/src/generated/v1/api.ts

Large diffs are not rendered by default.

20 changes: 18 additions & 2 deletions frontends/api/src/mitxonline/hooks/enrollment/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,22 @@
import { enrollmentQueries, enrollmentKeys } from "./queries"
import { useMutation, useQueryClient } from "@tanstack/react-query"
import { enrollmentsApi } from "../../clients"
import { EnrollmentsApiEnrollmentsPartialUpdateRequest } from "@mitodl/mitxonline-api-axios/v1"
import { b2bApi, enrollmentsApi } from "../../clients"
import {
B2bApiB2bEnrollCreateRequest,
EnrollmentsApiEnrollmentsPartialUpdateRequest,
} from "@mitodl/mitxonline-api-axios/v1"

const useCreateEnrollment = (opts: B2bApiB2bEnrollCreateRequest) => {
const queryClient = useQueryClient()
return useMutation({
mutationFn: () => b2bApi.b2bEnrollCreate(opts),
onSuccess: () => {
queryClient.invalidateQueries({
queryKey: enrollmentKeys.enrollmentsList(),
})
},
})
}

const useUpdateEnrollment = (
opts: EnrollmentsApiEnrollmentsPartialUpdateRequest,
Expand Down Expand Up @@ -32,6 +47,7 @@ const useDestroyEnrollment = (enrollmentId: number) => {
export {
enrollmentQueries,
enrollmentKeys,
useCreateEnrollment,
useUpdateEnrollment,
useDestroyEnrollment,
}
7 changes: 6 additions & 1 deletion frontends/api/src/mitxonline/test-utils/urls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ const enrollment = {
`${API_BASE_URL}/api/v1/enrollments/${id ? `${id}/` : ""}`,
}

const b2b = {
courseEnrollment: (readableId?: string) =>
`${API_BASE_URL}/api/v0/b2b/enroll/${readableId}/`,
}

const programs = {
programsList: (opts?: ProgramsApiProgramsListV2Request) =>
`${API_BASE_URL}/api/v2/programs/${queryify(opts)}`,
Expand All @@ -32,4 +37,4 @@ const organization = {
`${API_BASE_URL}/api/v0/b2b/organizations/${organizationSlug}/`,
}

export { currentUser, enrollment, programs, courses, organization }
export { b2b, currentUser, enrollment, programs, courses, organization }
14 changes: 14 additions & 0 deletions frontends/api/src/test-utils/factories/learningResources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import type {
VideoPlaylistResource,
VideoResource,
LearningResourceRelationship,
LearningResourceSummary,
} from "api"
import {
AvailabilityEnum,
Expand Down Expand Up @@ -326,6 +327,17 @@ const learningResource: PartialFactory<LearningResource> = (overrides = {}) => {

const learningResources = makePaginatedFactory(learningResource)

const learningResourceSummary: LearningResourceFactory<
LearningResourceSummary
> = (overrides = {}) => {
return {
id: uniqueEnforcerId.enforce(() => faker.number.int()),
last_modified: faker.date.recent().toISOString(),
...overrides,
}
}
const learningResourceSummaries = makePaginatedFactory(learningResourceSummary)

const program: PartialFactory<ProgramResource> = (overrides = {}) => {
return mergeOverrides<ProgramResource>(
_learningResourceShared(),
Expand Down Expand Up @@ -554,6 +566,8 @@ const videoPlaylists = makePaginatedFactory(videoPlaylist)
export {
learningResource as resource,
learningResources as resources,
learningResourceSummaries as resourceSummaries,
learningResourceSummary as resourceSummary,
learningResourceRun as run,
learningResourceImage as image,
learningResourceDepartment as department,
Expand Down
2 changes: 2 additions & 0 deletions frontends/api/src/test-utils/urls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ const learningResources = {
`${API_BASE_URL}/api/v1/learning_resources/${query(params)}`,
details: (params: Params<LRApi, "learningResourcesRetrieve">) =>
`${API_BASE_URL}/api/v1/learning_resources/${params.id}/`,
summaryList: (params?: Params<LRApi, "learningResourcesList">) =>
`${API_BASE_URL}/api/v1/learning_resources/summary/${query(params)}`,
items: (params: Params<LRApi, "learningResourcesRetrieve">) =>
`${API_BASE_URL}/api/v1/learning_resources/${params.id}/items/`,
featured: (params?: Params<FeaturedApi, "featuredList">) =>
Expand Down
9 changes: 9 additions & 0 deletions frontends/main/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,15 @@ const nextConfig = {

async headers() {
return [
{
source: "/sitemaps/:path*.xml",
headers: [
{
key: "Cache-Control",
value: "s-maxage=1800",
},
],
},
/* This is intended to target the base HTML responses and streamed RSC
* content. Some routes are dynamically rendered, so NextJS by default
* sets no-cache. However we are currently serving public content that is
Expand Down
2 changes: 1 addition & 1 deletion frontends/main/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@emotion/cache": "^11.13.1",
"@emotion/styled": "^11.11.0",
"@mitodl/course-search-utils": "3.3.2",
"@mitodl/mitxonline-api-axios": "^2025.6.3",
"@mitodl/mitxonline-api-axios": "^2025.6.23",
"@mitodl/smoot-design": "^6.10.0",
"@next/bundle-analyzer": "^14.2.15",
"@remixicon/react": "^4.2.0",
Expand Down
Loading
Loading
0