summaryrefslogtreecommitdiffstats
path: root/utils
Commit message (Collapse)AuthorAgeFilesLines
* 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 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)
* | general cleanup (#8387)Chris2018-03-076-297/+2
| |
* | [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.
* Modified advanced mail implementation to properly support multiple ↵Jonathan2018-02-152-16/+36
| | | | attachments with the same file name (#8289)
* Add /v4/image api (#8230)Chris2018-02-091-0/+3
| | | | | | | | * add image api * i suppose i should add a test... * only redirect to image proxy
* Remove license globals entirely (#8229)Chris2018-02-099-238/+41
| | | | | | | | * remove license globals entirely * fix infinite recursion * test fix
* ABC-132: sign error page parameters (#8197)Chris2018-02-072-5/+69
| | | | | | * sign error page parameters * add comments
* XYZ-35: Added Support for GlobalRelay Compliance Export FormatJonathan2018-02-074-25/+182
| | | | | | | | | * 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
* ICU-715 Change ExperimentalGroupUnreadChannels setting to allow for default ↵Harrison Healey2018-02-061-1/+1
| | | | on/off (#8211)
* ABC-153: don't use http redirects with 4xx/5xx status codes (#8178)Chris2018-02-021-9/+14
| | | | | | * don't use http redirects with 4xx/5xx status codes * minor html syntax fix
* Upgrading server dependancies (#8154)Christopher Speller2018-01-291-17/+11
|
* [ICU-621] Add ExperimentalGroupUnreadChannels setting (#8127)enahum2018-01-231-0/+1
| | | | | | * Add ExperimentalGroupUnreadChannels setting * track ExperimentalGroupUnreadChannels in diagnostics
* PLT-3383: image proxy support (#7991)Chris2018-01-2218-0/+5078
| | | | | | | | | | | | * 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
* Finally remove utils.Cfg (#8113)Chris2018-01-172-3/+2
| | | | | | | | * finally remove utils.Cfg * fix compile error * another test compilation fix
* Remove global cfg vars (#8099)Chris2018-01-125-289/+101
| | | | | | * remove global cfg vars * enterprise update
* Remove global config watcher (#8080)Chris2018-01-111-91/+75
| | | | | | | | | | * remove global config watcher * keep config watcher disabled for tests * compile fix * fix resource leak
* Add EnableDefaultChannelLeaveJoinMessages config setting (#7961)Chris Duarte2018-01-101-0/+1
|
* [PLT-6936] Translate AppError.Message automatically by default (#8063)Jesús Espino2018-01-081-7/+1
|
* Remove utils.ClientCfg and utils.ClientCfgHash (#8041)Chris2018-01-053-15/+20
| | | | | | * remove utils.ClientCfg and utils.ClientCfgHash * remove unused import
* rename DefaultTeamName to ExperimentalPrimaryTeam (#8039)Chris Duarte2018-01-051-1/+1
|
* Add color properties to config to white label login buttons (#7826)Chris Duarte2018-01-021-0/+10
|
* Allow default team to be configured (#7846)Chris Duarte2017-12-191-0/+1
|
* add config option to hide tutorial screens (#7840)Chris Duarte2017-12-081-0/+1
|
* PLT-8314: Test Message Export Against S3 Bucket (#7957)Jonathan2017-12-072-3/+26
| | | | | | * Removed export directory config setting, in favour of hard-coding it to an 'export' directory under the local file directory. Improved the local file backend copy implementation to implicitly create the destination directory if it's missing * Fixed the tests
* PLT-7503: Create Message Export Scheduled Task and CLI Command (#7612)Jonathan2017-11-305-1/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Created message export scheduled task * Added CLI command to immediately kick off an export job * Added email addresses for users joining and leaving the channel to the export * Added support for both MySQL and PostgreSQL * Fixing gofmt error * Added a new ChannelMemberHistory store and associated tests * Updating the ChannelMemberHistory channel as users create/join/leave channels * Added user email to the message export object so it can be included in the actiance export xml * Don't fail to log a leave event if a corresponding join event wasn't logged * Adding copyright notices * Adding message export settings to daily diagnostics report * Added System Console integration for message export * Cleaned up TODOs * Made batch size configurable * Added export from timestamp to CLI command * Made ChannelMemberHistory table updates best effort * Added a context-based timeout option to the message export CLI * Minor PR updates/improvements * Removed unnecessary fields from MessageExport object to reduce query overhead * Removed JSON functions from the message export query in an effort to optimize performance * Changed the way that channel member history queries and purges work to better account for edge cases * Fixing a test I missed with the last refactor * Added file copy functionality to file backend, improved config validation, added default config values * Fixed file copy tests * More concise use of the testing libraries * Fixed context leak error * Changed default export path to correctly place an 'export' directory under the 'data' directory * Can't delete records from a read replica * Fixed copy file tests * Start job workers when license is applied, if configured to do so * Suggestions from the PR * Moar unit tests * Fixed test imports
* Add Config to disable Auth Transfers. (#7843)Chris Duarte2017-11-281-1/+1
| | | | | | * Add Config to disable Auth Transfers. * Set config ExperimentalEnableAuthenticationTransfer behind an E20 license restriction
* send-mail refactor (#7885)Chris2017-11-232-13/+9
|
* origin checker refactor (#7889)Chris2017-11-221-10/+6
|
* HTTP client refactor (#7884)Chris2017-11-222-69/+14
| | | | | | * http client refactor * simplification
* Revert "workaround for go smtp bug (#7620)" (#7866)Chris2017-11-211-21/+3
| | | This reverts commit 8966452d1183e94fecc373b9d08c65a0573cbbc6.
* Role refactor (#7867)Chris2017-11-212-102/+107
| | | | | | | | * role refactor * add missing file * fix web test
* Hide pre-release features section of advanced settings pane. (#7847)Chris Duarte2017-11-211-0/+1
|
* refactor template code (#7860)Chris2017-11-202-94/+178
|
* Refactor password validation and config defaults (#7859)Chris2017-11-202-31/+158
| | | | | | * refactor password validation and config defaults * reorder config lines for clarity
* Reorganize file util functionality (#7848)Chris2017-11-166-531/+532
| | | | | | | | * reorganize file util functionality * fix api test compilation * fix rebase issue
* Merge branch 'release-4.4'Christopher Speller2017-11-162-0/+155
|\