summaryrefslogtreecommitdiffstats
path: root/utils
Commit message (Collapse)AuthorAgeFilesLines
* Config to make town square read only (#7140)David Meza2017-09-011-0/+1
| | | | | | | | | | | | | | | | | | | | | | * Be able to make Town Square read-only (Disable typing messages for non admins). * Do not emit UserTypingEvent when TownSquareIsReadOnly and is Town Square. * Add unit tests for TownSquareIsReadOnly config value and logic. * Add TownSquareIsReadOnly to System console>Policy. Added Telemetry. * Add control for TownSquareIsReadOnly=true only for License Enterprise Edition E10 & E20. * Update en.json * Update en.json * Update policy_settings.jsx * Change config value from TownSquareIsReadOnly to ExperimentalTownSquareIsReadOnly. * Refactored to simplify. Avoid code repeat and multiple db calls.
* Implement experimental REST API endpoints for plugins (#7279)Joram Wilander2017-09-013-0/+129
| | | | | | | | | | | | | | | | | | * Implement experimental REST API endpoints for plugins * Updates per feedback and rebase * Update tests * Further updates * Update extraction of plugins * Use OS temp dir for plugins instead of search path * Fail extraction on paths that attempt to traverse upward * Update pluginenv ActivePlugins()
* PLT-3893: Structured Logging Continues (#7252)Jonathan2017-08-315-7/+545
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PLT-3893: Imported logger work from https://github.com/MusikPolice/platform * PLT-3893: Integrated logger with system config * PLT-3893: Integrated Mattermost config with logging solution, modified log message serialization so entire message is serialized as a JSON object * PLT-3893: Added support for format strings in Debug methods. Added an overload that does not require a Context object for cases when one isn't available * PLT-3893: Added context and format string support to debug and error methods * PLT-3893: A few updates from pull request feedback * PLT-3893: Changed tests to use testify * Fixed TestAddRemoveConfigListener to no longer assume that there are zero config listeners when the test begins, since other tests could add config listeners * Updated TestGetDeletedChannelsForTeam so that it doesn't assume state when it begins * PLT-3893: Changed File property of log message so that it's relative to /mattermost directory, rather than to wherever the user is running the application from on their machine * Flipped expected/actual assert arguments, added an explicit test for getCallerFilename(...), since it's failing on Jenkins * Added printlns to debug failing tests on Jenkins * Relaxed test cases to avoid failure on Jenkins caused by code coverage calculations. Removed printlns. * Changed the way that caller filename is determined to make it more robust, updated tests to make them more lax, while not choking on the strange paths that Jenkins uses. * Fixed gofmt issues * Added debug output to tests to diagnose Jenkins build failures * Still trying to get some useful debug logging on Jenkins * Changed getCallerFilename to handle the strange paths that runtime.Caller(...) returns on Jenkins * Fixing checkstyle issues
* set to default value with config is missing (#7320)Saturnino Abril2017-08-302-17/+18
|
* Manage version configurations client versions (#7220)Chris Duarte2017-08-281-0/+7
| | | | | | | | | | | | * Add config values for client versions. Return client versions in ping response. * Manage client version through System Console. * Added client versions to diagnostics * Added translations messages en.json file. * Hide Client Versions on System Console.
* Use path.Join to form log filename (#7293)Stan Hu2017-08-281-1/+2
| | | | Omitting the trailing backslash in the directory could cause Mattermost to crash due to permission issues.
* PLT-???? Prepare file upload infrastructure for Data Retention. (#7266)George Goldberg2017-08-253-0/+439
| | | | | | | | | | | | | | | | | * Prepare file upload infrastructure for Data Retention. This commit prepares the file upload infrastructure for the data retention feature that is under construction. Changes are: * Move file management code to utils to allow access to it from jobs. * From now on, store all file uploads in a top level folder which is the date of the day on which they were uploaded. This commit is based on Harrison Healey's branch, but updated to work with the latest master. * Use NewAppError
* PLT-7417/PLT-7425 (#7278)Harrison Healey2017-08-251-3/+0
| | | PLT-7417/PLT-7425 Update config.json defaults and removed admin console link settings
* Other Packages: NewLocAppError -> NewAppError (#7283)George Goldberg2017-08-252-18/+20
|
* Switch hook debug msg to info (#7272)Corey Hulen2017-08-221-3/+3
|
* [PLT-1015] Make all Mattermost system emails Multi-Part, with both a HTML ↵Carlos Tadeu Panato Junior2017-08-211-21/+26
| | | | | | | | | | | | and Plain Text version. (#5698) * Implementation to Make all Mattermost system emails Multi-Part, with both a HTML and Plain Text version * update lib * update code per review * update to use the mattermost repo
* make config.json play nicely with version control (#7221)Chris2017-08-201-0/+17
|
* Fixing licensing (#7226)Corey Hulen2017-08-161-1/+1
|
* PLT-6079 Adding leader election (#7105)Corey Hulen2017-08-161-0/+8
|
* PLT-6226 Fixing races with licensing (#7213)Corey Hulen2017-08-165-35/+77
| | | | | | | | | | * PLT-6226 Fixing races with licensing * Fixing build issue * Fixing licensing issue * removing commented code
* PLT-6358: Server HTTP client improvements (#6980)Chris2017-08-092-18/+224
| | | | | | | | | | | | | | | | * restrict untrusted, internal http connections by default * command test fix * more test fixes * change setting from toggle to whitelist * requested ui changes * add isdefault diagnostic * fix tests
* System Console: Email notification content setting (#7122)Jonathan2017-08-063-0/+12
| | | | | | | | | | | | | | | | * PLT-7195: Added new config option, new license feature, and config UI to system console. Still need to implement behaviour change in email batching code * PLT-7195: Modified batch emails to respect email notification content type setting * PLT-7195: Tweaking the colours a bit * PLT-7195: Added support for email notification content type setting in immediate (non-batched) notification messages. Attempted to clean up the code somewhat. Unit tests coming in a future commit * PLT-7195: Added unit tests for non-batched emails * Checked license when applying email content settings * Changed return type of getFormattedPostTime
* [PLT-7231/PLT-7306] Fix GitLab SSO failure with non-English locale and make ↵Saturnino Abril2017-08-062-6/+149
| | | | config locales more forgiving (#7125)
* PLT-6763 Implement user access tokens and new roles (server-side) (#6972)Joram Wilander2017-07-311-0/+1
| | | | | | | | | | | | | | | | * Implement user access tokens and new roles * Update config.json * Add public post permission to apiv3 * Remove old comment * Fix model unit test * Updates to store per feedback * Updates per feedback from CS
* PLT-5308 Caching layer part 2 (#6973)Christopher Speller2017-07-311-5/+40
| | | | | | | | | | | | * Adding Reaction store cache layer example * Implementing reaction store in new caching system. * Redis for reaction store * Adding redis library * Adding invalidation for DeleteAllWithEmojiName and other minor enhancements
* [GH-6366] Add functionality to disable Authentication when connecting to ↵AJ Moon2017-07-311-13/+9
| | | | | | | | | | | | | | SMTP (#6639) * Issue #6366: Add feature to disable auth for Encrypted connections to SMTP settings. * Clean PLAIN AUTH Option * Reorder SMTP server setup and change helptext * remove unneeded setting and modify logic * text description change
* PLT-6924 Added config options to disable file uploads/downloads on mobile ↵Harrison Healey2017-07-281-0/+2
| | | | (#7049)
* PLT-7040: Fix capitalisation of Elasticsearch in Config. (#7020)George Goldberg2017-07-271-2/+2
|
* Tweak WebSocket header-processing (#6929)Chris2017-07-131-1/+9
| | | | | | * fix * consolidate code
* PLT-6474 Basic Elasticsearch System Console Page (#6825)George Goldberg2017-07-131-11/+0
| | | | | | | | | | * PLT-6474: Basic System Console Elasticsearch Config. * Fix review comments. * More review fixes. * Review comments.
* PLT-6976: Elasticsearch capitalisation and tests. (#6839)George Goldberg2017-07-071-1/+1
| | | | | | | * Fixes Elasticsearch to have consistent capitalisation everywhere across the code and UI (except the config file unfortunately). * Adds basic unit tests for Elastichsearch. * Adds a Elasticsearch docker image to the Makefile to enable testing the Elasticsearch feature.
* [PLT-6969] System console setting for the emoji picker (#6809)Saturnino Abril2017-07-061-0/+1
| | | | | | | | * system console setting for the emoji picker * remove state.emojiPickerEnable * update url to /admin_console/customization/emoji
* Fix EnablChannelViewedMessages typo (#6822)Jason Blais2017-07-031-1/+1
| | | | | | | | | | | | | | | | * Update config.json * Update config.go * Update config.go * Update channel.go * Update post.go * Update diagnostics.go * Update config.go
* [PLT-5864] Move teammate name display setting to the System Console (#6681)Saturnino Abril2017-06-301-0/+1
| | | | | | | | | | * move teammate name display setting to the system console * update all the likes of TeammateNameDisplay names * fix gofmt error * rebase and fix conflict
* PLT-6610 sending websocket event for last channel viewed (#6787)Corey Hulen2017-06-291-0/+1
|
* [PLT-6496] Remove System Console and config settings for image height and ↵Saturnino Abril2017-06-291-2/+0
| | | | | | | | | | width (#6688) * remove System Console and config settings for image height and width * add constants and update config.json * updated as per review
* PLT-6080 moving clustering to memberlist (#6499)Corey Hulen2017-06-192-0/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PLT-6080 adding cluster discovery service * Adding memberlist lib * Adding memberlist lib * WIP * WIP * WIP * WIP * Rolling back config changes * Fixing make file * Fixing config for cluster * WIP * Fixing system console for clustering * Fixing default config * Fixing config * Fixing system console for clustering * Tweaking hub setting * Bumping up time * merging vendor dir * Updating vendor dir * Fixing unit test * Fixing bad merge * Remove some testing code * Moving comment * PLT-6868 adding db ping retry * Removing unused loc strings * Adding defer to cancel
* Merge release-3.10 into master (#6654)Joram Wilander2017-06-152-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PLT-6787 Fixed being able to send a post before files finished uploading (#6617) * Fix quick switcher for channels/users not stored locally (#6610) * Fix button text on confirm mention modal (#6609) * fix post delete permission of channel admin (#6608) * open comment thread for the most recent reply-able message (#6605) * Use mutex flag with yarn to prevent concurrent builds interfering (#6619) * Use mutex flag with yarn to prevent concurrent builds interfering * Remove yarn mutex file with clean * Minor bug fixes (#6615) * PLT-6774 - Fixing color for offline icon * PLT-6784 - Fixing status icon * Fixing icon margin * Updating caret position * PLT-6070 Have ChannelMentionProvider stop searching after a term returns no results (#6620) * Fixing JS error (#6623) * Minor bug fixes (#6622) * PLT-6808 - Updating channel switcher on mobile * PLT-6743 - Updating scrollbar styling * Login instead of failing if user exists in OAuth sign-up flow (#6627) * PLT-6802 Disable team switcher (#6626) * Disable team switcher * Fix ESLint errors * PLT-6807 Ensured select teams page can scroll on iOS (#6630) * Do not redirect from account switch pages on 401 (#6631) * Fixing loadtest command and renaming to /test (#6624) * PLT-6820 Update mattermost-redux dependency (#6632) * translations PR 20170612 (#6629) * Bump HTTP client timeout to 30 seconds (#6633) * For team unreads return empty array instead of null (#6636) * PLT-6831 Fix status modal localization IDs (#6637) * Fix status modal localization IDs * Update test snapshot
* PLT-6766 fixing error logging (#6634)Corey Hulen2017-06-131-1/+2
|
* PLT-3466 E10: Add announcement bar feature (#6509)Joram Wilander2017-06-052-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | * E10 - Add announcement bar feature * Updates per feedback * Add component tests and snapshots * Update snapshots * Updating color picker UI (#6543) * Add class to body tag when banner is not dismissable and clean up localstorage items when banner changes * Fixing links (#6544) * Updating UI for fixed error bar (#6552) * Truncating text on fixed banner (#6561) * Plt 3466 - Error bar link states (#6577) * Updating error bar hover state * Updating error bar link states
* PLT-5705 Created a single source of http.Client creation logic with internet ↵Torsten Juergeleit2017-05-312-0/+102
| | | | proxy support, reasonable timeouts and optional insecure connections (#6503)
* PLT-6471 Properly panic when translations can't be loaded (#6414)Harrison Healey2017-05-234-24/+46
| | | | | | | | | | * PLT-6471 Properly panic when translations can't be loaded * Print usage messages when errors occur during CLI initialization * Reverted behaviour of FindDir and added second return value to it * Fixed merge conflict
* Move SMTP HELO before authentication (#6464)Harrison Healey2017-05-192-10/+10
|
* PLT-6408 Framework for job server (#6404)Harrison Healey2017-05-183-0/+136
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added initial job server * Added job server to be ran as part of platform * Added test job to the enterprise repo * Fixed job server not loading license * Renamed job package to jobs * Fixed TE not being buildable * Added JobStatus table to database * Changed fields used by JobStatus * Added APIs to query job status * Added config change listener to server * Added option to run job server from Makefile * Added ability to enable/disable jobs from config * Commented out placeholder for search indexing job * Fixed govet * Removed debug messages and fixed job api init message
* PLT-6472: Basic Elastic Search implementation. (#6382)George Goldberg2017-05-181-0/+15
| | | | | | | | | | | | | | * PLT-6472: Basic Elastic Search implementation. This currently supports indexing of posts at create/update/delete time. It does not support batch indexing or reindexing, and does not support any entities other than posts yet. The purpose is to more-or-less replicate the existing full-text search feature but with some of the immediate benefits of using elastic search. * Alter settings for AWS compatability. * Remove unneeded i18n strings.
* use Hostname() instead of Host which will contain the port (#6429)Carlos Tadeu Panato Junior2017-05-171-1/+2
|
* implement PLT-6469 - Send HELO request containing domain name to SMTP server ↵Carlos Tadeu Panato Junior2017-05-092-0/+19
| | | | (#6322)
* [PLT-5440] Add Options to System Console Dropdown Menu (#5939)Ryan Wang2017-05-091-0/+3
| | | | | | * Add options to system console dropdown menu * Updating modal css
* PLT-6393: Fix Websocket CORS header check. (#6335)George Goldberg2017-05-041-1/+1
|
* Removing password reset salt (#6334)Christopher Speller2017-05-041-4/+1
|
* PLT-6262 Add config setting to disable file attachments (#6301)Joram Wilander2017-05-041-0/+1
| | | | | | | | | | | | | | * Add config setting to disable file attachments * Add unit tests * Updating UI for no attachments (#6312) * Update UI text on file upload System Console setting (#6313) * Update storage_settings.jsx * Update en.json
* PLT-6355: Use separate Read Replicas for Search. (#6216)George Goldberg2017-05-011-0/+4
|
* PLT-6322 log error messages in english (#6234)Corey Hulen2017-04-281-0/+2
|
* Creating common token store and moving email invites and verification to it ↵Christopher Speller2017-04-271-0/+16
| | | | (#6213)
* Implement v4 endpoints for OAuth (#6040)Joram Wilander2017-04-201-0/+28
| | | | | | | | | | | | | | | | | | * Implement POST /oauth/apps endpoint for APIv4 * Implement GET /oauth/apps endpoint for APIv4 * Implement GET /oauth/apps/{app_id} and /oauth/apps/{app_id}/info endpoints for APIv4 * Refactor API version independent oauth endpoints * Implement DELETE /oauth/apps/{app_id} endpoint for APIv4 * Implement /oauth/apps/{app_id}/regen_secret endpoint for APIv4 * Implement GET /user/{user_id}/oauth/apps/authorized endpoint for APIv4 * Implement POST /oauth/deauthorize endpoint