Commit graph

826 commits

Author SHA1 Message Date
fmonthel
f71d2538fa [ENH] Add index on CardId into Comments collection 2016-11-17 21:23:39 -05:00
fmonthel
d11f069b60 [ENH] Add index on CardId into Comments collection 2016-11-17 21:18:35 -05:00
Drew Fisher
0f62fe0c6e Fix login on Sandstorm by not creating welcome boards
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.
2016-11-03 23:42:00 -04:00
Alexander Sulfrian
4013184801 Models: Remove board from starred list
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.
2016-08-16 19:19:55 +02:00
Alexander Sulfrian
7b0e57380a Models: Remove user from all objects on board leave (Fixes: #667)
Remove the user as member and watcher of all lists, cards and the board itself
when leaving the board.
2016-08-16 19:19:39 +02:00
Alexander Sulfrian
ce4fcbfae4 Models: Fix remove member activity
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.
2016-08-16 19:19:39 +02:00
Alexander Sulfrian
4d0e4cea91 models: Remove wrong line (fix #650) (#651) 2016-07-21 01:49:41 +02:00
Maxime Quandalle
9792193e60
Add MongoDB indexes
These indexes will optimize the queries that are used in the board and card
views.

Fixes #524.
2016-07-18 22:38:38 +02:00
Maxime Quandalle
4f5cecf738 Merge #616 into devel 2016-07-18 15:40:41 +02:00
Alexander Sulfrian
855f56c61a profile.name is called profile.fullname (#615)
The name of the profile field was changed log ago. This fixes the
remaining wrong references.
2016-07-11 12:05:03 +02:00
Alexander Sulfrian
e521fe617e Welcome board: Allow localization 2016-06-03 03:56:41 +02:00
Alexander Sulfrian
ae2c1fb77f Fix initial board creation
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.
2016-06-03 03:56:40 +02:00
Alexander Sulfrian
b9883a8e24 Remove duplicated logic
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.
2016-06-03 03:56:38 +02:00
Alexander Sulfrian
18b1573b25 Meteor.users: Add SimpleSchema
Replace before.insert hook with SimpleSchema and autoValue.
2016-06-03 03:56:37 +02:00
Alexander Sulfrian
a2888250f4 Models: Replace before.insert with autoValues
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.
2016-06-03 03:56:35 +02:00
Alexander Sulfrian
3a0a9fa009 Fix initials avatar generation (#577)
The ES5 reduce method also needs a initial value. This bug was
introduced in aa974aa54a.
2016-04-21 19:24:08 +02:00
Maxime Quandalle
90601eacae Upgrade ESLint to v2
This commit also tweak the code style following backward-incompatible v2 rules.
2016-03-17 16:26:14 +01:00
Maxime Quandalle
a13fad749e Change the board import layout from a popup to a full page
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.
2016-01-31 20:03:12 +01:00
Maxime Quandalle
1e8368dea5 Merge pull request #454 from floatinghotpot/notification
Add notifications, allow watch boards / lists / cards
2016-01-06 12:49:58 +01:00
floatinghotpot
39e1cc0237 Improve PR, adding more comments 2016-01-06 16:59:25 +08:00
Liming Xie
9bbdacc79a Add notification, allow watch boards / lists / cards 2016-01-05 23:26:02 +08:00
Maxime Quandalle
701262a439 Favor FlowRouter.url over Meteor.absoluteUrl
It hides the leading slash treatment as an hidden implementation
detail.
2016-01-05 13:37:15 +01:00
Maxime Quandalle
272f67f0c6 Update some meta-data
New site url
New contact email
New year!
2016-01-02 17:15:19 +01:00
Maxime Quandalle
0cdcccf1f6 Send invite email in the server console in development mode
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.
2016-01-01 13:31:54 +01:00
Maxime Quandalle
d9b74131ae Fix avatar support on Sanstorm
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
2015-12-30 19:34:18 +01:00
Maxime Quandalle
592aa6d576 Partially revert aae5030
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.
2015-12-24 13:13:05 +01:00
Xavier Priour
115ea533f6 Export: improved API routes
- 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
2015-12-17 23:57:28 +01:00
Xavier Priour
a45a899137 Improved doc on server-side export route 2015-12-17 13:11:33 +01:00
Xavier Priour
4cea6fca90 Export: include attachments 2015-12-17 11:58:55 +01:00
Xavier Priour
3a52d7d7af Export: add _format field 2015-12-17 10:22:48 +01:00
Xavier Priour
d08e1cc45b Export Wekan now server-based with proper auth 2015-12-16 21:58:43 +01:00
Xavier Priour
efe7c21d57 Export wekan: do not export board.stars 2015-12-16 16:30:48 +01:00
Xavier Priour
f5eba16a50 fix eslint 2015-12-13 21:38:22 +01:00
Xavier Priour
e304185c23 Merge remote-tracking branch 'upstream/devel' into devel 2015-12-13 20:02:51 +01:00
Xavier Priour
18697d45f6 board export now checks authentication 2015-12-13 20:02:34 +01:00
Xavier Priour
7cfc72da99 export works but no authentication 2015-12-11 19:20:19 +01:00
Xavier Priour
f20b5d04f5 export board to Wekan JSON 2015-12-09 00:35:45 +01:00
floatinghotpot
672c21bfe0 bugfix: only care active members, also optimize some code 2015-12-08 16:03:31 +08:00
floatinghotpot
21fa6fdc32 add: optional board description 2015-12-07 11:22:30 +08:00
floatinghotpot
011f53ad08 add: invite user via email, invited user can accept or decline, allow member to quit 2015-12-07 11:15:57 +08:00
floatinghotpot
892d1a2d45 i18n-ize meteor email templates 2015-12-04 10:39:51 +08:00
Xavier Priour
32698bcc98 Fix code style 2015-12-02 20:37:12 +01:00
Xavier Priour
f639bada5c Import trello: map card author and board admins 2015-12-02 12:37:51 +01:00
Xavier Priour
2057764801 Import trello: map comment author 2015-12-02 11:28:32 +01:00
Xavier Priour
82c59fb85f Fix #417: exception when importing older boards (missing creationDate) 2015-12-02 09:52:30 +01:00
Xavier Priour
33193b6f7b code review fixes 2015-11-17 08:52:55 +01:00
Xavier Priour
ad27a59e57 Import attachments 2015-11-16 21:41:49 +01:00
Xavier Priour
dd0a6e1a82 Import members: board import 2015-11-14 01:41:02 +01:00
Xavier Priour
f6f41270de Import members: working on card import 2015-11-13 15:52:14 +01:00
Xavier Priour
a7427b9ae4 merge with /devel 2015-11-13 12:43:34 +01:00