summaryrefslogtreecommitdiffstats
path: root/models
Commit message (Collapse)AuthorAgeFilesLines
* Fix typos, thanks to umbertoooLauri Ojansivu2017-02-011-1/+1
|
* Merge pull request #31 from mario-orlicky/show-cards-countLauri Ojansivu2016-11-291-0/+17
|\ | | | | New option to set up minimum limit to show cards count for each list …
| * fixed few overseightsMario Orlicky2016-11-251-1/+1
| |
| * New option to set up minimum limit to show cards count for each list in boardMario Orlicky2016-11-251-0/+17
| |
* | Adds start and due date to cards model.shoetten2016-11-211-0/+24
|/
* Merge pull request #19 from mario-orlicky/hide-system-messagesLauri Ojansivu2016-11-201-0/+21
|\ | | | | New change settings option and possibility to hide system messagaes
| * Fixed buildMario Orlicky2016-11-191-2/+2
| |
| * New change settings option and possibility to hide system messagaesMario Orlicky2016-11-191-0/+21
| |
* | Merge pull request #18 from fmonthel/develLauri Ojansivu2016-11-201-0/+6
|\ \ | |/ |/| [ENH] Add index on CardId into Comments collection
| * [ENH] Add index on CardId into Comments collectionfmonthel2016-11-171-1/+1
| |
| * [ENH] Add index on CardId into Comments collectionfmonthel2016-11-171-4/+4
| |
| * [ENH] Add index on CardId into Comments collectionfmonthel2016-11-171-0/+6
| |
* | Fix login on Sandstorm by not creating welcome boardsDrew Fisher2016-11-031-17/+23
|/ | | | | | | | | | | | | | | | | This one is a pretty strange chain of events: * fetching /.sandstorm-login via accounts-sandstorm's rendezvous protocol causes a user to be created in the users collection * models/users.js has hooks to create a board and lists when a user is created * models/activities.js has a hook to create activity entries when a list is created * this hook does not handle not having no boardId, which results in attempting to run the hook with boardId: 'false'. 'false' does not have a title attribute, which causes the whole method call to throw an exception. * This makes the initial login fail. While there may be other bugs, the simple fix is to not create the board and lists when running under Sandstorm, where you only have one board anyway.
* 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