summaryrefslogtreecommitdiffstats
path: root/utils
Commit message (Collapse)AuthorAgeFilesLines
* XYZ-51: Unit tests for and changes to SetRolePermissionsFromConfig. (#8160)Martin Kraft2018-02-093-27/+662
| | | | | | | | | | | | | | | | * XYZ-10: Role store. * XYZ-37: Update unit tests to work with database roles. * XYZ-51: Tests 'SetRolePermissionsFromConfig' against JSON from policy page. * XYZ-51: Adds permissions in non-licensed cases also. * XYZ-51: Removes some permissions from team_user role. * XYZ-51: Merge fix for change to default permissions from PR 8208. * XYZ-51: Removes unused function.
* AllowEditPost and PostEditTimeLimit migration (#8208)Jesús Espino2018-02-091-0/+23
| | | | | | | | * 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
* Merge remote-tracking branch 'origin/master' into advanced-permissions-phase-1Jesús Espino2018-02-075-26/+183
|\
| * 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)
* | Merge branch 'master' into advanced-permissions-phase-1George Goldberg2018-02-062-26/+25
|\|
| * 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
| |
* | XYZ-37: Advanced Permissions Phase 1 Backend. (#8159)George Goldberg2018-02-061-15/+3
|/ | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* [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
|\
| * Replace os.Rename with directory copy util in plugin extraction (#7825)Joram Wilander2017-11-132-0/+155
| |
* | fix config cli option (#7850)Chris2017-11-162-6/+34
| |
* | 7740: Set auto-submitted and precedence headers for emails (#7741)Carsten Pfeiffer2017-11-151-0/+2
|/ | | | | | | | * Set auto-submitted and precedence headers for emails This prevents auto-responses from out-of-office agents. * Apply gofmt
* invoke config listeners when app.UpdateConfig is used (#7773)Chris2017-11-031-3/+7
|
* config watcher fix (#7772)Chris2017-11-031-1/+1
|
* several one-line panic, race, and logic fixes (#7766)Chris2017-11-031-1/+1
|
* Refactoring cfg refs and load / save functions (#7749)Chris2017-10-314-91/+119
| | | | | | * refactoring cfg refs and load / save functions * improve error output
* Add autoclose dm config parameter (#7734)Chris2017-10-301-0/+1
| | | | | | * add autoclose dm config parameter * update naming
* Remove unused variables / code (#7736)Chris2017-10-302-287/+5
| | | | | | * remove unused variables / code * fix bug in testPostStoreGetOldest
* simplify things (#7735)Chris2017-10-306-32/+8
|
* less impactful fix (#7729)Chris2017-10-271-0/+6
|
* Remove more global refs / state (#7723)Chris2017-10-261-1/+3
| | | | | | | | | | * remove more global refs / state * fix job enterprise initialization * fix api4 test compilation * saml api endpoints fix
* [PLT-7726] adjustments for the mm-server jenkinsfile (#7688)Carlos Tadeu Panato Junior2017-10-252-6/+33
|
* add missing license headers, test to makefile (#7711)Chris2017-10-255-0/+15
|
* PLT-7743: Data retention in client side config. (#7695)George Goldberg2017-10-231-0/+7
|
* Merge branch 'release-4.3'Christopher Brown2017-10-162-9/+27
|\