Commit Graph

69 Commits

Author SHA1 Message Date
Corey Hulen
80273d0234 Adding ability to remove push ids when reported as removed from google or apple (#5513)
* Adding ability to remove push device Ids when reported as removed from google or apple

* Fixing log string

* Removing unneeded nil check
2017-02-23 20:27:24 -05:00
enahum
748a416961 PLT-3193 Add channel notification preferences for push and email noti… (#5500)
* PLT-3193 Add channel notification preferences for push and email notifications

* unit tests, model validation and localization

* Feedback review

* Adding back allowFromCache check

* Setting push and email to use default settings

* Move props as constants

* address feedback
2017-02-23 11:08:48 -03:00
Joram Wilander
9220254f05 Block OAuth account creation when disabled in config (#5506) 2017-02-23 08:53:33 +00:00
Corey Hulen
4a0aba719b Fixing double send of websocket hello message (#5490) 2017-02-22 14:22:00 +00:00
Joram Wilander
69cac604e0 Implement create and get incoming webhook endpoints for APIv4 (#5407)
* Implement POST /hooks/incoming endpoint for APIv4

* Implement GET /hooks/incoming endpoint for APIv4

* Updates per feedback
2017-02-21 19:42:34 -05:00
Ruzette Tanyag
9646bddd21 Implement posts endpoints for APIv4 (#5480)
* Implement delete post endpoint for apiv4

* Implement POST search post endpoint for APIv4

* removed delete post quotes

* rearrange formatting
2017-02-21 07:36:52 -05:00
Saturnino Abril
5c19d9be7f Implement endpoint for APIv4: GET /users/{user_id}/audits (#5472) 2017-02-21 12:07:57 +00:00
Corey Hulen
274b9b6032 Fixing file info caching issue with Aurora for master (#5477) 2017-02-20 13:40:32 -05:00
Joram Wilander
dd4d8440ea Implement a few channel member endpoints for APIv4 (#5444)
* Implement POST /channels/members/{user_id}/view endpoint for APIv4

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

* Implement DELETE /channels/{channel_id}/members/{user_id} endpoint for APIv4
2017-02-20 13:31:52 -03:00
Saturnino Abril
623560481b Implementation endpoint for APIv4: GET /teams/name/{name} (#5473)
* APIv4: GET /teams/name/{name}

Signed-off-by: Saturnino Abril <saturnino.abril@gmail.com>

* reorganized test with SystemAdminClient

Signed-off-by: Saturnino Abril <saturnino.abril@gmail.com>
2017-02-20 13:27:57 -03:00
Joram Wilander
91fe8bb2c0 Implement upload and get file endpoints for APIv4 (#5396)
* Implement POST /files endpoint for APIv4

* Implement GET /files/{file_id} endpoint for APIv4
2017-02-17 10:31:21 -05:00
Ruzette Tanyag
4e7dbc3bb0 Implement user sessions endpoints for APIv4 (#5449)
* added get session and revoke session endpoints, unittests and drivers

* removed BasicUser2 and added teardown

* added badrequest unit test case for sessions

* added session loop to check if user id and session user id matches

* fixed indentation issues for user_test

* match indentation from spaces to tabs
2017-02-17 10:31:01 -05:00
Joram Wilander
96f01d8c6c Move channel permission check back to using cache (#5454) 2017-02-17 09:33:38 -05:00
Josta Yee
c817c5d740 Simplify code (#5452)
https://github.com/mattermost/platform/blob/master/app/authentication.go#L149 has compared `user.AuthService` with `model.USER_AUTH_SERVICE_LDAP`, so this check is useless here.
2017-02-17 14:04:19 +00:00
Corey Hulen
da448cedc8 Fix issue with Aurora read replica (#5448) 2017-02-17 08:20:29 -05:00
Harrison Healey
eadf37ad7a Added NewPostList constructor to set fields to be non-null (#5440) 2017-02-16 15:53:04 -05:00
George Goldberg
d60d05f2d8 PLT-5521: Mandatory version in line 1 of bulk import. (#5400) 2017-02-16 09:49:01 -05:00
Joram Wilander
f87d42916f Implement PUT /users/{user_id}/patch endpoint for APIv4 (#5418) 2017-02-16 09:46:55 -05:00
Corey Hulen
1d6ea40022 Adding caching to profile images to master (#5428)
* Adding caching to profile images

* Fixing break

* Adding back in failed read

* Fixing build break

* Fixing break
2017-02-15 18:54:41 -05:00
Joram Wilander
db2966b7cb Remove MakeDirectChannelVisible and add client handling for showing DMs (#5430) 2017-02-15 18:54:24 -05:00
Corey Hulen
2e0cf56e86 Fixing websocket auth then sending challenge (#5406) 2017-02-14 17:25:40 -05:00
Ruzette Tanyag
28aa7cdbf2 Implement GET channels endpoints for APIv4 (#5363)
* implement get channels endpoints and updated drivers and unittests

* removed channel deletion on tear down, removed manage permission on get channels endpoints, and updated utils to add constant channel length

* added constants for user, team and channel length, updated context to use the model functions

* make sure team name length should be less than the minimum length and revert underscore to team name validity

* changed post test condition from notfound to unauthorized
2017-02-14 10:28:08 -05:00
Joram Wilander
4149e82455 Fix here notifications (#5377) 2017-02-14 10:27:34 -05:00
George Goldberg
6251e836b0 PLT-5398 Bulk loading of user display preferences. (#5382) 2017-02-14 08:38:48 -05:00
Corey Hulen
62e20e98f9 Fixing push notificaiton (#5394) 2017-02-13 22:20:37 -05:00
Joram Wilander
67dd6c1ec6 Fix unread error (#5390) 2017-02-13 13:23:39 -05:00
Joram Wilander
e4effd0c15 Implement some post endpoints for APIv4 (#5353)
* Implement POST /posts endpoint for APIv4

* Implement GET /channels/{channel_id}/posts endpoint for APIv4

* Implement GET /posts/{post_id} endpoint for APIv4

* Implement GET /posts/{post_id}/thread endpoint for APIv4

* Skip team get if it's a DM channel in handlePostEvents
2017-02-13 10:52:50 -05:00
Joram Wilander
ff741740ee Increase performance when receiving messages (#5375) 2017-02-13 09:27:28 -05:00
Joram Wilander
d05525e216 Fix copy/paste error for getting users (#5373) 2017-02-12 15:17:34 -05:00
Christopher Speller
2a9c1afd44 Adding webhook metrics (#5348) 2017-02-10 07:05:12 -08:00
Christopher Speller
9934954d18 Adding websocket event metrics (#5342) 2017-02-10 07:01:08 -08:00
Corey Hulen
1359f7f391 Adding go vet from hack-a-thon (#5328)
* Adding go vet to the api package

* Adding go vet to app package

* Adding go vet to manualtesting package

* Adding go vet to the model package

* Adding go vet to the store dir

* Adding go vet to utils package

* Adding missing dirs with go files

* Fixing up makefile

* Fixing up makefile

* Removing root dir
2017-02-09 21:39:15 +00:00
George Goldberg
8277945363 PLT-5427: Import ChannelMember Notify Props. (#5329) 2017-02-08 08:19:38 -08:00
Ruzette Tanyag
0162d8ad08 Implement GET /users/username/{username} endpoint for APIv4 (#5310)
* added get user by username endpoint

* added get user by username unit test and driver

* changed username length to 22 characters max

* changed Params to UserName to Username

* reorganized get user by username and get user by email formatting in model/client4
2017-02-08 02:00:16 -08:00
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