Christopher Speller
4a69c277a6
Adding go client support and basic unit tests for channel autocomplete. ( #8510 )
2018-03-26 12:41:06 -07:00
George Goldberg
ca5198c7b6
Ignore blank role names in getRolesByName call. ( #8507 )
2018-03-26 13:56:57 +02:00
Elias Nahum
67c0efae1b
Allow to get the team icon for open teams ( #8499 )
...
* Allow to get the team icon for open teams
* feedback review
2018-03-23 16:49:18 +03:00
Martin Kraft
5fa1b35819
Merge branch 'master' into advanced-permissions-phase-1
2018-03-23 09:08:49 -04:00
Chris Duarte
74e703f58d
Timezone feature ( #8185 )
...
* Add supported timezones into config
Remove Timezone list creation in favor of timezone from configs
Add Timezone field to Users table
Clean up format of SupportedTimezones in config
* Remove unwanted change
* Add test for updating user timezone
* Add empty map[string]string if Timezone is null
* Add EnableTimezoneSelection config
* Revert back to map[string]string for ClientConfig
* Refactor SupportedTimezones into timezones.json
* Include timezones.json in TestConfigFlag
* Add timezone api endpoint
* Bump varchar size to 256 and setMaxSize in user_store
* Refactor LoadConfig to LoadConfig and LoadTimezoneConfig
* Remove unnecessary argument in LoadConfig, mail_test
* Add test for timezone endpoint
* Add license header
* Refactor timezones endpoint to system.go
* Add system base route to timezone endpoint
* db timezone upgrade in db v4.9
* Avoid saving SupportedTimezones to config.json
* Add timezonePath support in config
* Remove EnableTimezoneSelection from config
* Use return statement without return parameter
* Refactor test for SupportedTimezones
* Check for supportedTimezone != nil instead of using len
* Decouple SupportedTimezones out of Config
* Fix failing test
* Add LastTeamIconUpdate back in upgrade.go
* Write timezone config in config_flag_test
* Add code fallback for default timezone support
2018-03-22 09:53:43 -04:00
Jesse Hallam
9d701c7044
Fix various segfaults when running go test manually ( #8448 )
...
* 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
2018-03-21 18:27:14 +00:00
Joram Wilander
b1b23079c6
Fix paging for GET /teams and GET /teams/{id}/members endpoints ( #8488 )
2018-03-21 23:33:47 +08:00
George Goldberg
37f0e5e0eb
Merge branch 'master' into advanced-permissions-phase-1
2018-03-19 10:53:37 +00:00
Carlos Tadeu Panato Junior
db4402c40d
remove s3 region to be mandatory and fix when user call test s3 when the config is saved ( #8454 )
2018-03-14 00:26:56 +08:00
Carlos Tadeu Panato Junior
1b29b50330
update email test in the driver to be able to send the config in the body ( #8453 )
...
Signed-off-by: cpanato <ctadeu@gmail.com >
2018-03-13 10:42:56 -05:00
George Goldberg
fadcdd271a
Merge branch 'master' into advanced-permissions-phase-1
2018-03-13 13:36:23 +00:00
Harrison Healey
4e26594fcb
Removed mssola/user_agent library ( #8417 )
...
* Removed mssola/user_agent library
* Changed user agent tests to use t.Run
2018-03-12 10:21:20 -04:00
Stephen Kiers
302dae5bb9
MM-9274- Sort Users in Channel by status ( #8181 )
...
* 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
2018-03-09 07:48:30 -05:00
Chris
e8943936c5
general cleanup ( #8387 )
2018-03-07 12:36:40 -06:00
Jesús Espino
b66e4bc932
MM-8830 Consistent Incomming/Outgoing webhooks permissions ( #8335 )
2018-03-07 14:54:47 +00:00
Joram Wilander
4a1802c039
MM-9664 Add invalidation metrics for store caches ( #8340 )
...
* Add invalidation metrics for store caches
* Increment session invalidation metric
* Fix tests
2018-03-05 10:35:26 -05:00
Jesse Hallam
fbff94f3be
MM-8604: emit config/license websocket events ( #8371 )
2018-03-05 12:18:22 +00:00
George Goldberg
901acc9703
Merge branch 'master' into advanced-permissions-phase-1
2018-03-02 15:55:03 +00:00
Christian Hoff
2b3b6051d2
PLT-7567: Integration of Team Icons ( #8284 )
...
* 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
2018-03-01 19:11:44 +00:00
Carlos Tadeu Panato Junior
6e024c45b5
[PLT-8186] add support for ec2 instance profile authentication ( #8243 )
2018-02-28 23:12:11 +00:00
Derrick Anderson
4538857ae3
Merge remote-tracking branch 'origin/release-4.7' into merge47intomaster
2018-02-23 15:14:01 -05:00
Chris
d44ef7ea67
Remove global site url ( #8343 )
...
* remove global site url
* missed one
* revert mysterious change
2018-02-22 18:23:32 -06:00
Joram Wilander
659ce8c600
Change log level of 404s to DEBUG ( #8339 )
2018-02-21 09:20:10 -05:00
Christopher Speller
75d9a3a3b9
MM-8681 Adding config settings necessary for using CloudFront. ( #8307 )
...
* Adding config settings nessisary for using CloudFront.
* Adding new config settings to diagnostics.
2018-02-20 12:49:45 -08:00
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
George Goldberg
f8289eb286
Merge branch 'master' into advanced-permissions-phase-1
2018-02-19 11:19:39 +00:00
Jesús Espino
8891fa2a5e
MM-8827: Add ADD_REACTION, REMOVE_REACTION and REMOVE_OTHERS_REACTIONS permissions ( #8300 )
2018-02-19 11:13:29 +00:00
George Goldberg
0e718a632a
MM-9618: Don't change default role permissions for policy. ( #8303 )
2018-02-19 10:16:45 +00: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
a43928cca8
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 14:05:18 -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
George Goldberg
5c101253c5
Merge branch 'master' into advanced-permissions-phase-1
2018-02-13 13:46:01 +00: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
Martin Kraft
9325430859
XYZ-73: Removes EnableOnlyAdminIntegrations uses. ( #8245 )
2018-02-12 18:49:29 +01: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
George Goldberg
1edcabbc9b
Fix tests. ( #8244 )
2018-02-12 14:52:42 +01: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
Jesús Espino
0aa7ecd5e8
AllowEditPost and PostEditTimeLimit migration ( #8208 )
...
* AllowEditPost and PostEditTimeLimit migration
* Not set EDIT_POST permission to sysadmin_role if ALLOW_EDIT_POST is configured to NEVER
* Remove a bit of code duplication
2018-02-09 10:31:01 -05:00
George Goldberg
fa5cba9cc7
XYZ-76: Add license check to patchRoles endpoint. ( #8224 )
2018-02-08 17:07:40 +01: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
a04b02081a
Merge remote-tracking branch 'origin/master' into advanced-permissions-phase-1
2018-02-07 18:05:23 +01:00
Jesús Espino
121712ce5d
Remove fmt.Println trace on api4 tests ( #8212 )
2018-02-07 03:42:55 -06:00