summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2018-07-06 11:45:51 +0300
committerLauri Ojansivu <x@xet7.org>2018-07-06 11:45:51 +0300
commit5d573a7aa183ca8a495984834e31b1aaf206cda1 (patch)
tree4700a0c0912b5d590abe0d71661da2530536d6a8
parentaaae3150c4b82b50e4e7adb86f573cd56f7277a7 (diff)
parentc26a31f498a022fb5c7f70c5e00cdad81a6e3c04 (diff)
downloadwekan-5d573a7aa183ca8a495984834e31b1aaf206cda1.tar.gz
wekan-5d573a7aa183ca8a495984834e31b1aaf206cda1.tar.bz2
wekan-5d573a7aa183ca8a495984834e31b1aaf206cda1.zip
Merge branch 'devel'
-rw-r--r--CHANGELOG.md8
-rw-r--r--package.json2
-rw-r--r--sandstorm-pkgdef.capnp4
-rw-r--r--server/migrations.js17
-rw-r--r--snapcraft.yaml4
5 files changed, 21 insertions, 14 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 371cf9ca..afb3d643 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,11 @@
+# v1.14 2018-07-06 Wekan release
+
+This release fixes the following bugs:
+
+- Fix [Checklists.forEach is not a function](https://github.com/wekan/wekan/issues/1753).
+
+Thanks to GitHub user xet7 for contributions.
+
# v1.13 2018-07-06 Wekan release
This release adds the following new features:
diff --git a/package.json b/package.json
index a37e5edd..f5da7d1b 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "wekan",
- "version": "1.13.0",
+ "version": "1.14.0",
"description": "The open-source Trello-like kanban",
"private": true,
"scripts": {
diff --git a/sandstorm-pkgdef.capnp b/sandstorm-pkgdef.capnp
index e066fdee..0aedaa90 100644
--- a/sandstorm-pkgdef.capnp
+++ b/sandstorm-pkgdef.capnp
@@ -22,10 +22,10 @@ const pkgdef :Spk.PackageDefinition = (
appTitle = (defaultText = "Wekan"),
# The name of the app as it is displayed to the user.
- appVersion = 98,
+ appVersion = 99,
# Increment this for every release.
- appMarketingVersion = (defaultText = "1.13.0~2018-07-06"),
+ appMarketingVersion = (defaultText = "1.14.0~2018-07-06"),
# Human-readable presentation of the app version.
minUpgradableAppVersion = 0,
diff --git a/server/migrations.js b/server/migrations.js
index 10097d41..ae9cb8da 100644
--- a/server/migrations.js
+++ b/server/migrations.js
@@ -55,7 +55,7 @@ Migrations.add('lowercase-board-permission', () => {
// Security migration: see https://github.com/wekan/wekan/issues/99
Migrations.add('change-attachments-type-for-non-images', () => {
const newTypeForNonImage = 'application/octet-stream';
- Attachments.forEach((file) => {
+ Attachments.find().forEach((file) => {
if (!file.isImage()) {
Attachments.update(file._id, {
$set: {
@@ -68,7 +68,7 @@ Migrations.add('change-attachments-type-for-non-images', () => {
});
Migrations.add('card-covers', () => {
- Cards.forEach((card) => {
+ Cards.find().forEach((card) => {
const cover = Attachments.findOne({ cardId: card._id, cover: true });
if (cover) {
Cards.update(card._id, {$set: {coverId: cover._id}}, noValidate);
@@ -86,7 +86,7 @@ Migrations.add('use-css-class-for-boards-colors', () => {
'#2C3E50': 'midnight',
'#E67E22': 'pumpkin',
};
- Boards.forEach((board) => {
+ Boards.find().forEach((board) => {
const oldBoardColor = board.background.color;
const newBoardColor = associationTable[oldBoardColor];
Boards.update(board._id, {
@@ -97,7 +97,7 @@ Migrations.add('use-css-class-for-boards-colors', () => {
});
Migrations.add('denormalize-star-number-per-board', () => {
- Boards.forEach((board) => {
+ Boards.find().forEach((board) => {
const nStars = Users.find({'profile.starredBoards': board._id}).count();
Boards.update(board._id, {$set: {stars: nStars}}, noValidate);
});
@@ -132,7 +132,7 @@ Migrations.add('add-member-isactive-field', () => {
});
Migrations.add('add-sort-checklists', () => {
- Checklists.forEach((checklist, index) => {
+ Checklists.find().forEach((checklist, index) => {
if (!checklist.hasOwnProperty('sort')) {
Checklists.direct.update(
checklist._id,
@@ -168,7 +168,7 @@ Migrations.add('add-swimlanes', () => {
});
Migrations.add('add-views', () => {
- Boards.forEach((board) => {
+ Boards.find().forEach((board) => {
if (!board.hasOwnProperty('view')) {
Boards.direct.update(
{ _id: board._id },
@@ -180,7 +180,7 @@ Migrations.add('add-views', () => {
});
Migrations.add('add-checklist-items', () => {
- Checklists.forEach((checklist) => {
+ Checklists.find().forEach((checklist) => {
// Create new items
_.sortBy(checklist.items, 'sort').forEach((item, index) => {
ChecklistItems.direct.insert({
@@ -201,7 +201,7 @@ Migrations.add('add-checklist-items', () => {
});
Migrations.add('add-profile-view', () => {
- Users.forEach((user) => {
+ Users.find().forEach((user) => {
if (!user.hasOwnProperty('profile.boardView')) {
// Set default view
Users.direct.update(
@@ -309,4 +309,3 @@ Migrations.add('add-subtasks-allowed', () => {
},
}, noValidateMulti);
});
-
diff --git a/snapcraft.yaml b/snapcraft.yaml
index 70b9d44d..a25299aa 100644
--- a/snapcraft.yaml
+++ b/snapcraft.yaml
@@ -81,7 +81,7 @@ parts:
wekan:
source: .
plugin: nodejs
- node-engine: 8.11.1
+ node-engine: 8.11.3
node-packages:
- npm
- node-gyp
@@ -108,7 +108,7 @@ parts:
# Also see beginning of wekan/server/authentication.js
# import Fiber from "fibers";
# Fiber.poolSize = 1e9;
- # Download node version 8.11.1 that has fix included, node binary copied from Sandstorm
+ # Download node version 8.11.3 that has fix included, node binary copied from Sandstorm
# Description at https://releases.wekan.team/node.txt
echo "5263dc1c571885921179b11a1c6eb9ca82a95a89b69c15b366f885e9b5a32d66 node" >> node-SHASUMS256.txt.asc
curl https://releases.wekan.team/node -o node