Skip to content

Commit 3241279

Browse files
committed
🔖(chore) bump to 3.1.1
Fixed - Prevent indexation failure when a thumbnail generation fails
1 parent 1d27877 commit 3241279

33 files changed

+2507
-8
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ Versioning](https://semver.org/spec/v2.0.0.html).
88

99
## [Unrealeased]
1010

11+
## [3.1.1] - 2025-05-21
12+
1113
### Fixed
1214

1315
- Prevent indexation failure when a thumbnail generation fails
@@ -2301,7 +2303,8 @@ us:
23012303
- finish integrating the missing pages and improve the sandbox environment;
23022304
- test and polish the use of richie as a django app / node dependency.
23032305

2304-
[unreleased]: https://github.com/openfun/richie/compare/v3.1.0...master
2306+
[unreleased]: https://github.com/openfun/richie/compare/v3.1.1...master
2307+
[3.1.1]: https://github.com/openfun/richie/compare/v3.1.0...v3.1.1
23052308
[3.1.0]: https://github.com/openfun/richie/compare/v3.0.0...v3.1.0
23062309
[3.0.0]: https://github.com/openfun/richie/compare/v3.0.0-beta.0...v3.0.0
23072310
[3.0.0-beta.0]: https://github.com/openfun/richie/compare/v2.34.0...v3.0.0-beta.0

cookiecutter/{{cookiecutter.organization}}-richie-site-factory/template/{{cookiecutter.site}}/requirements/base.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ django-storages==1.13.2
55
dockerflow==2022.8.0
66
gunicorn==23.0.0
77
psycopg2-binary==2.9.9
8-
richie==3.1.0
8+
richie==3.1.1
99
unidecode==1.3.6 # required by django-check-seo
1010
sentry-sdk==2.11.0

cookiecutter/{{cookiecutter.organization}}-richie-site-factory/template/{{cookiecutter.site}}/src/frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"CMS"
2222
],
2323
"dependencies": {
24-
"richie-education": "3.1.0"
24+
"richie-education": "3.1.1"
2525
},
2626
"devDependencies": {
2727
"@formatjs/cli": "6.3.11",

docs/cookiecutter.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ If you chose to install Cookiecutter, you can now run it against our
2525
[template][2] as follows:
2626

2727
```bash
28-
cookiecutter gh:openfun/richie --directory cookiecutter --checkout v3.1.0
28+
cookiecutter gh:openfun/richie --directory cookiecutter --checkout v3.1.1
2929
```
3030

3131
If you didn't want to install it on your machine, we provide a Docker image
3232
built with our [own repository][4] that you can use as follows:
3333

3434
```bash
3535
docker run --rm -it -u $(id -u):$(id -g) -v $PWD:/app \
36-
fundocker/cookiecutter gh:openfun/richie --directory cookiecutter --checkout v3.1.0
36+
fundocker/cookiecutter gh:openfun/richie --directory cookiecutter --checkout v3.1.1
3737
```
3838

3939
The `--directory` option is to indicate that our Cookiecutter template is in

src/frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "richie-education",
3-
"version": "3.1.0",
3+
"version": "3.1.1",
44
"description": "A CMS to build learning portals for Open Education",
55
"main": "sandbox/manage.py",
66
"scripts": {

tests_e2e/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "richie-tests-e2e",
3-
"version": "3.1.0",
3+
"version": "3.1.1",
44
"description": "End-to-end tests for the Richie project",
55
"repository": "https://github.com/openfun/richie",
66
"author": "Open FUN (France Université Numérique)",

website/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "richie-education-docs",
3-
"version": "3.1.0",
3+
"version": "3.1.1",
44
"description": "Documentation website for the Richie project",
55
"scripts": {
66
"build": "docusaurus build",
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
id: accessibility-testing
3+
title: Automated accessibility checks
4+
sidebar_label: Accessibility testing
5+
---
6+
7+
Richie includes automated accessibility checks built through a `Cypress` end-to-end testing infrastructure.
8+
9+
Automated accessibility checks can only surface around 30% of possible problems on any given page. This does not mean they are not useful, but they cannot replace human audits and developer proficiency.
10+
11+
We use `axe` to run these checks. You can find more about axe on the [`axe-core` GitHub repository](https://github.com/dequelabs/axe-core).
12+
13+
## Testing environment setup
14+
15+
Both `Cypress` and `axe` are used through their respective NPM packages. This means everything goes through `yarn` commands. You need to have `node` and `yarn` installed locally to run the tests.
16+
17+
```bash
18+
cd tests_e2e
19+
yarn install
20+
```
21+
22+
This should install everything you need.
23+
24+
## Running the tests
25+
26+
There are two ways to use the `Cypress` tests: through a terminal-based runner and through the `Cypress` UI. Both are started through `yarn` but they have different use cases.
27+
28+
```bash
29+
yarn cypress run
30+
```
31+
32+
You can start by running the tests directly from the terminal. This is the quickest way to make sure all views pass checks (or find out which ones do not). This is also the starting point for work on running `Cypress` in the CI.
33+
34+
```bash
35+
yarn cypress open
36+
```
37+
38+
This command simply opens the `Cypress` UI. From there, you can run all or some of the test suites with live reloading. This is a great way to understand why some tests are failing, especially when it comes to a11y violations.
39+
40+
When there are a11y violations, an assertion fails and prints out a list in the `Cypress` UI. You can then click on a violation to print more information in the browser console.
41+
42+
## Documentation reference
43+
44+
- [List of all possible violations covered by `axe`](https://dequeuniversity.com/rules/axe/3.4)
45+
- [`Cypress` documentation](https://docs.cypress.io)
46+
- [`axe` and `Cypress` integration](https://github.com/avanslaars/cypress-axe)
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
---
2+
id: course-run-synchronization-api
3+
title: Course run synchronization API
4+
sidebar_label: course run sync
5+
---
6+
7+
API endpoint allowing remote systems to synchronize their course runs with a Richie instance.
8+
9+
## Synchronization endpoint [/api/1.0/course-runs-sync]
10+
11+
This documentation describes version "1.0" of this API endpoint.
12+
13+
### Synchronize a course run [POST]
14+
15+
It takes a JSON object containing the course run details:
16+
17+
- resource_link: `https://lms.example.com/courses/course-v1:001+001+001/info` (string, required) -
18+
url of the course syllabus on the LMS from which a unique course identifier can be extracted
19+
- start: `2018-02-01T06:00:00Z` (string, optional) - ISO 8601 date, when this session of the
20+
course starts
21+
- end: `2018-02-28T06:00:00Z` (string, optional) - ISO 8601 date, when this session of the course
22+
ends
23+
- enrollment_start: `2018-01-01T06:00:00Z` (string, optional) - ISO 8601 date, when enrollment
24+
for this session of the course starts
25+
- enrollment_end: `2018-01-31T06:00:00Z` (string, optional) - ISO 8601 date, when enrollment for
26+
this session of the course ends
27+
- languages: ['fr', 'en'] (array[string], required) - ISO 639-1 code (2 letters) for the course's
28+
languages
29+
30+
31+
+ Request (application/json)
32+
+ Headers
33+
+ Authorization: `SIG-HMAC-SHA256 xxxxxxx` (string, required) - Authorization header
34+
containing the digest of the utf-8 encoded json representation of the submitted data
35+
for the given secret key and SHA256 digest algorithm (see [synchronizing-course-runs]
36+
for an example).
37+
+ Body
38+
```json
39+
{
40+
"resource_link": "https://lms.example.com/courses/course-v1:001+001+001/info",
41+
"start": "2021-02-01T00:00:00Z",
42+
"end": "2021-02-31T23:59:59Z",
43+
"enrollment_start": "2021-01-01T00:00:00Z",
44+
"enrollment_end": "2021-01-31T23:59:59Z",
45+
"languages": ["en", "fr"]
46+
}
47+
```
48+
49+
+ Response 200 (application/json)
50+
51+
+ Body
52+
```json
53+
{
54+
"success": True
55+
}
56+
```
1.06 MB
Loading

0 commit comments

Comments
 (0)