summaryrefslogtreecommitdiffstats
path: root/models
Commit message (Collapse)AuthorAgeFilesLines
* Models: Remove board from starred listAlexander Sulfrian2016-08-161-0/+12
| | | | | | This will fix the starred counter. If the board is not public, the user is unable to see the board and remove it from the list of starred boards.
* 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
|
* Add MongoDB indexesMaxime Quandalle2016-07-183-4/+16
| | | | | | | These indexes will optimize the queries that are used in the board and card views. Fixes #524.
* Merge #616 into develMaxime Quandalle2016-07-186-102/+237
|\
| * Welcome board: Allow localizationAlexander Sulfrian2016-06-031-4/+3
| |
| * Fix initial board creationAlexander Sulfrian2016-06-031-13/+19
| | | | | | | | | | | | | | | | | | | | We cannot rely on the automatic userId setting of the collection hooks. If a user is created during invitation, the userId field will contain the id of the inviting user. This fix this, by mocking the CollectionHooks.getUserId function and returning the userId of the new user for all new documents after creating the user.
| * Remove duplicated logicAlexander Sulfrian2016-06-031-7/+0
| | | | | | | | | | | | The duplicated logic was nessessary because the before.insert hook was not called before validation, when inserting was initiated on the server. Using autoValues fixed this problem.
| * Meteor.users: Add SimpleSchemaAlexander Sulfrian2016-06-031-8/+90
| | | | | | | | Replace before.insert hook with SimpleSchema and autoValue.
| * Models: Replace before.insert with autoValuesAlexander Sulfrian2016-06-035-72/+128
| | | | | | | | | | | | | | | | 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.
* | profile.name is called profile.fullname (#615)Alexander Sulfrian2016-07-111-2/+2
|/ | | | The name of the profile field was changed log ago. This fixes the remaining wrong references.
* Fix initials avatar generation (#577)Alexander Sulfrian2016-04-211-2/+2
| | | | The ES5 reduce method also needs a initial value. This bug was introduced in aa974aa54ab6e5b7db7450206d12b44ffb3a0306.
* Upgrade ESLint to v2Maxime Quandalle2016-03-172-16/+11
| | | | This commit also tweak the code style following backward-incompatible v2 rules.
* Change the board import layout from a popup to a full pageMaxime Quandalle2016-01-311-38/+0
| | | | | | | | This commit also removes the “import a single Trello card” as we couldn’t figure out some reasonable use case. We also create a new publication on the server to provide the minimal user profile informations required to display an avatar.
* Merge pull request #454 from floatinghotpot/notificationMaxime Quandalle2016-01-065-13/+238
|\ | | | | Add notifications, allow watch boards / lists / cards
| * Improve PR, adding more commentsfloatinghotpot2016-01-062-17/+17
| |
| * Add notification, allow watch boards / lists / cardsLiming Xie2016-01-055-13/+238
| |
* | Favor FlowRouter.url over Meteor.absoluteUrlMaxime Quandalle2016-01-051-12/+16
|/ | | | | It hides the leading slash treatment as an hidden implementation detail.
* Update some meta-dataMaxime Quandalle2016-01-021-1/+1
| | | | | | New site url New contact email New year!
* Send invite email in the server console in development modeMaxime Quandalle2016-01-011-5/+2
| | | | | | Meteor support that use case for us, we don't need to implement our own validate strategy on top of that. This was also discussed as part of the #454 review.
* Fix avatar support on SanstormMaxime Quandalle2015-12-301-13/+0
| | | | | | | | | | The bug comes for 9154b06 which this commit partially reverts. The synchronization between the user document profile and the Sandstorm HTTP headers is still not perfect. Having a clean model may requires the `accounts-sandstorm` to expose a hook to modify the user document just after the `services.sandstorm` credentials are updated. Fixes #460
* Partially revert aae5030Maxime Quandalle2015-12-242-2/+2
| | | | | | | As discussed in #370 and announced in the official Eslint-meteor plugin repository (https://github.com/dferber90/eslint-plugin-meteor), it is recommended to not use this plugin anymore has the author has it is currently broken and the author has abandoned it.
* Export: improved API routesXavier Priour2015-12-172-14/+21
| | | | | | - 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
* Improved doc on server-side export routeXavier Priour2015-12-171-0/+10
|
* Export: include attachmentsXavier Priour2015-12-171-16/+17
|
* Export: add _format fieldXavier Priour2015-12-171-0/+1
|
* Export Wekan now server-based with proper authXavier Priour2015-12-162-6/+30
|
* Export wekan: do not export board.starsXavier Priour2015-12-161-6/+7
|
* fix eslintXavier Priour2015-12-131-2/+1
|
* Merge remote-tracking branch 'upstream/devel' into develXavier Priour2015-12-132-38/+29
|\
| * bugfix: only care active members, also optimize some codefloatinghotpot2015-12-082-38/+29
| |
* | board export now checks authenticationXavier Priour2015-12-132-18/+35
| |
* | export works but no authenticationXavier Priour2015-12-111-5/+23
| |
* | export board to Wekan JSONXavier Priour2015-12-091-0/+51
|/
* add: optional board descriptionfloatinghotpot2015-12-071-0/+8
|
* add: invite user via email, invited user can accept or decline, allow member ↵floatinghotpot2015-12-072-19/+172
| | | | to quit
* i18n-ize meteor email templatesfloatinghotpot2015-12-041-0/+10
|
* Fix code styleXavier Priour2015-12-021-4/+1
|
* Import trello: map card author and board adminsXavier Priour2015-12-021-17/+37
|
* Import trello: map comment authorXavier Priour2015-12-021-18/+32
|
* Fix #417: exception when importing older boards (missing creationDate)Xavier Priour2015-12-021-14/+35
|
* code review fixesXavier Priour2015-11-171-2/+2
|
* Import attachmentsXavier Priour2015-11-162-62/+119
|
* Import members: board importXavier Priour2015-11-141-5/+30
|
* Import members: working on card importXavier Priour2015-11-131-3/+19
|
* merge with /develXavier Priour2015-11-133-17/+21
|\
| * Add eslint-plugin-meteorDominik Ferber2015-10-272-14/+20
| | | | | | | | | | | | | | | | Add rules for eslint-plugin-meteor. Use local version of eslint and eslint-plugin-meteor, instead of relying on global versions. Ensures consistent versions of eslint and eslint-plugin-meteor for all developers.
| * 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()`.
* | Import members: UI flow okXavier Priour2015-11-131-1/+3
|/