Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ef246cfef3 | ||
|
|
90dd0ddb94 | ||
|
|
bd2c54398b | ||
|
|
e65776f9f0 | ||
|
|
5cafdd9878 | ||
|
|
49882a05d1 | ||
|
|
8e36a2bc83 | ||
|
|
24e47195e5 | ||
|
|
4b37958140 | ||
|
|
3edff32bde | ||
|
|
78c5e0f7ef | ||
|
|
49229e1723 | ||
|
|
14e2bfd1bf | ||
|
|
3c49e2d0ed |
No files matched your search
@@ -91,3 +91,4 @@ wekan:accounts-cas
|
||||
wekan-scrollbar
|
||||
mquandalle:perfect-scrollbar
|
||||
mdg:meteor-apm-agent
|
||||
meteorhacks:unblock
|
||||
@@ -94,6 +94,7 @@ meteorhacks:collection-utils@1.2.0
|
||||
meteorhacks:meteorx@1.4.1
|
||||
meteorhacks:picker@1.0.3
|
||||
meteorhacks:subs-manager@1.6.4
|
||||
meteorhacks:unblock@1.1.0
|
||||
meteorspark:util@0.2.0
|
||||
minifier-css@1.2.16
|
||||
minifier-js@2.2.2
|
||||
|
||||
@@ -1,3 +1,34 @@
|
||||
# v2.34 2019-03-01 Wekan release
|
||||
|
||||
This release tries to fix following bugs:
|
||||
|
||||
- Revert [Filter fix](https://github.com/wekan/wekan/issues/2213) because of
|
||||
[mongodb data tampered](https://github.com/wekan/wekan-snap/issues/83).
|
||||
|
||||
Thanks to GitHub user xet7 for contributions.
|
||||
|
||||
# v2.33 2019-02-28 Wekan release
|
||||
|
||||
This release adds the following upgrades:
|
||||
|
||||
- [Upgrade Node.js to v8.15.1](https://github.com/wekan/wekan/commit/5cafdd9878ab4b6123024ec33279ccdae75f554f).
|
||||
|
||||
Thanks to Node.js developers and GitHub user xet7 for contributions.
|
||||
|
||||
# v2.32 2019-02-28 Wekan release
|
||||
|
||||
This release adds the following [performance improvements](https://github.com/wekan/wekan/pull/2214), thanks to justinr1234:
|
||||
|
||||
- New indexes for queries that were missing an index;
|
||||
- Bulk querying documents to reduce the number of mongo queries when loading a board;
|
||||
- Ensure oplog is being used to query the database by providing a `sort` key when `limit` is used querying the `boards` collection.
|
||||
|
||||
and fixes the following bugs related to [Template features](https://github.com/wekan/wekan/issues/2209), thanks to andresmanelli:
|
||||
|
||||
- [Fix filtering in swimlane view](https://github.com/wekan/wekan/commit/49229e1723de14cdc66dc6480624bba426d35e36) that was [broken since v2.29](https://github.com/wekan/wekan/issues/2213).
|
||||
|
||||
Thanks to above GitHub users for their contributions.
|
||||
|
||||
# v2.31 2019-02-28 Wekan release
|
||||
|
||||
This release fixes the following bugs related to [Template features](https://github.com/wekan/wekan/issues/2209), thanks to GitHub user andresmanelli:
|
||||
|
||||
+1
-1
@@ -87,7 +87,7 @@ ARG DEFAULT_AUTHENTICATION_METHOD
|
||||
# ENV BUILD_DEPS="paxctl"
|
||||
ENV BUILD_DEPS="apt-utils bsdtar gnupg gosu wget curl bzip2 build-essential python python3 python3-distutils git ca-certificates gcc-7" \
|
||||
DEBUG=false \
|
||||
NODE_VERSION=v8.15.0 \
|
||||
NODE_VERSION=v8.15.1 \
|
||||
METEOR_RELEASE=1.6.0.1 \
|
||||
USE_EDGE=false \
|
||||
METEOR_EDGE=1.5-beta.17 \
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
appId: wekan-public/apps/77b94f60-dec9-0136-304e-16ff53095928
|
||||
appVersion: "v2.31.0"
|
||||
appVersion: "v2.34.0"
|
||||
files:
|
||||
userUploads:
|
||||
- README.md
|
||||
|
||||
@@ -27,6 +27,10 @@ Attachments = new FS.Collection('attachments', {
|
||||
|
||||
|
||||
if (Meteor.isServer) {
|
||||
Meteor.startup(() => {
|
||||
Attachments.files._ensureIndex({ cardId: 1 });
|
||||
});
|
||||
|
||||
Attachments.allow({
|
||||
insert(userId, doc) {
|
||||
return allowIsBoardMember(userId, Boards.findOne(doc.boardId));
|
||||
|
||||
@@ -189,6 +189,7 @@ function publishChekListUncompleted(userId, doc){
|
||||
if (Meteor.isServer) {
|
||||
Meteor.startup(() => {
|
||||
ChecklistItems._collection._ensureIndex({ checklistId: 1 });
|
||||
ChecklistItems._collection._ensureIndex({ cardId: 1 });
|
||||
});
|
||||
|
||||
ChecklistItems.after.update((userId, doc, fieldNames) => {
|
||||
|
||||
@@ -98,9 +98,9 @@ function customFieldCreation(userId, doc){
|
||||
}
|
||||
|
||||
if (Meteor.isServer) {
|
||||
/*Meteor.startup(() => {
|
||||
CustomFields._collection._ensureIndex({ boardId: 1});
|
||||
});*/
|
||||
Meteor.startup(() => {
|
||||
CustomFields._collection._ensureIndex({ boardId: 1 });
|
||||
});
|
||||
|
||||
CustomFields.after.insert((userId, doc) => {
|
||||
customFieldCreation(userId, doc);
|
||||
|
||||
@@ -88,6 +88,10 @@ Integrations.allow({
|
||||
|
||||
//INTEGRATIONS REST API
|
||||
if (Meteor.isServer) {
|
||||
Meteor.startup(() => {
|
||||
Integrations._collection._ensureIndex({ boardId: 1 });
|
||||
});
|
||||
|
||||
/**
|
||||
* @operation get_all_integrations
|
||||
* @summary Get all integrations in board
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "wekan",
|
||||
"version": "v2.31.0",
|
||||
"version": "v2.34.0",
|
||||
"description": "Open-Source kanban",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
|
||||
@@ -22,10 +22,10 @@ const pkgdef :Spk.PackageDefinition = (
|
||||
appTitle = (defaultText = "Wekan"),
|
||||
# The name of the app as it is displayed to the user.
|
||||
|
||||
appVersion = 233,
|
||||
appVersion = 236,
|
||||
# Increment this for every release.
|
||||
|
||||
appMarketingVersion = (defaultText = "2.31.0~2019-02-28"),
|
||||
appMarketingVersion = (defaultText = "2.34.0~2019-03-01"),
|
||||
# Human-readable presentation of the app version.
|
||||
|
||||
minUpgradableAppVersion = 0,
|
||||
|
||||
@@ -60,6 +60,7 @@ Meteor.publish('archivedBoards', function() {
|
||||
});
|
||||
|
||||
Meteor.publishRelations('board', function(boardId) {
|
||||
this.unblock();
|
||||
check(boardId, String);
|
||||
const thisUserId = this.userId;
|
||||
|
||||
@@ -72,7 +73,8 @@ Meteor.publishRelations('board', function(boardId) {
|
||||
{ permission: 'public' },
|
||||
{ members: { $elemMatch: { userId: this.userId, isActive: true }}},
|
||||
],
|
||||
}, { limit: 1 }), function(boardId, board) {
|
||||
// Sort required to ensure oplog usage
|
||||
}, { limit: 1, sort: { _id: 1 } }), function(boardId, board) {
|
||||
this.cursor(Lists.find({ boardId }));
|
||||
this.cursor(Swimlanes.find({ boardId }));
|
||||
this.cursor(Integrations.find({ boardId }));
|
||||
@@ -99,24 +101,47 @@ Meteor.publishRelations('board', function(boardId) {
|
||||
//
|
||||
// And in the meantime our code below works pretty well -- it's not even a
|
||||
// hack!
|
||||
|
||||
// Gather queries and send in bulk
|
||||
const cardComments = this.join(CardComments);
|
||||
cardComments.selector = (_ids) => ({ cardId: _ids });
|
||||
const attachments = this.join(Attachments);
|
||||
attachments.selector = (_ids) => ({ cardId: _ids });
|
||||
const checklists = this.join(Checklists);
|
||||
checklists.selector = (_ids) => ({ cardId: _ids });
|
||||
const checklistItems = this.join(ChecklistItems);
|
||||
checklistItems.selector = (_ids) => ({ cardId: _ids });
|
||||
const parentCards = this.join(Cards);
|
||||
parentCards.selector = (_ids) => ({ parentId: _ids });
|
||||
const boards = this.join(Boards);
|
||||
const subCards = this.join(Cards);
|
||||
|
||||
this.cursor(Cards.find({ boardId }), function(cardId, card) {
|
||||
if (card.type === 'cardType-linkedCard') {
|
||||
const impCardId = card.linkedId;
|
||||
this.cursor(Cards.find({ _id: impCardId }));
|
||||
this.cursor(CardComments.find({ cardId: impCardId }));
|
||||
this.cursor(Attachments.find({ cardId: impCardId }));
|
||||
this.cursor(Checklists.find({ cardId: impCardId }));
|
||||
this.cursor(ChecklistItems.find({ cardId: impCardId }));
|
||||
subCards.push(impCardId);
|
||||
cardComments.push(impCardId);
|
||||
attachments.push(impCardId);
|
||||
checklists.push(impCardId);
|
||||
checklistItems.push(impCardId);
|
||||
} else if (card.type === 'cardType-linkedBoard') {
|
||||
this.cursor(Boards.find({ _id: card.linkedId}));
|
||||
boards.push(card.linkedId);
|
||||
}
|
||||
this.cursor(CardComments.find({ cardId }));
|
||||
this.cursor(Attachments.find({ cardId }));
|
||||
this.cursor(Checklists.find({ cardId }));
|
||||
this.cursor(ChecklistItems.find({ cardId }));
|
||||
this.cursor(Cards.find({ parentId: cardId }));
|
||||
cardComments.push(cardId);
|
||||
attachments.push(cardId);
|
||||
checklists.push(cardId);
|
||||
checklistItems.push(cardId);
|
||||
parentCards.push(cardId);
|
||||
});
|
||||
|
||||
// Send bulk queries for all found ids
|
||||
subCards.send();
|
||||
cardComments.send();
|
||||
attachments.send();
|
||||
checklists.send();
|
||||
checklistItems.send();
|
||||
boards.send();
|
||||
|
||||
if (board.members) {
|
||||
// Board members. This publication also includes former board members that
|
||||
// aren't members anymore but may have some activities attached to them in
|
||||
|
||||
+1
-1
@@ -81,7 +81,7 @@ parts:
|
||||
wekan:
|
||||
source: .
|
||||
plugin: nodejs
|
||||
node-engine: 8.15.0
|
||||
node-engine: 8.15.1
|
||||
node-packages:
|
||||
- node-gyp
|
||||
- node-pre-gyp
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
set -euxo pipefail
|
||||
|
||||
BUILD_DEPS="bsdtar gnupg wget curl bzip2 python git ca-certificates perl-Digest-SHA"
|
||||
NODE_VERSION=v8.15.0
|
||||
NODE_VERSION=v8.15.1
|
||||
#METEOR_RELEASE=1.6.0.1 - for Stacksmith, meteor-1.8 branch that could have METEOR@1.8.1-beta.8 or newer
|
||||
USE_EDGE=false
|
||||
METEOR_EDGE=1.5-beta.17
|
||||
|
||||
Reference in new issue
Block a user