summaryrefslogtreecommitdiffstats
path: root/models/boards.js
Commit message (Collapse)AuthorAgeFilesLines
* 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.