summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* XYZ-76: Add license check to patchRoles endpoint. (#8224)George Goldberg2018-02-084-3/+99
|
* XYZ-59: Implement redis caching layer for Role store. (#8207)George Goldberg2018-02-074-67/+148
| | | | | | * XYZ-59: Implement redis caching layer for Role store. * Use variable for key where used more than once.
* Merge remote-tracking branch 'origin/master' into advanced-permissions-phase-1Jesús Espino2018-02-0752-125/+699
|\
| * PLT-7537: Move channel CLI command posts system message to channel. (#8161)Vordimous2018-02-076-8/+80
| | | | | | | | | | | | | | | | | | | | | | | | * [PTL-7537] implement feature and test * [PTL-7537] Update feature to post the the room requiring a username flag to be used * [PTL-7537] update tests with username * update test to remove changes to the test helper struct * use the basic team and user
| * XYZ-35: Added Support for GlobalRelay Compliance Export FormatJonathan2018-02-0717-51/+413
| | | | | | | | | | | | | | | | | | * Added username to ChannelMemberHistory struct in anticipation of supporting GlobalRelay in Compliance Export * Removed translation from debug output - this makes it complicated to use utils functions from tests in the enterprise repo * Added an advanced email function that allows for greater control over message details. Updated MessageExport config to support GlobalRelay. Added attachment support to InBucket unit tests * Moving templates in from enterprise to solve test issues * Added export format to diagnostics * Changed email attachment code to use FileBackend so that S3 storage is properly supported
| * allow plugins to set command hints (#8214)Chris2018-02-071-0/+1
| |
| * 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-079-14/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * ICU-715 Change ExperimentalGroupUnreadChannels setting to allow for default ↵Harrison Healey2018-02-065-4/+54
| | | | | | | | on/off (#8211)
| * add App.License, remove utils.IsLicensed / utils.License calls (#8203)Chris2018-02-0621-48/+56
| |
* | Merge branch 'master' into advanced-permissions-phase-1George Goldberg2018-02-061622-26337/+184880
|\|
| * handle RateLimiter initialization errors (#8199)Pierre de La Morinerie2018-02-053-9/+28
| | | | | | | | | | Previously, an error occuring in NewRateLimiter would return a nil reference – which would be de-referenced just after, making the server crash.
| * Uncomment upgrade code for 4.7 (#8201)Joram Wilander2018-02-052-4/+5
| |
| * ABC-173: introduce Normalize(Username|Email) (#8183)Jesse Hallam2018-02-053-6/+38
| | | | | | | | This centralizes the source of truth on the rules for username / email processing instead of scattering `strings.ToLower` invocations.
| * Fix sampledata (fake library) bug (#8198)Jesús Espino2018-02-054-2/+16
| |
| * Add missing diagnostics for v4.7 (#8195)Jason Blais2018-02-051-1/+5
| |
| * ABC-179: check email verification last (#8172)Jesse Hallam2018-02-053-10/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ABC-179: check email verification last This change changes the authentication checks to be: * "preflight checks" ** mfa ** not disabled ** login attempts * password * "postflight checks" ** email verified Checking whether the email is verified or not last avoids the weird edge case where entering any bogus password for an account with an unverified email shows a message about verifying the email and offering to resend. * fix invalid unit test assertion Client.CreateUser returns a user whose password has been sanitized. Adopt the pattern in the previous assertions to use a new variable name and test the password on the original model.User object. This didn't expose any underlying broken behaviour, but the test wouldn't have caught it if it had regressed. Also fix a minor typo.
| * Update NOTICE.txt (#8175)amyblais2018-02-051-43/+470
| | | | | | | | | | | | * Update NOTICE.txt * Update NOTICE.txt
| * add ImageProxyOptions to default.json (#8193)Chris2018-02-021-0/+1
| |
| * Update zoom plugin to latest (#8194)Joram Wilander2018-02-023-6/+6
| |
| * Fix panic when invalid types used in post props (#8191)Joram Wilander2018-02-021-6/+6
| |
| * report server launch errors (#8189)Pierre de La Morinerie2018-02-021-7/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When starting the server using `platform server`, errors occuring during startup are not reported in the console. The command exit with a 0 exit code (i.e. "success"), although the server failed to launch. With this change, when an error occurs while initializing the app (like a missing or invalid configuration file): - the error is printed to the console; - the command exit with a "-1" exit code. This allow shell scripts to properly detect the startup failure, and to react to it. Example of error displayed: ``` $ platform server Error: LoadConfig: Error decoding config file=config.json, err=While parsing config: invalid character ':' after top-level value, ``
| * ABC-153: don't use http redirects with 4xx/5xx status codes (#8178)Chris2018-02-022-10/+15
| | | | | | | | | | | | * don't use http redirects with 4xx/5xx status codes * minor html syntax fix
| * fix image url replacement for blank urls (#8184)Chris2018-02-012-1/+7
| |
| * [PLT-8494] Add delete_team websocket event (#8167)Saturnino Abril2018-02-012-4/+9
| | | | | | | | | | | | * add delete_team websocket event * add to PermanentDeleteTeam
| * Update CONTRIBUTING.md (#8168)amyblais2018-02-011-29/+41
| |
| * Don't remove data dirs from vendor directory (#8173)Jesús Espino2018-01-311-1/+1
| |
| * Adding sample data to the make file (#8171)Corey Hulen2018-01-311-0/+9
| | | | | | | | | | | | * Adding sample data to the make file * Adding regular acct message
| * Use default configurations for user-0 in sampledata (#8174)Jesús Espino2018-01-311-4/+4
| |
| * make channel autocomplete sort case-insensitive (#8176)Chris2018-01-311-1/+1
| |
| * User based rate limiting (#8152)Christopher Speller2018-01-319-95/+355
| |
| * ABC-79: Optimize channel autocomplete query (#8163)Chris2018-01-317-163/+261
| | | | | | | | | | | | * optimize channel autocomplete query * move to new autocomplete endpoint
| * unnamed return (#8170)Chris2018-01-3062-1235/+430
| |
| * Moving to golang.org/x/crypto/acme/autocert for Let's Encrypt functionality. ↵Christopher Speller2018-01-301-13/+28
| | | | | | | | (#8165)
| * translations PR 20180129 (#8164)enahum2018-01-3014-141/+1129
| |
| * Upgrading server dependancies (#8154)Christopher Speller2018-01-291508-24551/+181944
| |
| * Used a consistent tense for system messages (#8079)Harrison Healey2018-01-262-8/+8
| |
* | XYZ-37: Advanced Permissions Phase 1 Backend. (#8159)George Goldberg2018-02-0659-1701/+2949
|/ | | | | | | | | | | | | | | | | | | | | | | | | | * XYZ-13: Update Permission and Role structs to new design. * XYZ-10: Role store. * XYZ-9/XYZ-44: Roles API endpoints and WebSocket message. * XYZ-8: Switch server permissions checks to store backed roles. * XYZ-58: Proper validation of roles where required. * XYZ-11/XYZ-55: Migration to store backed roles from policy config. * XYZ-37: Update unit tests to work with database roles. * XYZ-56: Remove the "guest" role. * Changes to SetDefaultRolesFromConfig. * Short-circuit the store if nothing has changed. * Address first round of review comments. * Address second round of review comments.
* PLT-3658 Added support for Slack attachments in outgoing webhook response ↵Joey Lee2018-01-262-8/+20
| | | | (#7774) (#8102)
* XYZ-32: Increases size of position to 128 characters. (#8148)Martin Kraft2018-01-266-11/+19
| | | | | | | | | | * XYZ-32: Changes type of 'position' column on 'users' table. * XYZ-32: Uncomment to run on CI and pre-release. * XYZ-32: Reverts translation changes. * XYZ-32: Fix for gofmt.
* Fixed spelling error (#8153)der-test2018-01-261-1/+1
|
* add arch linux sandboxing mount points (#8147)Chris2018-01-251-0/+4
|
* prereq check (#8151)Derrick Anderson2018-01-252-1/+53
|
* Add GET /emojis/name/{emoji_name} API endpoint (#8142)Joram Wilander2018-01-246-3/+82
|
* [ICU-621] Add ExperimentalGroupUnreadChannels setting (#8127)enahum2018-01-234-0/+8
| | | | | | * Add ExperimentalGroupUnreadChannels setting * track ExperimentalGroupUnreadChannels in diagnostics
* Merge branch 'release-4.6'Harrison Healey2018-01-2318-125/+314
|\
| * translations PR 20180115 (#8107)enahum2018-01-213-13/+13
| |
| * translations PR 20180109 (#8069)enahum2018-01-1214-78/+234
| | | | | | | | | | | | * translations PR 20180109 * Fix french translation
| * Update diagnostics.go for 4.6 release (#8082)Jason Blais2018-01-101-27/+40
| | | | | | | | | | | | * Update diagnostics.go * Fix formatting error
| * PLT-8522 Added separate messages for being removed from channel or team (#8078)Harrison Healey2018-01-103-9/+29
| |