Commit Graph

731 Commits

Author SHA1 Message Date
Carlos Tadeu Panato Junior
f758f9ff3a [APIV4] GET /emoji/{emoji_id}/image for apiV4 (#6141)
* implement GET /emoji/{emoji_id}/image for apiV4

* update per request
2017-04-20 11:14:15 -04:00
George Goldberg
55bbf15fc7 PLT-6112: Add some more unit tests to the model package (#6142)
* Unit Tests for model/push_response.go

* Unit tests for security_bulletin.go

* Unit tests for webrtc.go

* Unit tests for model/password_recovery.go

* Add missing headers.

* Unit tests for model/license.go

* Tidy up existing tests.

* Simplify JSON to/from tests.

* Fix gofmt
2017-04-20 09:58:54 -04:00
Saturnino Abril
b0e5713680 APIv4 POST /channels/group (#6166) 2017-04-20 09:55:43 -04:00
Joram Wilander
be9624e2ad Implement v4 endpoints for OAuth (#6040)
* Implement POST /oauth/apps endpoint for APIv4

* Implement GET /oauth/apps endpoint for APIv4

* Implement GET /oauth/apps/{app_id} and /oauth/apps/{app_id}/info endpoints for APIv4

* Refactor API version independent oauth endpoints

* Implement DELETE /oauth/apps/{app_id} endpoint for APIv4

* Implement /oauth/apps/{app_id}/regen_secret endpoint for APIv4

* Implement GET /user/{user_id}/oauth/apps/authorized endpoint for APIv4

* Implement POST /oauth/deauthorize endpoint
2017-04-20 09:55:02 -04:00
Harrison Healey
1a0f8d1b3c PLT-1384 Added websocket event when preferences are updated/deleted (#6107) 2017-04-20 13:57:31 +01:00
Joram Wilander
0b919a324a Don't sanitize returned user when updating a user (#6095)
* Don't sanitize returned user when updating a user

* Use user model function for clearing private data
2017-04-19 15:38:35 -04:00
Christopher Speller
5398c82e1b Revert "Usernames must start with a letter (#5581)"
This reverts commit 2e911b77c3.
2017-04-18 17:37:25 -04:00
Saturnino Abril
d2b86f1b8d APIv4 POST /reactions (#6092)
* APIv4 POST /reactions

* update corresponding V3 endpoint
2017-04-18 16:15:15 -04:00
Christopher Speller
92d8fa4aa8 Merge branch 'release-3.8' 2017-04-17 15:08:56 -04:00
Saturnino Abril
742bab6429 APIv4 PUT /users/{user_id}/active (#6118) 2017-04-17 11:06:33 -04:00
Corey Hulen
3207886514 Adding the ability to disable full text search queries for master (#6102) 2017-04-17 10:54:26 -04:00
gstraube
160a66c952 [PLT-6102] Increase maximum length of field User.Position (#6044)
* Increase maximum length of field User.Position

* Rename method
2017-04-17 10:45:51 -04:00
Carlos Tadeu Panato Junior
80684ad69f implement DELETE /emoji/{emoji_id} fro apiV4 (#6021)
implement GET /emoji/{emoji_id} for apiv4
2017-04-17 10:07:28 -04:00
Joram Wilander
74ffb6f98f Implement GET /webrtc/token endpoint for APIv4 (#6046) 2017-04-16 21:14:31 -04:00
Carlos Tadeu Panato Junior
d8d0716122 [APIV4] POST /commands/{command_id}/regen_token for apiV4 (#6052)
* implement POST /commands/{command_id}/regen_token for apiV4

* update comment
2017-04-16 16:49:57 -04:00
Andy Lo-A-Foe
8072bb6f57 Fix Go client’s GetTeamByName() (#6088) 2017-04-12 14:21:19 -07:00
Joram Wilander
8b8aa2ca3c Refactor OAuth 2.0 code into app layer (#6037) 2017-04-12 16:29:42 -04:00
Harrison Healey
fb6f2a123c PLT-5860 Updated copyright date (#6058)
* PLT-5860 Updated copyright date in about modal

* PLT-5860 Updated copyright notice in JSX files

* PLT-5860 Updated copyright notice in go files

* Fixed misc copyright dates

* Fixed component snapshots
2017-04-12 08:27:57 -04:00
Saturnino Abril
e841d0c502 APIv4 GET /posts/{post_id}/reactions (#6047) 2017-04-11 14:14:33 +01:00
JoramWilander
5c89fe1b8d Fix configuration setting 2017-04-10 14:47:38 -04:00
George Goldberg
9fa4712dd7 PLT-6260: Allow empty legal/support links. (#6057) 2017-04-10 12:16:50 -04:00
Saturnino Abril
3b1088f3bd APIv4 DELETE /commands/{command_id} (#6012) 2017-04-10 09:27:10 -04:00
Joram Wilander
dfc6db7374 Refactor switching login type code into app layer and add v4 endpoint (#6000)
* Refactor switching login type code into app layer and add v4 endpoint

* Fix unit test
2017-04-10 08:19:49 -04:00
Saturnino Abril
a3f5cffd46 APIv4 PUT /commands/{command_id} (#5999)
* APIv4 PUT /commands/{command_id}

* update client parameter and api4 test
2017-04-07 10:06:09 -07:00
Carlos Tadeu Panato Junior
1bd19f006d implement GET /emoji for apiV4 (#6007) 2017-04-07 10:05:14 -07:00
Carlos Tadeu Panato Junior
48d9099882 implement POST /emoji for apiV4 (#5868) 2017-04-06 11:15:57 -04:00
Saturnino Abril
d8b732a488 APIv4 GET /users/{user_id}/posts/flagged (#5984)
* APIv4 GET /users/{user_id}/posts/flagged

* change permission check
2017-04-05 16:18:23 -04:00
Christopher Speller
997b35d2fc Increment server version number 2017-04-05 08:57:49 -04:00
Corey Hulen
6bf080393d Fixing race conditions in the code base (#5966)
* Adding initial race detector

* Remove setting of config twice

* Fixing config file watch and config reload on license save

* Fixing config file watch and config reload on license save

* Fixing build error

* Fixing locking issue

* Fixing makefile

* Fixing race in config

* Fixing race in status unit test

* Adding EE race tests

* Fixing race in cluster info

* Removing code that's isn't needed

* Fixing some more races

* Fixing govet issue
2017-04-04 14:42:07 -04:00
George Goldberg
9609a9b89a PLT-6196: Websocket message when added to a team. (#5968) 2017-04-04 08:26:40 -07:00
Carlos Tadeu Panato Junior
0a81dd9fff implement GET /teams/{team_id}/commands/autocomplete (#5951) 2017-04-03 21:20:04 -07:00
Carlos Tadeu Panato Junior
9dce502814 Implement POST /teams/{team_id}/invite/email for apiV4 (#5944) 2017-04-03 21:32:09 -04:00
George Goldberg
1bcb5cdb9d PLT-6169: Batch add users to teams. (#5953) 2017-04-03 19:32:57 +01:00
enahum
1cbe6e7975 Add more OAuth unit tests (#5946) 2017-04-03 10:37:58 -07:00
Saturnino Abril
997eacd4b6 APIv4 DELETE /teams/{team_id} (#5937) 2017-04-03 10:35:29 -07:00
Saturnino Abril
43e795448f APIv4 post /teams/search (#5931) 2017-04-03 10:34:14 -07:00
George Goldberg
e49f5928c5 PLT-6139 (Server): Private Channel member managing (#5941)
Adds an EE policy feature to allow restricting system-wide which level of
Admins can manage the membership of private channels.
2017-04-03 13:13:28 -04:00
George Goldberg
232a99f0c7 PLT-6162: Search for users not in a given team. (#5943) 2017-04-03 13:11:12 -04:00
Carlos Tadeu Panato Junior
da5265681d [APIV4] Implement PUT /users/{user_id}/status for apiV4 (#5928) 2017-04-03 17:40:45 +01:00
Carlos Tadeu Panato Junior
7eb09dbffd [APIV4] POST /teams/{team_id}/import for apiv4 (#5920) 2017-04-03 17:38:26 +01:00
Carlos Tadeu Panato Junior
88b8df3146 implement GET /commands (#5865) 2017-04-03 08:12:50 -04:00
Joram Wilander
95da05a8c9 PLT-5750 Add sequence number to websocket connections and events (#5907)
* Add sequence number to websocket connections and events

* Copy pointer instead of pass by value and use int64 over uint64

* Add more logging to missed events
2017-04-01 11:39:13 -04:00
Saturnino Abril
5d56fbb036 APIv4 POST /posts/{post_id/pin & unpin (#5906)
* APIv4 get /posts/{post_id}/pin & unpin

* remove PinnedPost from api test helper
2017-03-31 09:58:47 -04:00
Joram Wilander
4e224c2996 Implement PUT /channels/{channel_id}/members/{user_id}/notify_props for APIv4 (#5901) 2017-03-31 09:55:37 -04:00
Corey Hulen
00bb479989 PLT-6090 adding ability to read license file from disk (#5895)
* PLT-6090 adding ability to read license file from disk

* Fixing unit test that fails only sometimes

* Fixing test that fails randomly
2017-03-31 09:54:30 -04:00
Carlos Tadeu Panato Junior
29e6db5713 Implement POST /users/status/ids for apiv4 (#5894) 2017-03-30 08:09:39 -07:00
Harrison Healey
6ac87d82e3 PLT-2713 Added ability for admins to list users not in any team (#5844)
* PLT-2713 Added ability for admins to list users not in any team

* Updated style of unit test
2017-03-29 21:11:40 -04:00
George Goldberg
a4764a5c10 PLT-6083: API to get users not in a specific team. (#5888) 2017-03-29 21:10:51 -04:00
Saturnino Abril
8a31718db1 APIv4 get /channels/{channel_id}/pinned (#5893) 2017-03-29 08:09:05 -07:00
George Goldberg
64f80decaf PLT-6057: Fix empty search results with in/from. (#5892)
When search query was empty but in/from was set, search results didn't
include posts containing hashtags.
2017-03-29 08:08:36 -07:00