summaryrefslogtreecommitdiffstats
path: root/api4
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | | | | Fix various segfaults when running `go test` manually (#8448)Jesse Hallam2018-03-213-4/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * failing to find i18n shouldn't segfault The server was trying to handle the fact that it couldn't find the i18n directory, by emitting a translated log message... * fix utils.FindDir The attempts to find the directory in the parent or grandparent directory don't work if the current working directory was inside `enterprise`, with `enterprise` itself being a symlink as per the usual developer setup. Recurse to the root of the filesystem, cleaning the path along the way to work around this limitation (and allow tests to be run from an arbitrarily deep nesting level.) Fix corresponding usages to employ filepath.Join. * failing to find html templates shouldn't segfault * fail fast if the test user cannot be created * rework utils.FindDir to retain backwards compatibility
* | | | | | | | | Fix paging for GET /teams and GET /teams/{id}/members endpoints (#8488)Joram Wilander2018-03-212-3/+29
| |_|_|_|_|_|_|/ |/| | | | | | |
* | | | | | | | remove s3 region to be mandatory and fix when user call test s3 when the ↵Carlos Tadeu Panato Junior2018-03-142-13/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | config is saved (#8454)
* | | | | | | | update email test in the driver to be able to send the config in the body ↵Carlos Tadeu Panato Junior2018-03-131-17/+23
| |_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | (#8453) Signed-off-by: cpanato <ctadeu@gmail.com>
* | | | | | | Removed mssola/user_agent library (#8417)Harrison Healey2018-03-121-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Removed mssola/user_agent library * Changed user agent tests to use t.Run
* | | | | | | MM-9274- Sort Users in Channel by status (#8181)Stephen Kiers2018-03-093-3/+170
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * sort by lastActivity * added status ordering to Users * sort offline before dnd * remove data not needed * added seperate call for when order=‘status’ is on GetUser request * remove PrintLn * styling fix * remove mistake * mistake 2 * better comment * explicit if statemnt * writing tests * removed manually added mocks * generated mock * ICU-668 Added unit tests * style fix * sort by lastActivity * added status ordering to Users * sort offline before dnd * remove data not needed * added seperate call for when order=‘status’ is on GetUser request * remove PrintLn * styling fix * remove mistake * mistake 2 * better comment * explicit if statemnt * writing tests * removed manually added mocks * generated mock * ICU-668 Added unit tests * style fix * reverse dnd and offline * Fixed app.SaveStatusAndBroadcast * Fixed incorrect merge * Fixing incorrect merge again
* | | | | | | general cleanup (#8387)Chris2018-03-072-28/+0
| | | | | | |
* | | | | | | MM-9664 Add invalidation metrics for store caches (#8340)Joram Wilander2018-03-051-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add invalidation metrics for store caches * Increment session invalidation metric * Fix tests
* | | | | | | MM-8604: emit config/license websocket events (#8371)Jesse Hallam2018-03-051-9/+1
| |_|_|_|_|/ |/| | | | |
* | | | | | PLT-7567: Integration of Team Icons (#8284)Christian Hoff2018-03-012-0/+164
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PLT-7567: Integration of Team Icons * PLT-7567: Read replica workaround, upgrade logic moved, more concrete i18n key * PLT-7567: Read replica workaround, corrections * PLT-7567: upgrade correction
* | | | | | [PLT-8186] add support for ec2 instance profile authentication (#8243)Carlos Tadeu Panato Junior2018-02-282-0/+95
| | | | | |
* | | | | | Merge remote-tracking branch 'origin/release-4.7' into merge47intomasterDerrick Anderson2018-02-231-2/+4
|\ \ \ \ \ \
| * | | | | | Change log level of 404s to DEBUG (#8339)Joram Wilander2018-02-211-2/+4
| | | | | | |
* | | | | | | Remove global site url (#8343)Chris2018-02-221-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * remove global site url * missed one * revert mysterious change
* | | | | | | MM-8681 Adding config settings necessary for using CloudFront. (#8307)Christopher Speller2018-02-201-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Adding config settings nessisary for using CloudFront. * Adding new config settings to diagnostics.
* | | | | | | 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
|