Skip to content

Commit 8d75731

Browse files
authored
Release/0.11.1 (#2690)
2 parents 15888f3 + 95df184 commit 8d75731

File tree

4 files changed

+19
-5
lines changed

4 files changed

+19
-5
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ All notable changes to the Adapt authoring tool are documented in this file.
55
**IMPORTANT**: For information on how to **correctly and safely** update your installation, please consult **INSTALL.md**.<br/>
66
_Note that we adhere to the [semantic versioning](http://semver.org/) scheme for release numbering._
77

8+
## [0.11.1] - 2022-12-02
9+
10+
Bugfix release.
11+
12+
### Fixed
13+
- New installs return an error when running migrations ([#2681](https://github.com/adaptlearning/adapt_authoring/issues/2681))
14+
- Error thrown on role migration ([#2688](https://github.com/adaptlearning/adapt_authoring/issues/2688))
15+
816
## [0.11.0] - 2022-10-17
917

1018
The final minor release of the 'legacy' codebase. This release bundles critical security updates with some other minor improvements.
@@ -750,6 +758,7 @@ Initial release.
750758
- Loading screen of death
751759
- Session cookie security issues
752760

761+
[0.11.1]: https://github.com/adaptlearning/adapt_authoring/compare/v0.11.0...v0.11.1
753762
[0.11.0]: https://github.com/adaptlearning/adapt_authoring/compare/v0.10.5...v0.11.0
754763
[0.10.5]: https://github.com/adaptlearning/adapt_authoring/compare/v0.10.4...v0.10.5
755764
[0.10.4]: https://github.com/adaptlearning/adapt_authoring/compare/v0.10.3...v0.10.4

migrations/20190411153144-replacepurgedroles.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,14 @@ module.exports = {
1818
if(!newRole) {
1919
throw new Error(`Db must define the ${newRole} to replace ${oldRole}`);
2020
}
21-
await users.updateMany({ roles: { $in: [oldRole._id] } }, { $set: { roles: [newRole._id] } });
22-
await roles.deleteOne({ name: oldName });
21+
try {
22+
await users.updateMany({ roles: { $in: [oldRole._id] } }, { $set: { roles: [newRole._id] } });
23+
await roles.deleteOne({ name: oldName });
24+
} catch(e) {
25+
console.error(e);
26+
}
2327
}));
2428
},
2529

2630
async down(db, client) {}
27-
};
31+
};

migrations/20220908105711-convertarialabels.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ module.exports = {
1919
};
2020
const props = origin().db.getModel('config')?.schema?.tree?._accessibility?._ariaLevels?.properties;
2121
if(!props) {
22-
throw new Error(`Couldn't parse ARIA level defaults`);
22+
console.error(`Couldn't parse ARIA level defaults`);
23+
return;
2324
}
2425
const newDefaults = Object.entries(props).reduce((m, [k, v]) => Object.assign(m, { [k]: v.default }), {});
2526
const configs = await (collection.find().toArray());

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "adapt_authoring",
3-
"version": "0.11.0",
3+
"version": "0.11.1",
44
"license": "GPL-3.0",
55
"description": "A server-based user interface for authoring eLearning courses using the Adapt Framework.",
66
"keywords": [

0 commit comments

Comments
 (0)