diff options
-rw-r--r-- | CHANGELOG.md | 28 | ||||
-rw-r--r-- | README.md | 21 | ||||
-rw-r--r-- | models/cards.js | 10 | ||||
-rw-r--r-- | models/users.js | 5 | ||||
-rw-r--r-- | server/notifications/email.js | 2 |
5 files changed, 44 insertions, 22 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 51dfea8f..e2f1bb5a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,20 +1,24 @@ # Upcoming Wekan release -This release adds following new features: +This release adds the following supported platforms: -* Make Due Date layout nicer on minicard; -* Added tooltip for board menu and sidebar buttons. +* [Docker environment for Wekan development](https://github.com/wekan/wekan-dev); * [Wekan <=> MongoDB <=> ToroDB => PostgreSQL read-only mirroring](https://github.com/wekan/wekan-postgresql) for SQL access with any programming language or Office package that has PostgreSQL support, like newest LibreOffice 3.5; -* [Wekan database cleanup script](https://github.com/fmonthel/wekan-cleanup) -- - [Feedback](https://github.com/wekan/wekan/issues/833). - Link to cleanup script also added to README.md; -* [Daily export of Wekan changes as JSON to Logstash and - ElasticSearch / Kibana (ELK)][https://github.com/fmonthel/wekan-logstash] -- - [Feedback][https://github.com/wekan/wekan/issues/855] +* [Install from source on + Windows](https://github.com/wekan/wekan/wiki/Install-Wekan-from-source-on-Windows). + +and adds the following new features: + +* Make Due Date layout nicer on minicard; +* Added tooltip for board menu and sidebar buttons; +* [Wekan database cleanup script](https://github.com/wekan/wekan-cleanup); +* [Daily export script of Wekan changes as JSON to Logstash and + ElasticSearch / Kibana (ELK)](https://github.com/wekan/wekan-logstash); +* [Wekan stats script](https://github.com/wekan/wekan-stats). and fixes the following bugs: @@ -24,11 +28,13 @@ and fixes the following bugs: of the card before adding activity; * All new boards are automatically starred. Fixed to only star header-bar new-boards; +* Orphan documents were created when cards were deleted; * Improve Wekan performance by adding indexes to MongoDB; +* Invite user with lower case email; * Typos. -Thanks to GitHub users fmonthel, jLouzado, maulal, pra85, vuxor, whittssg2 -and xet7 for their contributions. +Thanks to GitHub users eemeli, entrptaher, fmonthel, jLouzado, maulal, +pra85, vuxor, whittssg2 and xet7 for their contributions. # v0.11.1-rc1 2017-02-10 Wekan prerelease @@ -4,8 +4,6 @@ [![Wekan chat][vanila_badge]][vanila_chat] -[Donations][donations] - 2017-02-08 News: All of Wefork is now merged and moved back to official Wekan. Wefork will not accept any new issues and pull requests. All development happens on Wekan. @@ -81,10 +79,12 @@ Automatic generated newest builds are available for Docker, and some others that install directly from this repo. Automatic builds will be added later for more platforms. -[Wekan database cleanup script][wekan_cleanup] -- [Feedback][cleanup_issue] +[Wekan database cleanup script][wekan_cleanup] [Daily export of Wekan changes as JSON to Logstash and -ElasticSearch / Kibana (ELK)][wekan_logstash] -- [Feedback][logstash_issue] +ElasticSearch / Kibana (ELK)][wekan_logstash] + +[Wekan stats][wekan_stats] ### Docker: [Docker image][docker_image], [Docs at wiki][wekan_wiki] @@ -134,8 +134,12 @@ docker run -d --restart=always --name wekan --link "wekan-db:db" -e "MONGO_URL=m [Docker on SUSE Linux Enterprise Server 12 SP1][sles] +[Docker environment for Wekan development][wekan_dev] + [Install from source][install_source] +[Install from source on Windows][installsource_windows] + [VirtualBox][virtualbox] [Debian Wheezy 64bit][debian_wheezy] @@ -196,6 +200,7 @@ with [Meteor](https://www.meteor.com). [travis_badge]: https://travis-ci.org/wekan/wekan.svg?branch=devel [travis_status]: https://travis-ci.org/wekan/wekan [install_source]: https://github.com/wekan/wekan/wiki/Install-and-Update#install-manually-from-source +[installsource_windows]: https://github.com/wekan/wekan/wiki/Install-Wekan-from-source-on-Windows [sles]: https://github.com/wekan/wekan/wiki/Install-Wekan-Docker-on-SUSE-Linux-Enterprise-Server-12-SP1 [virtualbox]: https://github.com/wekan/wekan/wiki/virtual-appliance [sandstorm_spk]: https://github.com/wekan/wekan/issues/823 @@ -205,10 +210,10 @@ with [Meteor](https://www.meteor.com). [autoinstall]: https://github.com/wekan/wekan-autoinstall [autoinstall_issue]: https://github.com/anselal/wekan/issues/18 [dev_docs]: https://github.com/wekan/wekan/wiki/Developer-Documentation -[donations]: http://www.xet7.org/wekan [wekan_mongodb]: https://github.com/wekan/wekan-mongodb [wekan_postgresql]: https://github.com/wekan/wekan-postgresql -[wekan_cleanup]: https://github.com/fmonthel/wekan-cleanup -[cleanup_issue]: https://github.com/wekan/wekan/issues/833 -[wekan_logstash]: https://github.com/fmonthel/wekan-logstash +[wekan_cleanup]: https://github.com/wekan/wekan-cleanup +[wekan_logstash]: https://github.com/wekan/wekan-logstash +[wekan_stats]: https://github.com/wekan/wekan-stats +[wekan_dev]: https://github.com/wekan/wekan-dev [logstash_issue]: https://github.com/wekan/wekan/issues/855 diff --git a/models/cards.js b/models/cards.js index 9c149e51..922fbecd 100644 --- a/models/cards.js +++ b/models/cards.js @@ -354,9 +354,19 @@ if (Meteor.isServer) { }); // Remove all activities associated with a card if we remove the card + // Remove also card_comments / checklists / attachments Cards.after.remove((userId, doc) => { Activities.remove({ cardId: doc._id, }); + Checklists.remove({ + cardId: doc._id, + }); + CardComments.remove({ + cardId: doc._id, + }); + Attachments.remove({ + cardId: doc._id, + }); }); } diff --git a/models/users.js b/models/users.js index b77c7a84..06b84fa0 100644 --- a/models/users.js +++ b/models/users.js @@ -349,7 +349,8 @@ if (Meteor.isServer) { } else { if (posAt <= 0) throw new Meteor.Error('error-user-doesNotExist'); if (Settings.findOne().disableRegistration) throw new Meteor.Error('error-user-notCreated'); - const email = username; + // Set in lowercase email before creating account + const email = username.toLowerCase(); username = email.substring(0, posAt); const newUserId = Accounts.createUser({ username, email }); if (!newUserId) throw new Meteor.Error('error-user-notCreated'); @@ -377,7 +378,7 @@ if (Meteor.isServer) { }; const lang = user.getLanguage(); Email.send({ - to: user.emails[0].address, + to: user.emails[0].address.toLowerCase(), from: Accounts.emailTemplates.from, subject: TAPi18n.__('email-invite-subject', params, lang), text: TAPi18n.__('email-invite-text', params, lang), diff --git a/server/notifications/email.js b/server/notifications/email.js index 551d2923..2af6381e 100644 --- a/server/notifications/email.js +++ b/server/notifications/email.js @@ -28,7 +28,7 @@ Meteor.startup(() => { try { Email.send({ - to: user.emails[0].address, + to: user.emails[0].address.toLowerCase(), from: Accounts.emailTemplates.from, subject: TAPi18n.__('act-activity-notify', {}, user.getLanguage()), text, |