Skip to content

Commit

Permalink
Merge release-v0.17.x into develop
Browse files Browse the repository at this point in the history
### Conflicts:
kolibri/__init__.py
  • Loading branch information
rtibbles committed Oct 3, 2024
2 parents 67b4c75 + e4f7450 commit 8438fd0
Show file tree
Hide file tree
Showing 187 changed files with 88 additions and 401 deletions.
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,30 @@

List of the most important changes for each release.

## 0.17.2

### Changed
- Make 'save to device' file downloads initiate immediately by @rtibbles in [#12675](https://github.com/learningequality/kolibri/pull/12675)


## 0.17.1

### Added
- Allow redirects for file downloads by @rtibbles in [#12309](https://github.com/learningequality/kolibri/pull/12309)
- Add configuration option to disable Zeroconf by @ozer550 in [#12620](https://github.com/learningequality/kolibri/pull/12620)


### Changed
- Optimise Library page load time when channels have large thumbnails by @thesujai in [#12530](https://github.com/learningequality/kolibri/pull/12530)
- Provide more helpful error state when trying to import from unprovisioned device during device setup by @nucleogenesis in [#12397](https://github.com/learningequality/kolibri/pull/12397)
- Upgrade Python dependencies by @rtibbles in [#12165](https://github.com/learningequality/kolibri/pull/12165)

### Fixed
- Preserve the subfolder structure inside the static folder on unzipping for h5p and HTML5 zips by @rtibbles in [#12538](https://github.com/learningequality/kolibri/pull/12538)
- Fixed variety of inconsistencies with activity notifications by @AlexVelezLl in [#12386](https://github.com/learningequality/kolibri/pull/12386)
- Fixed mismatch between coach Reports and generated CSV by @AlexVelezLl in [#12628](https://github.com/learningequality/kolibri/pull/12628)


## 0.17.0

### Added
Expand Down
6 changes: 1 addition & 5 deletions docs/backend_architecture/upgrade.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@ these migrations can be generated by executing ``kolibri manage makemigrations``

This will trigger the Django management command that will inspect the current
model schema, the current migrations, and generate new migrations to cover any
discrepancies. For some migrations, manual editing will be required to ensure
compatibility with Python 2 and 3 - this normally happens for Django Model fields
that take a ``choices`` keyword argument, where the choices are strings. The
strings should have no prefix (``u`` or ``b``) and the migration should contain
``from __future__ import unicode_literals`` as an import.
discrepancies.

For any migrations involving Foreign keys to the FacilityUser model, the migration
will automatically be generated by Django to use a swappable dependency on settings.AUTH_USER_MODEL.
Expand Down
2 changes: 1 addition & 1 deletion kolibri/core/analytics/constants/nutrition_endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
This module contains constants which represent what nutrition fact endpoints
notifications are returned from.
"""
from __future__ import unicode_literals


PINGBACK = "pingback"
STATISTICS = "statistics"
Expand Down
2 changes: 0 additions & 2 deletions kolibri/core/analytics/middleware.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import absolute_import

import csv
import logging
import os
Expand Down
2 changes: 0 additions & 2 deletions kolibri/core/analytics/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.15 on 2019-01-18 17:18
from __future__ import unicode_literals

import django.db.models.deletion
from django.db import migrations
from django.db import models
Expand Down
2 changes: 0 additions & 2 deletions kolibri/core/analytics/models.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models

from .constants import nutrition_endpoints
Expand Down
2 changes: 0 additions & 2 deletions kolibri/core/apps.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import unicode_literals

import logging
import os

Expand Down
32 changes: 11 additions & 21 deletions kolibri/core/assets/src/views/ContentRenderer/DownloadButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,17 @@
fileOptions() {
const options = this.files.map(file => {
const label = getFilePresetString(file);
const fileId =
file.preset === 'video_subtitle' && file?.lang.lang_name
? file?.lang.lang_name
: file.checksum.slice(0, 6);
return {
label,
url: file.storage_url,
fileName: this.$tr('downloadFilename', {
resourceTitle: this.nodeTitle.length ? this.nodeTitle : file.checksum,
fileExtension: file.extension,
fileId: file.checksum.slice(0, 6),
fileId,
}),
};
});
Expand All @@ -68,26 +72,12 @@
},
methods: {
download(file) {
const req = new XMLHttpRequest();
req.open('GET', file.url, true);
req.responseType = 'blob';
req.onload = function () {
const blob = req.response;
const blobUrl = window.URL.createObjectURL(blob);
try {
const a = document.createElement('a');
a.download = file.fileName;
a.href = blobUrl;
document.body.appendChild(a);
a.click();
a.remove();
} catch (e) {
window.open(file.url, '_blank');
}
};
req.send();
const a = document.createElement('a');
a.download = file.fileName;
a.href = file.url;
document.body.appendChild(a);
a.click();
a.remove();
},
},
$trs: {
Expand Down
2 changes: 1 addition & 1 deletion kolibri/core/auth/constants/collection_kinds.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
This module contains constants representing the kinds of Collections.
"""
from __future__ import unicode_literals


FACILITY = "facility"
CLASSROOM = "classroom"
Expand Down
2 changes: 0 additions & 2 deletions kolibri/core/auth/constants/demographics.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import unicode_literals

from django.core.exceptions import ValidationError
from django.utils.deconstruct import deconstructible

Expand Down
2 changes: 0 additions & 2 deletions kolibri/core/auth/constants/facility_presets.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import unicode_literals

import io
import json
import os
Expand Down
2 changes: 0 additions & 2 deletions kolibri/core/auth/constants/morango_sync.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import unicode_literals

from kolibri import __version__
from kolibri.utils import conf

Expand Down
2 changes: 1 addition & 1 deletion kolibri/core/auth/constants/role_kinds.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
This module contains constants representing the kinds of "roles" that a user can have with respect to a Collection.
"""
from __future__ import unicode_literals


ADMIN = "admin"
COACH = "coach"
Expand Down
2 changes: 0 additions & 2 deletions kolibri/core/auth/csv_utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import unicode_literals

import csv
import logging
import os
Expand Down
2 changes: 0 additions & 2 deletions kolibri/core/auth/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2017-05-14 05:22
from __future__ import unicode_literals

import uuid

import django.core.validators
Expand Down
2 changes: 0 additions & 2 deletions kolibri/core/auth/migrations/0002_auto_20170608_2125.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2017-06-08 21:25
from __future__ import unicode_literals

from django.db import migrations
from django.db import models

Expand Down
2 changes: 0 additions & 2 deletions kolibri/core/auth/migrations/0003_auto_20170621_0958.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2017-06-21 16:58
from __future__ import unicode_literals

from functools import partial

from django.db import migrations
Expand Down
2 changes: 0 additions & 2 deletions kolibri/core/auth/migrations/0004_auto_20170816_1607.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2017-08-16 23:07
from __future__ import unicode_literals

from django.db import migrations

from kolibri.core.auth.constants.role_kinds import ADMIN
Expand Down
2 changes: 0 additions & 2 deletions kolibri/core/auth/migrations/0005_auto_20170818_1203.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2017-08-18 19:03
from __future__ import unicode_literals

import django.core.validators
from django.db import migrations
from django.db import models
Expand Down
2 changes: 0 additions & 2 deletions kolibri/core/auth/migrations/0006_auto_20171206_1207.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2017-12-06 20:07
from __future__ import unicode_literals

import django.core.validators
from django.db import migrations
from django.db import models
Expand Down
2 changes: 0 additions & 2 deletions kolibri/core/auth/migrations/0007_auto_20171226_1125.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9.13 on 2017-12-26 19:25
from __future__ import unicode_literals

from django.db import migrations
from django.db import models

Expand Down
2 changes: 0 additions & 2 deletions kolibri/core/auth/migrations/0008_auto_20180222_1244.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9.13 on 2018-02-22 20:44
from __future__ import unicode_literals

from django.db import migrations

import kolibri.core.auth.models
Expand Down
2 changes: 0 additions & 2 deletions kolibri/core/auth/migrations/0009_auto_20180301_1123.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.10 on 2018-03-01 19:23
from __future__ import unicode_literals

import django.db.models.deletion
from django.conf import settings
from django.db import migrations
Expand Down
2 changes: 0 additions & 2 deletions kolibri/core/auth/migrations/0010_auto_20180320_1320.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.10 on 2018-03-20 20:20
from __future__ import unicode_literals

from django.db import migrations
from django.db import models

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.10 on 2018-03-23 23:56
from __future__ import unicode_literals

from django.db import migrations
from django.db import models

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-07-24 17:48
from __future__ import unicode_literals

from django.db import migrations
from django.db import models

Expand Down
2 changes: 0 additions & 2 deletions kolibri/core/auth/migrations/0013_auto_20180917_1213.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.15 on 2018-09-17 16:13
from __future__ import unicode_literals

import django.core.validators
from django.db import migrations
from django.db import models
Expand Down
2 changes: 0 additions & 2 deletions kolibri/core/auth/migrations/0014_auto_20190815_1421.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.22 on 2019-08-15 21:21
from __future__ import unicode_literals

from django.db import migrations
from django.db import models

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.23 on 2019-11-05 17:13
from __future__ import unicode_literals

from django.db import migrations
from django.db import models

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.23 on 2019-12-09 12:34
from __future__ import unicode_literals

from django.db import migrations
from django.db import models

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.23 on 2019-12-03 18:17
from __future__ import unicode_literals

from django.db import migrations


Expand Down
2 changes: 0 additions & 2 deletions kolibri/core/auth/migrations/0018_no_i18n_collection_kinds.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2020-06-22 15:50
from __future__ import unicode_literals

from django.db import migrations
from django.db import models

Expand Down
2 changes: 0 additions & 2 deletions kolibri/core/auth/migrations/0019_collection_no_mptt.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2021-05-01 16:46
from __future__ import unicode_literals

import django.db.models.deletion
from django.db import migrations
from django.db import models
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2022-07-25 09:14
from __future__ import unicode_literals

from django.db import migrations

import kolibri.core.fields
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2023-01-31 18:19
from __future__ import unicode_literals

from django.db import migrations

import kolibri.core.fields
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2023-02-02 21:21
from __future__ import unicode_literals

from django.db import migrations

import kolibri.core.fields
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2023-03-07 20:46
from __future__ import unicode_literals

from django.db import migrations

import kolibri.core.fields
Expand Down
2 changes: 0 additions & 2 deletions kolibri/core/auth/migrations/0024_extend_username_length.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2023-10-17 17:51
from __future__ import unicode_literals

from django.db import migrations
from django.db import models

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2024-03-28 15:34
from __future__ import unicode_literals

from django.db import migrations

import kolibri.core.auth.constants.demographics
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2024-05-10 21:02
from __future__ import unicode_literals

from django.db import migrations

import kolibri.core.auth.constants.demographics
Expand Down
2 changes: 0 additions & 2 deletions kolibri/core/auth/test/sync_utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import with_statement

import json
import os
import shutil
Expand Down
2 changes: 0 additions & 2 deletions kolibri/core/auth/test/test_session_middleware.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.http import HttpRequest
from django.http import HttpResponse
from django.test import SimpleTestCase
Expand Down
Loading

0 comments on commit 8438fd0

Please sign in to comment.