summaryrefslogtreecommitdiffstats
path: root/utils
Commit message (Collapse)AuthorAgeFilesLines
* Update serverside markdown parser to respect unicode and capitalized links ↵Harrison Healey2018-08-085-78/+173
| | | | (#9235)
* MM-11175 Add logic to server to understand markdown images with dimensions ↵Harrison Healey2018-08-014-8/+314
| | | | (#9159)
* 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
* Fix file streaming to close files. (#9168)Christopher Speller2018-07-261-0/+1
|
* MM-11451 Added autolinking to Markdown parser (#9151)Harrison Healey2018-07-246-1/+1002
| | | | | | | | * MM-11451 Added autolinking to Markdown parser * Added missing headers * Added mailto and tel links
* 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
* Break HTML blocks to individual strings (#8903)Yusuke Nemoto2018-07-202-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Modifying message and templates about mfa_change * Modifying message and templates about password_change * Modify message and template about password_reset * Modify message and template about singin_change * Modify message and template about email_info * Modify message and template about change_username * Modify message about change_email * Add missing props * Add argument * Modify message and template about token_added * Modify messages and template about notification_email * Modify message and template about deactivate_email * Fix style * Remove unused message * Remove br tags * Modify message and code about invite_mail * Add missing message
* Fix invalid markdown text ranges (#9126)Adrian2018-07-182-5/+10
| | | second Range value is the end pos, not the length... :see_no_evil:
* Merge consecutive text nodes when inspecting markdown (#9112)Adrian2018-07-163-23/+57
| | | | | | | | | | | | | * Fix assertion order expected/actual were in wrong order, resulting in misleading output in case of failing tests * Merge consesutive markdown text nodes This ensures that parser quirks such as "hello!" being parsed as two separate nodes ("hello" and "!") are not exposed to code inspecting a markdown strings.
* Expose range information for markdown text nodes [WIP] (#9067)Adrian2018-07-112-14/+147
| | | | | | * Track positions of markdown text * Add tests for markdown text ranges
* 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.
* subpath: rewrite manifest.json too (#9017)Jesse Hallam2018-06-292-11/+231
|
* Gfycat integration (#8971)Kenny Au2018-06-271-0/+3
| | | | | | * Gfycat integration * Added gfycat api credentials to config.
* Implementation of File Exists Function; Delete FileInfos upon Permanent User ↵Daniel Schalla2018-06-254-0/+49
| | | | | | | Delete (#8958) Check if file was deleted on FS Warning message if file couldnt be removed
* MM-8810: Add CSV Compliance export (#8966)Jesús Espino2018-06-223-0/+21
| | | | | | | | | | | | * 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
* MM-10370: serve subpath (#8968)Jesse Hallam2018-06-214-6/+351
| | | | | | | | | | | | | | | | | | | | | | | * factor out GetSubpathFromConfig * mv web/subpath.go to utils/subpath.go * serve up web, api and ws on /subpath if configured * pass config to utils.RenderWeb(App)?Error This allows the methods to extract the configured subpath and redirect to the appropriate `/subpath/error` handler. * ensure GetSubpathFromConfig returns trailing slashes deterministically * fix error 404 handling * redirect /subpath to /subpath/ This is necessary for the static handler to match, otherwise none of the registered routes find anything. This also makes it no longer necessary to add trailing slashes in the root router.
* MM-10730 Added support for empty environment variables to viper (#8973)Harrison Healey2018-06-211-0/+25
|
* Add missed translations (#8959)Jesús Espino2018-06-193-5/+5
|
* MM-8701 Limit the number of client config fields sent before user logs in ↵Harrison Healey2018-06-182-86/+112
| | | | | | | | | | (#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
* Update html2text lib to use the original repo (#8900)Carlos Tadeu Panato Junior2018-06-141-1/+1
|
* 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-062-32/+354
| | | | | | | | | | | | | | | | | | * 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-022-7/+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-312-0/+3
|\
| * 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-282-6/+11
| |\ \
| * \ \ 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
| | | | |
| * | | | Merge remote-tracking branch 'origin/master' into advanced-permissions-phase-2Martin Kraft2018-05-242-9/+5
| |\ \ \ \
| * \ \ \ \ Merge branch 'master' into advanced-permissions-phase-2Martin Kraft2018-05-221-0/+1
| |\ \ \ \ \
| * \ \ \ \ \ Merge remote-tracking branch 'origin/master' into advanced-permissions-phase-2Martin Kraft2018-05-221-1/+1
| |\ \ \ \ \ \
| * \ \ \ \ \ \ Merge remote-tracking branch 'origin/master' into advanced-permissions-phase-2Martin Kraft2018-05-181-2/+2
| |\ \ \ \ \ \ \
| * | | | | | | | MM-10606: License feature flag for custom schemes. (#8804)George Goldberg2018-05-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * MM-10606: Add new field to license for custom schemes. * Add feature flag to license check for Schemes.
* | | | | | | | | 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-292-242/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit d3cf110620033f8831a55a3fd911d7864b6aab4a.
* | | | | | | | | MM-6839: search relative to executable (#8853)Jesse Hallam2018-05-292-32/+242
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
| |_|_|_|_|_|/ |/| | | | | |
* | | | | | | re-enabling TestSendMailUsingConfigAdvanced (#8836)Carlos Tadeu Panato Junior2018-05-272-6/+11
| |_|_|_|_|/ |/| | | | |
* | | | | | add ExperimentalHideTownSquareinLHS in config setting (#8751)Saturnino Abril2018-05-241-0/+2
| |_|_|_|/ |/| | | |
* | | | | remove license check when enforcing password requirements (#8840)Saturnino Abril2018-05-232-9/+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-10188: expect io.Reader in FileBackend.WriteFile (#8765)Jesse Hallam2018-05-105-38/+80
| | | | This is a reworked set of changes originally from @josephGuo to begin reducing the duplicated memory required when uploading files.
* MM-10189 Fixed inconsistency when using environment variables for ↵Harrison Healey2018-05-032-2/+35
| | | | MessageExportSettings (#8705)
* Fix TestSendNotifications test (#8712)Jesús Espino2018-05-031-0/+9
|
* Upgrading minio-go library to 6.0.0 (#8651)Jesús Espino2018-04-301-12/+6
| | | | | | * Upgrading minio-go library to 6.0.0 * Removing unnecesary Gopkg constraint