summaryrefslogtreecommitdiffstats
path: root/model/config.go
Commit message (Collapse)AuthorAgeFilesLines
* Refactored to rename "service terms" to "terms of service" (#9581)Harshil Sharma2018-10-091-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * #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-6/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * #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
* Revert "disable EnablePublicChannelsMaterialization by default (#9418)" (#9427)Jesse Hallam2018-09-181-1/+1
| | | | This reverts commit 5786b0d6d57b90bbb0c262235dd9d19b497b5fae, now that the feature is safe to enable by default.
* disable EnablePublicChannelsMaterialization by default (#9418)Jesse Hallam2018-09-171-1/+1
| | | | | | | | | * disable EnablePublicChannelsMaterialization by default Creating triggers on Amazon RDS seems to reqiure extra privileges. More investigation is required. * update model/config.go too
* MM-11886: materialize channel search (#9349)Jesse Hallam2018-09-131-10/+15
| | | | | | | | | | | | | | | | | | | | | | | | * materialize PublicChannels table Introduce triggers for each supported database that automatically maintain a subset of the Channels table corresponding to only public channels. This improves corresponding queries that no longer need to filter out 99% DM channels. This initial commit modifies the channel store directly for easier code reviewing, but the next wraps an experimental version around it to enable a kill switch in case there are unforeseen performance regressions. This addresses [MM-11886](https://mattermost.atlassian.net/browse/MM-11886) and [MM-11945](https://mattermost.atlassian.net/browse/MM-11945). * extract the experimental public channels materialization Wrap the original channel store with an experimental version that leverages the materialized public channels, but can be disabled to fallback to the original implementation. This addresses MM-11947. * s/ExperimentalPublicChannelsMaterialization/EnablePublicChannelsMaterialization/ * simplify error handling * move experimental config listener until after store is initialized
* add megacheck as makefile target (#9288)Daniel Schalla2018-09-031-1/+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-10532: Add EnableSyncWithLdapIncludeAuth config (#9319)Jesús Espino2018-08-281-2/+7
|
* Adding IdAttribute setting for SAML (#9291)Jesús Espino2018-08-281-0/+6
| | | | | | | | * Adding IdAttribute setting for SAML * Adding Saml Id Attribute to the diagnostics information * Adding entry to default.json
* MM-11782: Make archived channels experimental and off-by-default. (#9281)George Goldberg2018-08-221-3/+3
| | | | | | * MM-11782: Make archived channels experimental and off-by-default. * Fix test.
* Pr 9039 (#9187)Martin Kraft2018-07-301-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* MM-11301: Validates listen address config value. (#9138)Martin Kraft2018-07-301-1/+12
| | | | | | | | | | * MM-11301: Validates listen address config value. * MM-11301: Adds some invalid port test cases. * MM-11301: Accept domain names. * MM-11301: Fix for max port.
* MM-11160 Adding proper CORS support. (#9152)Christopher Speller2018-07-261-0/+15
| | | | | | * Adding proper CORS support. * Better CORS tests.
* Add ExperimentalSidebarPreference in the config (#9013)Chris Duarte2018-07-231-0/+6
| | | | | | | | | | | | * 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
* Default Channel Functionality + Test Suite (#9068)Daniel Schalla2018-07-201-0/+5
| | | | | | | | | gofmt Make skipping for non public channels default Deduplication of Default Channels; Only post join to townsquare Post join channel message for all custom default channels
* MM-11389 Added diagnostics for FileSettings.Directory (#9125)Harrison Healey2018-07-191-1/+3
|
* Support for Embeded chat (#9129)Chris Duarte2018-07-181-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add ucLive support crazy testing lovely logs more cookie work arounds Added Access-Control-Expose-Headers to user login Add complete_saml_body template and revert loginWithSaml endpoint Set Access-Control-Allow-Credentials to true in user login Login via email instead of username Clean up code Add comment to give some context Move faml logic into saml function Communicate via chrome sendMessage api Remove unused code Add config to support multiple extensions Clean up embedded complete_saml template Fix indentation for templates Added license header to extension.go Add EnableExperimentalExtensions flag Extension validated for email auth Clean up api auth code Remove complete_saml_body.html * Add extension support in saml * Clean up code * Clean up extension validation
* Merge branch 'plugins-2'JoramWilander2018-07-101-2/+2
|\
| * Adding ability for plugin system to respect the defaults listed in the ↵Christopher Speller2018-07-091-2/+2
| | | | | | | | plugin manifest. (#9066)
* | MM-11120 Adding setting to disable email invitations and rate limiting. (#9063)Christopher Speller2018-07-101-0/+10
| | | | | | | | | | | | | | | | | | | | * 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.
* | Update custom url schemes error message to reflect what we actually support ↵Harrison Healey2018-07-091-1/+1
|/ | | | (#9061)
* MM-10766 - Replacing default profile image font (#8955)Asaad Mahmood2018-07-051-2/+2
| | | | | | | | | | | | * Updating default profile pic font * Updating profile image font * Updating test * Use new default font if configured for old one * Update OFL.txt
* Disable Gfycat by default during Beta and move default keys to server (#9027)Jason Blais2018-07-031-5/+7
| | | | | | | | | | * Update default.json * Update diagnostics.go * Added default Gfycat API credentials to server * Fixed default Gfycat credentials
* add MaxLifetimeconns to server (#9004)Jerry Kurian2018-06-281-9/+18
| | | | | | | | | | | | | | | | | | | | | Update e.json string names and remove console log reorder variables update db.setConnMaxLifetime to take in *settings.MaxLifetimeConns Add MaxLifetimeConns to test Update variable names like MaxLifetimeConns to ConnMaxLifetimeMilliseconds Update time passed to SetConnMaxLifetime Revert "Update time passed to SetConnMaxLifetime" This reverts commit dc1c1b6d5a6404d4ee11c65d4756c19f9316794f. update en.json Update supplier_test.go and docker.go ConnMaxLifetimeMilliseconds to 3600000
* Gfycat integration (#8971)Kenny Au2018-06-271-0/+15
| | | | | | * Gfycat integration * Added gfycat api credentials to config.
* MM-8810: Add CSV Compliance export (#8966)Jesús Espino2018-06-221-1/+2
| | | | | | | | | | | | * MM-8810: Add CSV Compliance export * Only allowing to schedule actiances export throught the cli * De-duplicating some code * Fixes on texts * Fixes on translations
* Add missed translations (#8959)Jesús Espino2018-06-191-1/+1
|
* MM-8701 Limit the number of client config fields sent before user logs in ↵Harrison Healey2018-06-181-0/+5
| | | | | | | | | | (#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
* Prototype for CBA (#8475)Corey Hulen2018-06-121-0/+20
| | | | | | | | | | | | | | * Prototype for CBA * Fixing gofmt issues * Do not require password if logging in with certificate * Fixing issues from feedback * Adding unit tests * Fixing feedback
* Fixed invalid CustomUrlSchemes error message (#8902)Harrison Healey2018-06-051-1/+1
|
* MM-10348 Adding experimental hardened mode. (#8881)Christopher Speller2018-06-041-0/+5
| | | | | | * Adding experimental hardened mode. * Sanitizing all 500 errors.
* MM-9547 Added config setting to control url autolinking schemes (#8862)Harrison Healey2018-05-301-0/+31
| | | | | | * MM-9547 Added config setting to control autolinking schemes * Renamed AutolinkingSchemes to CustomUrlSchemes
* MM-10731 Revert site url kill server (#8877)Christopher Speller2018-05-301-0/+14
| | | | | | | | * Revert "MM-9983 Requiring SiteURL to be set. (#8769)" This reverts commit 0432f995ec27de9ee6cc2f5847d4a17fcc095a26. * Add log message for SiteURL not being set.
* [MM-1915] Add Deactivate Account - server side (#8699)Carlos Tadeu Panato Junior2018-05-281-0/+5
|
* add ExperimentalHideTownSquareinLHS in config setting (#8751)Saturnino Abril2018-05-241-0/+5
|
* allow tuning *IdleConn* for intra-cluster messages (#8799)Jesse Hallam2018-05-231-8/+23
| | | | | | * allow tuning *IdleConn* for inter cluster messages * default MaxIdleConnsPerHost to 128
* add EnablePreviewModeBanner in config (#8834)Saturnino Abril2018-05-221-0/+5
| | | Signed-off-by: Saturnino Abril <saturnino.abril@gmail.com>
* MM-9983 Requiring SiteURL to be set. (#8769)Christopher Speller2018-05-181-14/+0
| | | | | | | | * Requiring SiteURL to be set. * Modifying to make tests pass. * Fixing test.
* MM-10640 Set EnableUserCreation to true by default (#8815)Balasankar C2018-05-181-1/+6
| | | | | | | | | | | | | | * 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
* Add config setting for API team deletion (#8800)Joram Wilander2018-05-181-0/+5
|
* MM-8708 Remove api package (#8784)Joram Wilander2018-05-161-5/+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-4998 Adding LoginIdAttribute to allow LDAP users to change their login ID ↵Christopher Speller2018-05-101-0/+11
| | | | | | | | | | | | | | without losing their account (#8756) * Adding LoginIdAttribute * Modifying LDAP to use loginIDAttribute. * Adding IDAttribute migration and AD objectGUID support. * Removing unused idea. * Fix typo.
* Structured logging (#8673)Christopher Speller2018-04-271-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-10020: avoid duplicating unique indexes (#8587)Jesse Hallam2018-04-161-0/+1
| | | | | | | | | | | | | | * unit test TestGet(Search)Replica This adds partial, testing-focused support for SQLite, as well as removing some translated log messages that required initializing i18n just for testing. * avoid returning master twice when no replicas are configured * remove duplicate indexes * unit test GetAllConns
* MM-9977: test config.SetDefaults leaves nothing nil (#8610)Jesse Hallam2018-04-131-1/+1
| | | | | | | | | | * MM-9977: test config.SetDefaults leaves nothing nil * clarify test default config test cases * comment re: allowing nil slice * extend config SetDefaults to handle partially initialized configs
* Add Auto Responder handler (#8386)Stan Chan2018-04-121-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Add missing timezone setting to app/diagnostics.go (#8572)Jason Blais2018-04-041-1/+3
| | | | | | | | * Add missing timezone setting to app/diagnostics.go * Update diagnostics.go * Added TimezoneSettings.SupportedTimezonesPath to diagnostics
* Fixing misspell errors (#8544)Jesús Espino2018-03-291-1/+1
|
* Add ExperimentalTimezone flag (#8539)Chris Duarte2018-03-291-0/+12
|
* Add defaults for SAML settings (#8536)Joram Wilander2018-03-281-0/+8
|
* Merge branch 'master' into advanced-permissions-phase-1Martin Kraft2018-03-231-0/+15
|\