summaryrefslogtreecommitdiffstats
path: root/utils/config.go
Commit message (Collapse)AuthorAgeFilesLines
* ldap: Add own ldap authenticationsplineAlexander Sulfrian2020-01-071-14/+10
|
* MM-12505: remove all things WebRTC (#9700)Jesse Hallam2018-10-181-2/+0
|
* Refactored to rename "service terms" to "terms of service" (#9581)Harshil Sharma2018-10-091-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * #124 renamed identififers from service terms to terms of service * #124 renamed identififers from service terms to terms of service * 124 renamed ServiceTerms model to TermsOfService * 124 Renamed EnableCustomServiceTerms feature flag to EnableCustomTermsOfService * 124 Renamed EnableCustomServiceTerms feature flag to EnableCustomTermsOfService * #124 fixed formatting * #124 fixed formatting * #132 renamed table ServiceTerms to TermsOfService * #124 renamed some missed files from 'service_terms' to 'terms_of_service' * #124 removed fixed TODOs * drop migrate of ServiceTerms table, since backporting * s/ServiceTerms/TermsOfService/ in tests * s/AcceptedServiceTermsId/AcceptedTermsOfServiceId/ Change the model attribute, even though the column name will eventually be removed. * s/accepted_service_terms_id/accepted_terms_of_service_id/ to match redux * s/serviceTerms/termsOfService * rename column too, and add max size constraint * s/EnableCustomServiceTerms/EnableCustomTermsOfService
* #MM-12130 changes for custom service terms (#9450)Harshil Sharma2018-09-261-1/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * #MM-12130 changes for custom service terms * Fixed styling * Added getServiceTerms API * removed unnecessary panic * removed custom service terms text from flat config * reverted user sql store as those changes are no longer needed * added tests * Updated a config key to be more standard * Added copyright info * Loading service terms only if the feature is enabled * Loading service terms only if the feature is enabled * removed unused index * added createservice termns API * made a param to bool instead of string * added createservice termns API * review fixes * fixed styling * Minor refactoring * removed saveConfig and loadConfig magic * added empty service terms text check to createServiceTerms API * refactoed some urls to be terms_of_service instead of service_terms * removed check for support settings * changed URLs in tests * removed unused code * fixed a bug * added service termd id in conif * fixed a test * review fixes * minor fixes * Fixed TestCreateServiceTerms
* Merge remote-tracking branch 'upstream/release-5.3' into ↵cpanato2018-09-041-0/+14
|\ | | | | | | release-5.3-daily-merge-20180904
| * MM-11720: disable loading plugin specific config from the environment (#9334)Jesse Hallam2018-09-031-0/+14
| | | | | | There are numerous issues here, including some non-determinism in the viper library (fixable) and some annoying behaviour regarding periods in keys, often used by plugin ids (fix unknown). Let's defer the handling of same until we can get our config loading library to do what we need it to do vs. having to hack around viper all the time.
* | add megacheck as makefile target (#9288)Daniel Schalla2018-09-031-3/+1
|/ | | | | | | | | | | | | | | | | | | | | | | | | Fix code issues in channel_test.go Fix Channel Test Issues detected by Megacheck Fix API Emoji Test Issues detected by Megacheck Fixed API Issues Reported by Megacheck Fixed App issues reported by megacheck Remaining fixes removed test added by mistake from old HEAD gofmt Store Fixes simplified returns Fix test for multi member channel delete revert to delete unused function
* MM-11782: Make archived channels experimental and off-by-default. (#9281)George Goldberg2018-08-221-1/+1
| | | | | | * MM-11782: Make archived channels experimental and off-by-default. * Fix test.
* MM-11382 Remove special handling of PluginSettings when loading config (#9234)Harrison Healey2018-08-101-6/+0
| | | | | | | | * MM-11382 Only override PluginSettings from environment when necessary * MM-11382 Remove special handling of PluginSettings when loading config * Add extra unit test
* Pr 9039 (#9187)Martin Kraft2018-07-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * MM-11065: Allow to search and get archived channels from the API * Fixing more tests * Add some unit tests * Add includeDeleted parameter to session permissions check function * More test fixing * Adding archive channels list in channels search * Add restriction for archived channel edition * Reverting permissions checks modification * Changed the query parameter to include_deleted * Enable search archive channels as true by default * Adding tests for verify search on deleted channels * Allowing to override archive channels during the imports * Fixed test * Search in archive channels from the API must be explicitly requested * Removing includeDeleted parameter from GetChannelByName and GetChannelByNameForTeam * Back to ViewArchivedChannels config * Fixing tests * Reverting GetChannelByName parameter * Add include deleted parameter on GetChannel functions in plugins api * Fixing tests
* Add ExperimentalSidebarPreference in the config (#9013)Chris Duarte2018-07-231-0/+7
| | | | | | | | | | | | * Add ExperimentalSidebarPreference in the config * Override Sidebar preference based on GroupUnread settings * Rename to ExperimentalChannelOrganization * Add Sidebar config in diagnostics * Fix diagnostics for experimental_channel_organization
* MM-11120 Adding setting to disable email invitations and rate limiting. (#9063)Christopher Speller2018-07-101-0/+2
| | | | | | | | | | * Adding setting to disable email invitations. * Adding a setting and rate limiting for email invite sending. * Modifying email rate limit to 20/user/hour * Adding EnableEmailInvitations to client side config and command.
* Gfycat integration (#8971)Kenny Au2018-06-271-0/+3
| | | | | | * Gfycat integration * Added gfycat api credentials to config.
* MM-8701 Limit the number of client config fields sent before user logs in ↵Harrison Healey2018-06-181-85/+109
| | | | | | | | | | (#8954) * MM-8701 Limit the number of client config fields sent before user logs in * Fixed missing client config field * Reduced duplication between limited and regular client config
* MM-10769 Rename references to spf13/viper to mattermost/viper (#8948)Harrison Healey2018-06-141-1/+1
|
* Prototype for CBA (#8475)Corey Hulen2018-06-121-0/+4
| | | | | | | | | | | | | | * Prototype for CBA * Fixing gofmt issues * Do not require password if logging in with certificate * Fixing issues from feedback * Adding unit tests * Fixing feedback
* MM-6839: searching for paths relative to executable (#8915)Jesse Hallam2018-06-061-21/+81
| | | | | | | | | | | | | | | | | | * MM-6839: search relative to executable (#8853) * MM-6839: searching for paths relative to executable In addition to searching relative to the current working directory, also search relative to the location of the binary. This helps locate config and i18n files when invoking an absolute path to the mattermost binary. * MM-6839: find mattermost/ binary using utils.FindFile * add unit tests for utils.FindFile to exclude directories * fix filtering out directories in FindFile * fix platform invoking ./bin/mattermost
* [MM-10718] Move custom branding to TE (#8871)Saturnino Abril2018-06-021-6/+3
| | | | | * move custom branding to TE * move brand's enterprise code to server and remove BrandInterface
* Merge branch 'advanced-permissions-phase-2'George Goldberg2018-05-311-0/+2
|\
| * Merge remote-tracking branch 'origin/master' into advanced-permissions-phase-2Martin Kraft2018-05-281-1/+1
| |\
| * \ Merge remote-tracking branch 'origin/master' into advanced-permissions-phase-2Martin Kraft2018-05-251-0/+2
| |\ \
| * | | MM-10402: Adds RunJobs to client config API. (#8846)Martin Kraft2018-05-241-0/+2
| | | |
* | | | MM-9547 Added config setting to control url autolinking schemes (#8862)Harrison Healey2018-05-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | * MM-9547 Added config setting to control autolinking schemes * Renamed AutolinkingSchemes to CustomUrlSchemes
* | | | Revert "MM-6839: search relative to executable (#8853)" (#8876)Christopher Speller2018-05-291-79/+21
| | | | | | | | | | | | This reverts commit d3cf110620033f8831a55a3fd911d7864b6aab4a.
* | | | MM-6839: search relative to executable (#8853)Jesse Hallam2018-05-291-21/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * MM-6839: searching for paths relative to executable In addition to searching relative to the current working directory, also search relative to the location of the binary. This helps locate config and i18n files when invoking an absolute path to the mattermost binary. * MM-6839: find mattermost/ binary using utils.FindFile
* | | | fix bad merge (#8869)Carlos Tadeu Panato Junior2018-05-291-0/+1
| |_|/ |/| |
* | | [MM-1915] Add Deactivate Account - server side (#8699)Carlos Tadeu Panato Junior2018-05-281-1/+1
| |/ |/|
* | add ExperimentalHideTownSquareinLHS in config setting (#8751)Saturnino Abril2018-05-241-0/+2
|/
* remove license check when enforcing password requirements (#8840)Saturnino Abril2018-05-231-8/+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-10189 Fixed inconsistency when using environment variables for ↵Harrison Healey2018-05-031-2/+13
| | | | MessageExportSettings (#8705)
* Structured logging (#8673)Christopher Speller2018-04-271-70/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-261-2/+14
| | | | | | | | | | | | | | * 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-091-17/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-061-8/+85
|/ | | | | | | | environment variables (#8581) * MM-8400 Provide default config values to viper so that it reads all environment variables * Added unit tests
* Add ExperimentalTimezone flag (#8539)Chris Duarte2018-03-291-0/+1
|
* Merge branch 'master' into advanced-permissions-phase-1Martin Kraft2018-03-231-20/+61
|\
| * MM-9804: emit defaults for all enterprise config (#8490)Jesse Hallam2018-03-221-2/+49
| | | | | | | | | | | | | | | | | | * 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
| * Fix various segfaults when running `go test` manually (#8448)Jesse Hallam2018-03-211-18/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* | Merge branch 'master' into advanced-permissions-phase-1George Goldberg2018-03-191-0/+3
|\|
| * 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
* | | Merge branch 'master' into advanced-permissions-phase-1George Goldberg2018-03-131-3/+0
|\| |
| * | general cleanup (#8387)Chris2018-03-071-3/+0
| |/