Harrison Healey
babd795d79
MM-9556 Added ability to upload files without a multipart request ( #8306 )
...
* MM-9556 Added ability to upload files without a multipart request
* MM-9556 Handled some unusual test behaviour
2018-02-20 10:41:00 -05:00
Harrison Healey
f85d910592
Added t.Helper to CheckXStatus test functions ( #8305 )
2018-02-20 08:51:01 -05:00
Carlos Tadeu Panato Junior
8c3a7b75de
[PLT-539] Update incoming webhooks to accept multipart/form-data content ( #7873 )
2018-02-16 08:29:12 -08:00
Derrick Anderson
4e4535bda9
Merge release-4.7 with master in side branch
2018-02-13 23:20:27 -05:00
Joram Wilander
5c560db810
ABC-176 Prevent changing PluginSettings.EnableUploads through the API ( #8249 )
...
* Prevent changing PluginSettings.EnableUploads through the API
* Contain api4 test case in it's own test
2018-02-13 11:08:49 -05:00
Chris
fbef16f863
Merge branch 'release-4.7' into rm-willnorris-proxy-support
2018-02-12 18:36:39 -06:00
Derrick Anderson
c209e44574
revert master changes
2018-02-12 16:01:02 -05:00
Christopher Brown
141cfd2f9b
remove willnorris/imageproxy support
2018-02-12 13:05:01 -06:00
Chris
1ae680aefa
Merge branch 'master' into release-4.7
2018-02-12 12:02:54 -06:00
Jonathan
9707ac3aaf
Added invite_id field to email invite url, along with validation of this field on the server ( #8235 )
2018-02-12 09:16:17 -05:00
Chris
a4e9499714
Add /v4/image api ( #8230 )
...
* add image api
* i suppose i should add a test...
* only redirect to image proxy
2018-02-09 13:59:17 -06:00
Chris
0daac7e4fc
Add /v4/image api ( #8230 )
...
* add image api
* i suppose i should add a test...
* only redirect to image proxy
2018-02-09 11:56:11 -08:00
Chris
a6309aaf48
Remove license globals entirely ( #8229 )
...
* remove license globals entirely
* fix infinite recursion
* test fix
2018-02-09 10:04:48 -06:00
Chris
0f703a3368
Eliminate utils.SetLicense calls ( #8217 )
...
* eliminate utils.SetLicense calls
* test fix
* another test fix
* more test fixes
2018-02-07 16:20:51 -06:00
Chris
eff65aa05c
ABC-132: sign error page parameters ( #8197 )
...
* sign error page parameters
* add comments
2018-02-07 12:05:46 -05:00
Jesús Espino
121712ce5d
Remove fmt.Println trace on api4 tests ( #8212 )
2018-02-07 03:42:55 -06:00
Pierre de La Morinerie
809a16458f
Abort on critical error during server startup ( #8204 )
...
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.
2018-02-07 02:11:15 -06:00
Chris
1ec295f88c
add App.License, remove utils.IsLicensed / utils.License calls ( #8203 )
2018-02-06 17:25:49 -06:00
Christopher Speller
1262d25473
User based rate limiting ( #8152 )
2018-01-31 09:49:15 -08:00
Chris
e0ee73ef99
ABC-79: Optimize channel autocomplete query ( #8163 )
...
* optimize channel autocomplete query
* move to new autocomplete endpoint
2018-01-31 09:26:40 -05:00
Joram Wilander
3918ed6c58
Add GET /emojis/name/{emoji_name} API endpoint ( #8142 )
2018-01-24 08:50:11 -05:00
Joram Wilander
4f4a765e7d
ABC-90 Add POST /emoji/search and GET /emoji/autocomplete API endpoints ( #8125 )
...
* Add POST /emoji/search and GET /emoji/autocomplete API endpoints
* Add constant to be clearer
2018-01-23 08:04:44 -08:00
Chris
599991ea73
PLT-3383: image proxy support ( #7991 )
...
* 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
2018-01-22 15:32:50 -06:00
Joram Wilander
a844577535
Add sort query parameter to GET /emojis ( #8121 )
2018-01-19 09:37:59 -05:00
Chris
4e6cc846a6
Finally remove utils.Cfg ( #8113 )
...
* finally remove utils.Cfg
* fix compile error
* another test compilation fix
2018-01-17 13:38:37 -05:00
Carlos Tadeu Panato Junior
3d3a234fca
[PLT-8430] Auto lowercase team and channel names in API requests ( #7992 )
2018-01-12 09:01:45 -05:00
Saturnino Abril
4acc2238e9
redirect error uri when OAuth SSO is setup but account creation is disabled ( #8086 )
2018-01-11 19:18:16 -05:00
Adrian Carolli
b1d13a2d89
[PLT-7793] Add /users/tokens/search endpoint ( #8088 )
...
* Add /users/tokens/search endpoint + tests
* Fix check-style
* Unnecessary deletion
2018-01-11 16:30:55 -05:00
Chris
1d9efd0e39
Remove global config watcher ( #8080 )
...
* remove global config watcher
* keep config watcher disabled for tests
* compile fix
* fix resource leak
2018-01-11 13:23:41 -08:00
Jesús Espino
6990d052d5
[XYZ-6] Add sampledata platform command ( #8027 )
...
* Add fake dependency
* [XYZ-6] Add sampledata platform command
* Creating EMOJI_NAME_MAX_LENGTH as a constant and using it where needed
2018-01-11 10:57:47 -05:00
Jesús Espino
dd9ad10d70
[PLT-6936] Translate AppError.Message automatically by default ( #8063 )
2018-01-08 13:13:24 -05:00
Chris
591ef9f352
Remove utils.ClientCfg and utils.ClientCfgHash ( #8041 )
...
* remove utils.ClientCfg and utils.ClientCfgHash
* remove unused import
2018-01-05 16:17:57 -06:00
Adrian Carolli
fd3fa8f8dc
[PLT-7793] Added /users/tokens endpoint ( #8038 )
...
* 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
2018-01-05 14:46:48 -05:00
Chris Duarte
5e78d7fe12
Add admin update endpoint that can update authservice and authdata ( #7842 )
...
* 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.
2018-01-04 12:45:59 -05:00
Jesse Hallam
e5dad3cf68
[PLT-8173] Strip the post_ prefix on incoming webhook overrides. ( #8019 )
2018-01-03 10:35:36 -05:00
Jesse Hallam
e9fe9f50dd
[PLT-8173] Add username and profile picture to webhook set up pages ( #8002 )
2018-01-02 08:41:23 -08:00
Chris Duarte
384ca1017a
Allow for custom subject in TestInviteUsersToTeam ( #7999 )
2018-01-02 08:46:31 -05:00
Chris
91bfc72a99
Reduce logging data races, fix MySQL test race condition ( #7994 )
...
* fix races
* revert unintentional change
* fix test as intended
2017-12-22 12:09:33 +00:00
Christopher Speller
917e2417cf
Merge branch 'release-4.5'
2017-12-18 09:15:18 -08:00
Chris
95bdb51f40
fix reaction test ( #7978 )
2017-12-14 06:31:11 -06:00
Yusuke Nemoto
ddd99f7476
PLT-6896 per-paging for logs ( #7903 )
...
* PLT-6896 Read logs from last
* Getting rid of file.Stats
* remove deprecated value
* Make non-reassigned value constant
2017-12-13 13:04:55 -06:00
Chris
03f5c939de
fix PUT webhook permissions ( #7970 )
2017-12-12 17:44:01 -06:00
Chris
4c17bdff1b
Add plugin slash command support ( #7941 )
...
* add plugin slash command support
* remove unused string
* rebase
2017-12-08 13:55:41 -06:00
Joram Wilander
617a98d6d8
Allow deactivation of SSO users ( #7952 )
2017-12-08 11:14:55 -08:00
Joram Wilander
239e8df3f4
Fix oauth app update ( #7913 )
2017-12-01 08:21:44 -05:00
Chris
daebd26a28
PLT-8018: Bundled jira plugin ( #7920 )
...
* 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
2017-11-30 14:55:44 -06:00
Chris Duarte
27ba68a789
Add Config to disable Auth Transfers. ( #7843 )
...
* Add Config to disable Auth Transfers.
* Set config ExperimentalEnableAuthenticationTransfer behind an E20 license restriction
2017-11-28 11:46:48 -08:00
Martin Kraft
942b5b5cc0
PLT-8058: Logging api.context.invalid_session.error app errors to log level 'info'. ( #7893 )
2017-11-23 09:44:56 -05:00
Chris
1ccf093803
origin checker refactor ( #7889 )
2017-11-22 13:58:03 -08:00
Chris
77a1dc1f2f
HTTP client refactor ( #7884 )
...
* http client refactor
* simplification
2017-11-22 10:15:03 -05:00