summaryrefslogtreecommitdiffstats
path: root/models/boards.js
Commit message (Collapse)AuthorAgeFilesLines
...
* Models: Remove user from all objects on board leave (Fixes: #667)Alexander Sulfrian2016-08-161-0/+36
| | | | | Remove the user as member and watcher of all lists, cards and the board itself when leaving the board.
* Models: Fix remove member activityAlexander Sulfrian2016-08-161-11/+23
| | | | | | The member is only set to inactive, so we could not test for $pull. Instead we have to look into the $set modified and check whether the member was deactivated.
* models: Remove wrong line (fix #650) (#651)Alexander Sulfrian2016-07-211-1/+0
|
* Models: Replace before.insert with autoValuesAlexander Sulfrian2016-06-031-37/+72
| | | | | | | | The before.insert hooks have the problem, that they are executed in a different order if called from the client or from the server. If called from the client, the before.insert hook is called before validation of the schema, but if called from the server, the validation is called first and fails.
* Upgrade ESLint to v2Maxime Quandalle2016-03-171-2/+6
| | | | This commit also tweak the code style following backward-incompatible v2 rules.
* Add notification, allow watch boards / lists / cardsLiming Xie2016-01-051-1/+1
|
* Export: improved API routesXavier Priour2015-12-171-1/+1
| | | | | | - use an explicit "boards" domain: /api/boards/:boardId - pass authToken as a request parameter: /api/boards/:boardId?authToken=:token - in the future, same route can be used with authToken set in the Authenticate: header easily
* Export Wekan now server-based with proper authXavier Priour2015-12-161-3/+3
|
* Merge remote-tracking branch 'upstream/devel' into develXavier Priour2015-12-131-32/+27
|\
| * bugfix: only care active members, also optimize some codefloatinghotpot2015-12-081-32/+27
| |
* | board export now checks authenticationXavier Priour2015-12-131-0/+27
|/
* add: optional board descriptionfloatinghotpot2015-12-071-0/+8
|
* add: invite user via email, invited user can accept or decline, allow member ↵floatinghotpot2015-12-071-19/+67
| | | | to quit
* Upgrade Meteor to 1.2.1-rc4Maxime Quandalle2015-10-231-2/+2
| | | | | | This version includes a more complete selection of ES2015 polyfills that I started used across the code base, for instance by replacing `$.trim(str)` by `str.trim()`.
* Prefer ES5 methods over underscore utilitiesMaxime Quandalle2015-10-221-1/+1
| | | | | | | | | | | | | | Since 07cc454 (ie the switch to Meteor 1.2) we includes the `es5-shim` polyfill to support methods like `Array.prototype.forEach` in a consistent way across all supported browsers (IE8+). MDG recently released a blog post recommending the use of these native methods instead of underscore [0]. We know follow this recommendation. This commit also favor some ES6 features (argument defaults, destructing assignment) in places where we didn’t use them. [0]: http://info.meteor.com/blog/es2015-get-started
* Merge branch 'xavierpriour-devel' into develMaxime Quandalle2015-10-201-0/+8
|\ | | | | | | | | Conflicts: models/import.js
| * Import board: map team permission, and refactor code to share with card importXavier Priour2015-10-191-0/+8
| |
* | Re-implement label deletionMaxime Quandalle2015-10-201-1/+1
| | | | | | | | | | | | This was not ported during v0.9 re-factor. Fixes #322
* | Prevent duplicate board labelsMaxime Quandalle2015-10-161-18/+15
|/ | | | | | 43de3b8 did prevent empty labels with the same color, but we also want to prevent label with the same non-empty name and same color because the rationale is identical.
* Prevent dublicated empty labels of the same colorMaxime Quandalle2015-10-141-5/+14
|
* Import single card: map labelsXavier Priour2015-10-141-2/+8
|
* Centralize all mutations at the model levelMaxime Quandalle2015-09-081-0/+348
This commit uses a new package that I need to document. It tries to solve the long-standing debate in the Meteor community about allow/deny rules versus methods (RPC). This approach gives us both the centralized security rules of allow/deny and the white-list of allowed mutations similarly to Meteor methods. The idea to have static mutation descriptions is also inspired by Facebook's Relay/GraphQL. This will allow the development of a REST API using the high-level methods instead of the MongoDB queries to do the mapping between the HTTP requests and our collections.