Skip to content

Commit

Permalink
Release/0.11.1 (#2690)
Browse files Browse the repository at this point in the history
  • Loading branch information
taylortom authored Dec 2, 2022
2 parents 15888f3 + 95df184 commit 8d75731
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 5 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ All notable changes to the Adapt authoring tool are documented in this file.
**IMPORTANT**: For information on how to **correctly and safely** update your installation, please consult **INSTALL.md**.<br/>
_Note that we adhere to the [semantic versioning](http://semver.org/) scheme for release numbering._

## [0.11.1] - 2022-12-02

Bugfix release.

### Fixed
- New installs return an error when running migrations ([#2681](https://github.com/adaptlearning/adapt_authoring/issues/2681))
- Error thrown on role migration ([#2688](https://github.com/adaptlearning/adapt_authoring/issues/2688))

## [0.11.0] - 2022-10-17

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

[0.11.1]: https://github.com/adaptlearning/adapt_authoring/compare/v0.11.0...v0.11.1
[0.11.0]: https://github.com/adaptlearning/adapt_authoring/compare/v0.10.5...v0.11.0
[0.10.5]: https://github.com/adaptlearning/adapt_authoring/compare/v0.10.4...v0.10.5
[0.10.4]: https://github.com/adaptlearning/adapt_authoring/compare/v0.10.3...v0.10.4
Expand Down
10 changes: 7 additions & 3 deletions migrations/20190411153144-replacepurgedroles.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,14 @@ module.exports = {
if(!newRole) {
throw new Error(`Db must define the ${newRole} to replace ${oldRole}`);
}
await users.updateMany({ roles: { $in: [oldRole._id] } }, { $set: { roles: [newRole._id] } });
await roles.deleteOne({ name: oldName });
try {
await users.updateMany({ roles: { $in: [oldRole._id] } }, { $set: { roles: [newRole._id] } });
await roles.deleteOne({ name: oldName });
} catch(e) {
console.error(e);
}
}));
},

async down(db, client) {}
};
};
3 changes: 2 additions & 1 deletion migrations/20220908105711-convertarialabels.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ module.exports = {
};
const props = origin().db.getModel('config')?.schema?.tree?._accessibility?._ariaLevels?.properties;
if(!props) {
throw new Error(`Couldn't parse ARIA level defaults`);
console.error(`Couldn't parse ARIA level defaults`);
return;
}
const newDefaults = Object.entries(props).reduce((m, [k, v]) => Object.assign(m, { [k]: v.default }), {});
const configs = await (collection.find().toArray());
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "adapt_authoring",
"version": "0.11.0",
"version": "0.11.1",
"license": "GPL-3.0",
"description": "A server-based user interface for authoring eLearning courses using the Adapt Framework.",
"keywords": [
Expand Down

0 comments on commit 8d75731

Please sign in to comment.