summaryrefslogtreecommitdiffstats
path: root/api4
Commit message (Collapse)AuthorAgeFilesLines
* MM-9556 Added ability to upload files without a multipart request (#8306)Harrison Healey2018-02-204-25/+199
| | | | | | * MM-9556 Added ability to upload files without a multipart request * MM-9556 Handled some unusual test behaviour
* Added t.Helper to CheckXStatus test functions (#8305)Harrison Healey2018-02-201-21/+28
|
* [PLT-539] Update incoming webhooks to accept multipart/form-data content (#7873)Carlos Tadeu Panato Junior2018-02-161-18/+38
|
* Merge release-4.7 with master in side branchDerrick Anderson2018-02-131-2/+3
|\
| * Merge branch 'release-4.7' into rm-willnorris-proxy-supportChris2018-02-129-54/+371
| |\
| | * revert master changesDerrick Anderson2018-02-129-54/+371
| | |
| * | remove willnorris/imageproxy supportChristopher Brown2018-02-121-2/+3
| |/
* / ABC-176 Prevent changing PluginSettings.EnableUploads through the API (#8249)Joram Wilander2018-02-132-2/+23
|/ | | | | | * Prevent changing PluginSettings.EnableUploads through the API * Contain api4 test case in it's own test
* Merge branch 'master' into release-4.7Chris2018-02-129-371/+54
|\
| * Add /v4/image api (#8230)Chris2018-02-093-0/+79
| | | | | | | | | | | | | | | | * add image api * i suppose i should add a test... * only redirect to image proxy
| * Remove license globals entirely (#8229)Chris2018-02-093-67/+6
| | | | | | | | | | | | | | | | * remove license globals entirely * fix infinite recursion * test fix
| * Eliminate utils.SetLicense calls (#8217)Chris2018-02-074-290/+25
| | | | | | | | | | | | | | | | | | | | * eliminate utils.SetLicense calls * test fix * another test fix * more test fixes
| * ABC-132: sign error page parameters (#8197)Chris2018-02-072-11/+17
| | | | | | | | | | | | * sign error page parameters * add comments
| * Remove fmt.Println trace on api4 tests (#8212)Jesús Espino2018-02-071-2/+1
| |
| * Abort on critical error during server startup (#8204)Pierre de La Morinerie2018-02-071-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Only a handful of critical errors are present in the codebase. They all occur during server startup (in `app.StartServer()`). Currently, when one of these critical error occurs, it is simpled mentionned in the logs – then the error is discarded, and the app attempts to continue the execution (and probably fails pretty quickly in a weird way). Rather than continuing operations in an unknow state, these errors should trigger a clean exit. This commit rewrites critical startup errors to be correctly propagated, logged, and then terminate the command execution. Additionnaly, it makes the server return a proper error code to the shell.
* | Added invite_id field to email invite url, along with validation of this ↵Jonathan2018-02-121-1/+2
| | | | | | | | field on the server (#8235)
* | Add /v4/image api (#8230)Chris2018-02-093-0/+79
|/ | | | | | | | * add image api * i suppose i should add a test... * only redirect to image proxy
* add App.License, remove utils.IsLicensed / utils.License calls (#8203)Chris2018-02-062-3/+3
|
* User based rate limiting (#8152)Christopher Speller2018-01-311-32/+13
|
* ABC-79: Optimize channel autocomplete query (#8163)Chris2018-01-311-0/+22
| | | | | | * optimize channel autocomplete query * move to new autocomplete endpoint
* Add GET /emojis/name/{emoji_name} API endpoint (#8142)Joram Wilander2018-01-243-2/+47
|
* ABC-90 Add POST /emoji/search and GET /emoji/autocomplete API endpoints (#8125)Joram Wilander2018-01-233-1/+179
| | | | | | * Add POST /emoji/search and GET /emoji/autocomplete API endpoints * Add constant to be clearer
* PLT-3383: image proxy support (#7991)Chris2018-01-222-12/+12
| | | | | | | | | | | | * image proxy support * go vet fix, remove mistakenly added coverage file * fix test compile error * add validation to config settings and documentation to model functions * add message_source field to post
* Add sort query parameter to GET /emojis (#8121)Joram Wilander2018-01-192-1/+14
|
* Finally remove utils.Cfg (#8113)Chris2018-01-174-81/+90
| | | | | | | | * finally remove utils.Cfg * fix compile error * another test compilation fix
* [PLT-8430] Auto lowercase team and channel names in API requests (#7992)Carlos Tadeu Panato Junior2018-01-123-2/+10
|
* redirect error uri when OAuth SSO is setup but account creation is disabled ↵Saturnino Abril2018-01-111-1/+1
| | | | (#8086)
* [PLT-7793] Add /users/tokens/search endpoint (#8088)Adrian Carolli2018-01-112-0/+71
| | | | | | | | * Add /users/tokens/search endpoint + tests * Fix check-style * Unnecessary deletion
* Remove global config watcher (#8080)Chris2018-01-111-2/+7
| | | | | | | | | | * remove global config watcher * keep config watcher disabled for tests * compile fix * fix resource leak
* [XYZ-6] Add sampledata platform command (#8027)Jesús Espino2018-01-112-2/+2
| | | | | | | | * Add fake dependency * [XYZ-6] Add sampledata platform command * Creating EMOJI_NAME_MAX_LENGTH as a constant and using it where needed
* [PLT-6936] Translate AppError.Message automatically by default (#8063)Jesús Espino2018-01-082-2/+1
|
* Remove utils.ClientCfg and utils.ClientCfgHash (#8041)Chris2018-01-053-3/+3
| | | | | | * remove utils.ClientCfg and utils.ClientCfgHash * remove unused import
* [PLT-7793] Added /users/tokens endpoint (#8038)Adrian Carolli2018-01-052-1/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added /users/tokens/all endpoint - UserAccessStore now has getAll method - Added tests - Added route - Added handler * Remove space fix check-style * Remove blank space check-style * Fixes for make check-style * Remove extra code that is un-needed in user_test.go * Rename endpoint + grammar - Renamed /users/tokens/all to /users/tokens - Renamed getUserAccessTokens to getUserAccessTokensForUser - Renamed getAllUserAccessTokens to getUserAccessTokens - Minor Grammar changes * Add localization for sql_user_access_token.get_all * Fix minor plural spelling
* Add admin update endpoint that can update authservice and authdata (#7842)Chris Duarte2018-01-042-0/+90
| | | | | | | | | | * add admin update endpoint that can upate authservice and authdata * Control only SystemAdmin access * Refactored AdminUpdate endpoint to only be able to update AuthData, AuthService and Password by User.Id * Refactor to move `PUT /api/v4/users/{user_id}/auth`. Created a struct to hold UserAuth info.
* [PLT-8173] Strip the post_ prefix on incoming webhook overrides. (#8019)Jesse Hallam2018-01-031-8/+8
|
* [PLT-8173] Add username and profile picture to webhook set up pages (#8002)Jesse Hallam2018-01-021-0/+61
|
* Allow for custom subject in TestInviteUsersToTeam (#7999)Chris Duarte2018-01-021-1/+5
|
* Reduce logging data races, fix MySQL test race condition (#7994)Chris2017-12-2227-93/+4
| | | | | | | | * fix races * revert unintentional change * fix test as intended
* Merge branch 'release-4.5'Christopher Speller2017-12-181-1/+1
|\
| * fix PUT webhook permissions (#7970)Chris2017-12-121-1/+1
| |
* | fix reaction test (#7978)Chris2017-12-141-10/+5
| |
* | PLT-6896 per-paging for logs (#7903)Yusuke Nemoto2017-12-133-12/+23
| | | | | | | | | | | | | | | | | | | | * PLT-6896 Read logs from last * Getting rid of file.Stats * remove deprecated value * Make non-reassigned value constant
* | Add plugin slash command support (#7941)Chris2017-12-081-1/+1
| | | | | | | | | | | | | | | | * add plugin slash command support * remove unused string * rebase
* | Allow deactivation of SSO users (#7952)Joram Wilander2017-12-082-3/+20
|/
* Fix oauth app update (#7913)Joram Wilander2017-12-012-1/+8
|
* PLT-8018: Bundled jira plugin (#7920)Chris2017-11-301-1/+1
| | | | | | | | | | | | * bundled jira plugin * fix generated file formatting, add prepackaged key * whoops, uploaded wrong file * whitelist generated files for license check * make it work for people without go/bin in their path
* Add Config to disable Auth Transfers. (#7843)Chris Duarte2017-11-281-0/+51
| | | | | | * Add Config to disable Auth Transfers. * Set config ExperimentalEnableAuthenticationTransfer behind an E20 license restriction
* PLT-8058: Logging api.context.invalid_session.error app errors to log level ↵Martin Kraft2017-11-231-2/+13
| | | | 'info'. (#7893)
* origin checker refactor (#7889)Chris2017-11-221-3/+1
|
* HTTP client refactor (#7884)Chris2017-11-221-2/+1
| | | | | | * http client refactor * simplification