summaryrefslogtreecommitdiffstats
path: root/utils
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | | | [MM-1915] Add Deactivate Account - server side (#8699)Carlos Tadeu Panato Junior2018-05-281-1/+1
| |_|_|_|_|_|/ |/| | | | | |
* | | | | | | re-enabling TestSendMailUsingConfigAdvanced (#8836)Carlos Tadeu Panato Junior2018-05-272-6/+11
| |_|_|_|_|/ |/| | | | |
* | | | | | add ExperimentalHideTownSquareinLHS in config setting (#8751)Saturnino Abril2018-05-241-0/+2
| |_|_|_|/ |/| | | |
* | | | | remove license check when enforcing password requirements (#8840)Saturnino Abril2018-05-232-9/+5
| |_|_|/ |/| | | | | | | Signed-off-by: Saturnino Abril <saturnino.abril@gmail.com>
* | | | add EnablePreviewModeBanner in config (#8834)Saturnino Abril2018-05-221-0/+1
| |_|/ |/| | | | | Signed-off-by: Saturnino Abril <saturnino.abril@gmail.com>
* | | MM-10640 Set EnableUserCreation to true by default (#8815)Balasankar C2018-05-181-1/+1
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | * Set EnableUserCreation to true by default * Fix argument type to FormatBool * Convert EnableUserCreation instances to pointer * Convert to boolean in tests also * Set value of pointer to be false * Convert remaining EnableUserCreation instances to pointer
* | Renaming platform binary to mattermost. (#8801)Christopher Speller2018-05-171-2/+2
|/
* MM-8708 Remove api package (#8784)Joram Wilander2018-05-161-1/+0
| | | | | | | | | | | | | | | | | | | | | | * Remove api package * Remove api dependency from cmd package * Remove EnableAPIv3 setting * Update web tests * Add more websocket tests * Move some ws and oauth tests to api4 package * Move command tests into api4 package * Test fixes * Fix msg command test * Add some app file tests
* MM-10188: expect io.Reader in FileBackend.WriteFile (#8765)Jesse Hallam2018-05-105-38/+80
| | | | This is a reworked set of changes originally from @josephGuo to begin reducing the duplicated memory required when uploading files.
* MM-10189 Fixed inconsistency when using environment variables for ↵Harrison Healey2018-05-032-2/+35
| | | | MessageExportSettings (#8705)
* Fix TestSendNotifications test (#8712)Jesús Espino2018-05-031-0/+9
|
* Upgrading minio-go library to 6.0.0 (#8651)Jesús Espino2018-04-301-12/+6
| | | | | | * Upgrading minio-go library to 6.0.0 * Removing unnecesary Gopkg constraint
* Structured logging (#8673)Christopher Speller2018-04-2711-196/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Implementing structured logging * Changes to en.json to allow refactor to run. * Fixing global logger * Structured logger initalization. * Add caller. * Do some log redirection. * Auto refactor * Cleaning up l4g reference and removing dependancy. * Removing junk. * Copyright headers. * Fixing tests * Revert "Changes to en.json to allow refactor to run." This reverts commit fd8249e99bcad0231e6ea65cd77c32aae9a54026. * Fixing some auto refactor strangeness and typo. * Making keys more human readable.
* MM-10232, MM-10259: Improve error handling from invalid json (#8668)Jesse Hallam2018-04-264-2/+321
| | | | | | | | | | | | | | * MM-10232: improve error handling from malformed slash command responses Switch to json.Unmarshal, which doesn't obscure JSON parse failures like json.Decode. The latter is primarily designed for streams of JSON, not necessarily unmarshalling just a single object. * rework HumanizedJsonError to expose Line and Character discretely * MM-10259: pinpoint line and character where json config error occurs * tweak HumanizeJsonError to accept err first
* Merge remote-tracking branch 'origin/release-4.9' into merge49finalDerrick Anderson2018-04-171-6/+7
|\
| * Prevent disabling or modifying l4g logging filters (#8628)Jesse Hallam2018-04-131-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The underlying l4g library is not resilient to filter modifications in the presence of concurrent goroutines. In particular, it's not safe to call Close() on filters which might be actively held by a goroutine for logging. This change disables all modifications to existing filters once initialized by the App layer. In practice, we might be able to get away with some modifications to the existing filters (i.e. changing levels), but the [golang memory model](https://golang.org/ref/mem) makes no guarantees that it is safe to do so: > Programs that modify data being simultaneously accessed by multiple goroutines must serialize such access. We can solve this holistically by introducing the requisite locking within our fork of the l4g library. For now, we just disable all modifications.
* | Add Auto Responder handler (#8386)Stan Chan2018-04-121-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | WIP Out Of Office Return error for status command if user status is OOO Ignore notifications if Out Of Office Disable AutoResponder if status is set to online Add test for AutoResponder DisableAutoResponse when manually setting status Remove check on status slash command return early if user does not exists in SendAutoResponse method Add proper error handling Add a newline after error handling Revert back to err == nil in api4/status.go Remove a.Go when using a.Publish Add name consistency with the feature auto responder Last changes for name consistency, also fix failing test with auto_responder Fix names of functions in auto responder test Add ExperimentalEnableAutomaticReplies flag Auto Responder reply to a post
* | MM-9849 Added tracking of which settings are set through environment ↵Harrison Healey2018-04-093-39/+131
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | variables (#8586) * MM-9849 Added tracking of which settings are set through environment variables * Removed old version of viper * Added forked version of viper * Fixed unit tests * Fixed more unit tests * Removed copy from App.GetEnvironmentConfig
* | MM-8400 Provide default config values to viper so that it reads all ↵Harrison Healey2018-04-062-41/+150
|/ | | | | | | | environment variables (#8581) * MM-8400 Provide default config values to viper so that it reads all environment variables * Added unit tests
* Comment out problematic mail test (#8579)Joram Wilander2018-04-041-6/+2
|
* Fixing misspell errors (#8544)Jesús Espino2018-03-293-8/+8
|
* Add ExperimentalTimezone flag (#8539)Chris Duarte2018-03-291-0/+1
|
* Merge remote-tracking branch 'origin/master' into advanced-permissions-phase-1Martin Kraft2018-03-272-16/+23
|\
| * Adding durafmt library and use it from enterprise global relay export (#8487)Jesús Espino2018-03-272-16/+23
| | | | | | | | | | | | | | | | * Adding durafmt library and use it from enterprise global relay export * Allow to specify different server host and server name on smtp connections * Fixing utils/smtp tests
* | Merge branch 'master' into advanced-permissions-phase-1Martin Kraft2018-03-237-37/+214
|\|
| * MM-9804: emit defaults for all enterprise config (#8490)Jesse Hallam2018-03-222-8/+148
| | | | | | | | | | | | | | | | | | * MM-9804: emit defaults for all enterprise config This prevents the client from having to write inverted checks if a certain value defaults as `'true'` instead of `'false'`. * move EnableMobileFile(Upload|Download) to a defaulted enterprise configuration
| * Timezone feature (#8185)Chris Duarte2018-03-222-0/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
| * Fix various segfaults when running `go test` manually (#8448)Jesse Hallam2018-03-214-26/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
| * Receive the email date as parameter (#8484)Jesús Espino2018-03-211-3/+3
| |
* | Merge branch 'master' into advanced-permissions-phase-1George Goldberg2018-03-196-67/+153
|\|
| * Merge remote-tracking branch 'origin/release-4.8' into t0merge48masterDerrick Anderson2018-03-151-0/+1
| |\
| | * Add content type to API error response (#8460)Joram Wilander2018-03-141-0/+1
| | |
| * | Isolating configuration, sending emails and connection to SMTP. (#8452)Jesús Espino2018-03-152-57/+142
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Isolating configuration, sending emails and connection to SMTP. * Building smtpAddress once * Remove unnecesary errX variables * Moving mail connection information to new data structure
| * | Merge remote-tracking branch 'origin/release-4.8' into t2releasetomasterDerrick Anderson2018-03-131-0/+3
| |\|
| | * MM-9795: Fix theme chooser for non-EE builds (#8440)Michał Odziemczyk2018-03-131-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix theme chooser for non-EE builds * fix compilation * remove whitespace * fix
| * | remove s3 region to be mandatory and fix when user call test s3 when the ↵Carlos Tadeu Panato Junior2018-03-142-10/+7
| | | | | | | | | | | | config is saved (#8454)
* | | Merge branch 'master' into advanced-permissions-phase-1George Goldberg2018-03-136-297/+2
|\| |
| * | general cleanup (#8387)Chris2018-03-076-297/+2
| | |
* | | Merge branch 'master' into advanced-permissions-phase-1George Goldberg2018-03-029-131/+253
|\| |
| * | [PLT-8024] Support LOGIN authentication method for SMTP (#8140)Carlos Tadeu Panato Junior2018-03-012-5/+117
| | | | | | | | | | | | | | | | | | * [PLT-8024] Support LOGIN authentication method for SMTP * added initial unit tests
| * | [PLT-8186] add support for ec2 instance profile authentication (#8243)Carlos Tadeu Panato Junior2018-02-282-1/+52
| | |
| * | optimize lru purging (#8381)Chris2018-02-282-103/+43
| |/
| * Temporarily disable flaky TestSendMailUsingConfigAdvanced test (#8379)Joram Wilander2018-02-271-8/+2
| | | | | | | | | | | | * Temporarily disable flaky TestSendMailUsingConfigAdvanced test * Remove imports
| * MM-9698 Fixing Minio with server side encryption. (#8367)Christopher Speller2018-02-262-7/+39
| | | | | | | | | | | | * Fixig Minio with server side encryption. * Add png file backend test
| * MM-8593 Default APIv3 to disabled for new installs (#8353)Joram Wilander2018-02-231-0/+1
| | | | | | | | | | | | | | | | * Default APIv3 to disabled for new installs * Add EnableAPIv3 setting to client config * Enable APIv3 for needed tests
| * Remove global site url (#8343)Chris2018-02-222-10/+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.
* | Merge branch 'master' into advanced-permissions-phase-1George Goldberg2018-02-192-16/+36
|\|
| * Modified advanced mail implementation to properly support multiple ↵Jonathan2018-02-152-16/+36
| | | | | | | | attachments with the same file name (#8289)
* | MM-9618: Don't change default role permissions for policy. (#8303)George Goldberg2018-02-192-33/+33
| |