Commit Graph

285 Commits

Author SHA1 Message Date
Joram Wilander
5462f0119e Implement a few channel member endpoints for APIv4 (#5304)
* Implement GET /channels/{channel_id}/members

* Implement GET /channels/{channel_id}/members/{user_id} endpoint for APIv4

* Implement /users/{user_id}/teams/{team_id}/channels/members endpoint for APIv4

* Fix unit test
2017-02-07 14:58:27 -08:00
Joram Wilander
487bb56a9b Add caching for file infos (#5330) 2017-02-07 12:36:37 -08:00
Joram Wilander
eb767d2c1c Implement password reset endpoints for APIv4 (#5256) 2017-02-07 10:46:40 -08:00
Joram Wilander
9dc76c1823 Implement PUT /users/{user_id}/password endpoint for APIv4 (#5243) 2017-02-07 09:35:58 -08:00
Ruzette Tanyag
d91fea6518 Implement GET /users/email/{email} endpoint for APIv4 (#5309)
* added get user by email endpoint for APIv4

* added get user by email endpoint unit test and driver

* removed the appended return of user ids on logout

* Added RequireEmail to validate user email. Also updated the get user by email endpoint and unit test
2017-02-07 11:54:07 -05:00
Debanshu Kundu
5cc30fa061 PLT-5379 Fix the error occuring while fetching OG metadata for links which don't exist. (#5308) 2017-02-07 07:26:14 -08:00
Joram Wilander
7ff2aef7fa Implement GET /users endpoint for APIv4 (#5277) 2017-02-03 15:17:34 -05:00
Joram Wilander
9312469ad5 Implement POST /channels/direct endpoint for APIv4 (#5283) 2017-02-03 10:27:12 -05:00
Joram Wilander
ccb0343828 Implement POST /users/ids endpoint for APIv4 (#5274) 2017-02-03 09:30:57 -05:00
Joram Wilander
365514174e Add tear down to APIv4 tests (#5250)
* Add tear down to APIv4 tests

* Defer tear downs
2017-02-02 11:46:42 -05:00
George Goldberg
28e445c6e0 PLT-5407: Bulk importing of User memberships. (#5273) 2017-02-02 10:03:41 -05:00
Diep Pham
f1a4c07383 PLT-495 Improves slack markup conversion (#4914)
* improves slack markup conversion

* bold
* strikethrough
* blockquotes

* handles blockquotes in slack_import

* removes unnecessary formatting

* fixes various format problems
2017-02-02 09:28:27 -05:00
Joram Wilander
609d4f43d9 Implement POST /channels endpoint for APIv4 (#5241) 2017-02-02 09:04:36 -05:00
George Goldberg
67739cb516 PLT-5365 Import of basic user properties. (#5231) 2017-01-31 10:04:17 -03:00
Christopher Speller
b26329cdda Fix small bug in webhub. (#5229) 2017-01-30 15:36:31 -05:00
Christopher Speller
721ac52784 Changing map to array for web_hub connections. (#5226) 2017-01-30 13:01:20 -05:00
Carlos Tadeu Panato Junior
95e3395a3b Add initial tests for app/team.go (#5208)
* .

* add initial tests for app/team.go
2017-01-30 09:39:00 -05:00
Joram Wilander
c01d9ad6cf Implement APIv4 infrastructure (#5191)
* Implement APIv4 infrastructure

* Update parameter requirement functions per feedback
2017-01-30 08:30:02 -05:00
Harrison Healey
65b76c2712 PLT-5225 Added separate post types for certain system messages (#5193)
* Added separate post types for system_join_leave and system_add_remove posts

* Added username prop to channel deleted posts

* Changed slack import to properly generate the new join/leave messages

* Added username prop to channel update posts

* Moved Post(AddTo/RemoveFrom)ChanneMessage into app package
2017-01-27 15:58:50 -05:00
Joram Wilander
097289f8e4 Merge 3.6.2 into master (#5211)
* Add webhook cache

* Add channel by name cache

* Fxing profiles in channels cache

* Fix merge
2017-01-27 14:07:34 -05:00
George Goldberg
e07e9937e0 PLT-5366, PLT-5364, PLT-5363: Bulk Import Part 1. (#5204)
This commit provides the first part of the bulk import system.

The CLI command is provided, complete with validation & apply modes. All
the basic properties of Teams and Channels can be imported. Users &
Posts will follow separately in a future commit.
2017-01-27 10:14:54 -05:00
Christopher Speller
7b9586a740 Notifications fix from 3.6 branch 2017-01-27 09:37:33 -05:00
Joram Wilander
49c677f6b4 Fix cluster logs (#5195) 2017-01-26 19:53:43 -05:00
Carlos Tadeu Panato Junior
9728b71f08 Add tests for app/email.go (#5187)
* Add tests for app/email.go

* fix issue related with inbucket

* applied go fmt
2017-01-26 11:48:23 -05:00
George Goldberg
f7476b2fb6 PLT-4378 Slack import when channel name is deleted (#4649)
This fixes the issue where the channel fails to Import from Slack if
there is already a channel with the same name on Mattermost that has
been deleted.
2017-01-25 23:14:12 -03:00
Joram Wilander
d245b29f82 More app code migration (#5170)
* Migrate admin functions into app package

* More user function refactoring

* Move post functions into app package
2017-01-25 09:32:42 -05:00
George Goldberg
a930eef71d PLT-4858: Allow system admin to delete all channels. (#5180)
The app-package refactor means that the check for a Channel Member
object before allowing to delete the channel is now redundant, as the
check is already carried out by using HasPermissionToChannel() on the
user requesting it. As a result, System Admins can now delete channels
through the API even if they aren't members.
2017-01-25 08:12:04 -05:00
Joram Wilander
e9c9688b34 Move permissions code into app package (#5146)
* Move permissions code into app package

* Revert getPosts permission
2017-01-23 08:12:05 -05:00
George Goldberg
2de6c5394e Move Slack Import to App Layer. (#5135) 2017-01-20 09:47:14 -05:00
Joram Wilander
e8d7701b60 PLT-5284 Fix webhook notifications for channel creator is not in (#5119)
* Fix webhook notifications for channel creator is not in

* Fix unit test
2017-01-20 09:43:14 -05:00
Joram Wilander
d3a285e64d Migrate functions to app package (#5106)
* Refactor and move session logic into app package

* Refactor email functions into the app package

* Refactor password update into app package

* Migrate user functions to app package

* Move team functions into app package

* Migrate channel functions into app package

* Pass SiteURL through to app functions

* Update based on feedback
2017-01-19 09:00:13 -05:00
George Goldberg
0685afd1d1 PLT-2978: Add channel purpose change system message. (#5094)
Completes original patch by David Lu.
2017-01-17 15:45:18 -05:00
Carlos Tadeu Panato Junior
dc54e640c2 Add inbucket docker image to allow local and automated testing of emails (#4901)
* add docker container for inbucket

* Add way to get the emails using inbucket and add a test for reset password

* add config setting to send emails

* update TestEmailTest

update

* add another test and fix wrong assert

* update per review

fix lint

change senders email

* Revert config.json to default values for EmailSettings section

* update test

* add setup to make the test run
2017-01-17 09:01:41 -05:00
Joram Wilander
0e2b321e6f Refactor and migrate more functions out of api into app package (#5063) 2017-01-13 15:17:50 -05:00
Joram Wilander
97558f6a6e PLT-4938 Add app package and move logic over from api package (#4931)
* Add app package and move logic over from api package

* Change app package functions to return errors

* Move non-api tests into app package

* Fix merge
2017-01-13 13:53:37 -05:00