Commit Graph

719 Commits

Author SHA1 Message Date
George Goldberg
7016c6b3a1 Make config.go defaults the same as config.json. (#5605) 2017-03-03 07:46:04 -05:00
Joram Wilander
3a91d4e5e4 PLT-3077 Add group messaging (#5489)
* Implement server changes for group messaging

* Majority of client-side implementation

* Some server updates

* Added new React multiselect component

* Fix style issues

* Add custom renderer for options

* Fix model test

* Update ENTER functionality for multiselect control

* Remove buttons from multiselect UI control

* Updating group messaging UI (#5524)

* Move filter controls up a component level

* Scroll with arrow keys

* Updating mobile layout for multiselect (#5534)

* Fix race condition when backspacing quickly

* Hidden or new GMs show up for regular messages

* Add overriding of number remaining text

* Add UI filtering for team if config setting set

* Add icon to channel switcher and class prop to status icon

* Minor updates per feedback

* Improving group messaging UI (#5563)

* UX changes per feedback

* Update email for group messages

* UI fixes for group messaging (#5587)

* Fix missing localization string

* Add maximum users message when adding members to GM

* Fix input clearing on Android

* Updating group messaging UI (#5603)

* Updating UI for group messaging (#5604)
2017-03-02 17:48:56 -05:00
Corey Hulen
633e894e4f Fixing parsing of device Ids (#5580) 2017-03-01 12:33:16 -05:00
Ruzette Tanyag
5df5d1fd02 reduced channel name min length to 2 (#5570) 2017-03-01 10:57:04 -05:00
Corey Hulen
fc9e5d8510 Fixing removing push tokens and logging error messages (#5551) 2017-02-28 22:19:19 -03:00
Saturnino Abril
28c218db3b Implementation endpoint of APIv4: GET /files/{file_id}/thumbnail (#5553)
* APIv4: GET /files/{file_id}/thumbnail

* added delay time
2017-02-28 22:18:36 -03:00
Joram Wilander
5e9adddb6f Reload license from DB for all cluster app servers (#5525)
* Reload license from DB for all cluster app servers

* Increase test timeout
2017-02-28 16:39:25 -05:00
Andrei Stanciu
25b9b7d26b ApiV4: GET /users/{user_id}/teams/unread (#5539) 2017-02-28 15:47:30 +00:00
Saturnino Abril
66c5f7a31c Implementation of APIv4: POST users/{user_id}/image (#5537)
* APIv4: POST users/{user_id}/image

* removed 'return' and rebased to master
2017-02-28 08:11:55 -05:00
Andrei Stanciu
6ff350380b ApiV4: PUT /posts/{post_id} (#5521) 2017-02-28 09:34:32 +00:00
Ruzette Tanyag
cef5028cbe Implemented preferences endpoints for apiv4 (#5531)
* implemented preferences endpoints for apiv4

* added user id in preferences endpoints
2017-02-28 09:14:16 +00:00
Andrei Stanciu
45edfbe719 Get all teams api4 (#5542) 2017-02-28 08:41:38 +00:00
enahum
48f97a5a2a PLT-5653 Fix Create channel does not show in another device (#5548) 2017-02-27 15:41:12 -05:00
Saturnino Abril
71d010b7af APIv4: GET /users/{user_id}/image (#5526) 2017-02-27 09:25:28 -05:00
Poornima
19b753467d Adding edit of incoming webhook (#5272)
Adding edit of outgoing webhook
Fixing spelling of error
Fixing style
Changing from PUT to POST for updates
Fixing test failures due to merge
2017-02-26 13:48:20 -05:00
George Goldberg
f182d196ff PLT-5070: Server side component of Telemetry. (#5514) 2017-02-24 17:33:59 +00:00
Carlos Tadeu Panato Junior
7fc5dc236a add implementation for verify email for apiv4 (#5502) 2017-02-24 08:27:47 -05:00
Joram Wilander
ace228c4e5 Implement GET /posts/{post_id}/files/info endpoint for APIv4 (#5519) 2017-02-24 11:15:13 +00:00
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
Corey Hulen
ca7d3b6e7b Adding device Id for version 2 of native apps (#5505)
* Adding device Id for version 2

* Changing ids
2017-02-23 08:53:43 -05:00
Joram Wilander
9220254f05 Block OAuth account creation when disabled in config (#5506) 2017-02-23 08:53:33 +00:00
Saturnino Abril
fff0b2bd86 APIv4: GET /teams/{team_id}/members (#5460)
* APIv4: GET /teams/{team_id}/members

* removed unecessary comment

* changed route to session required, and logout test to unauthorized

Signed-off-by: Saturnino Abril <saturnino.abril@gmail.com>
2017-02-22 18:55:31 -05: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
a14e44b4ec Implement endpoint for APIv4: PUT /teams/{team_id}/members/{user_id}/roles (#5471) 2017-02-21 12:13:26 +00:00
Saturnino Abril
5c19d9be7f Implement endpoint for APIv4: GET /users/{user_id}/audits (#5472) 2017-02-21 12:07:57 +00: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
Zaicon
becbe935c2 Corrected endpoint in email_to_oauth. (#5458) 2017-02-20 13:31:05 -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
Saturnino Abril
00d11e961f Implement GET teams/{team_id}/stats - apiv4 (#5453)
* api4 GET teams/{team_id}/stats

* api4 GET teams/{team_id}/stats

* moved TeamStats router to team.go
2017-02-17 15:50:17 -05: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
Corey Hulen
26e44d9b32 Bumping base cache numbers for master (#5451) 2017-02-17 08:21:06 -05:00
Robin Naundorf
48b785aded Add APIv4 /system/ping endpoint (#5443) 2017-02-17 10:57:19 +00:00
Harrison Healey
eadf37ad7a Added NewPostList constructor to set fields to be non-null (#5440) 2017-02-16 15:53:04 -05:00
Joram Wilander
f87d42916f Implement PUT /users/{user_id}/patch endpoint for APIv4 (#5418) 2017-02-16 09:46:55 -05:00
enahum
c8cbc3f0f3 (at)-mention preceded by ^, $, # or & to trigger a mention (#5419) 2017-02-16 09:13:08 +00:00
Joram Wilander
727d067fce Handle matching updateats for post list etag (#5435) 2017-02-15 18:55:47 -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
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
58dcf6984b Add cluster request time logging for master (#5347) 2017-02-10 07:04:14 -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
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
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
Joram Wilander
ba18374bd1 Implement a few team endpoints for APIv4 (#5296)
* Implement GET /teams/{team_id} endpoint for APIv4

* Implement GET /users/{user_id}/teams endpoint for APIv4

* Implement GET /teams/{team_id}/members/{user_id} endpoint for APIv4
2017-02-07 08:57:41 -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