summaryrefslogtreecommitdiffstats
path: root/app
Commit message (Collapse)AuthorAgeFilesLines
...
* MM-11529: Allow to Leave an archived channel from the API (#9204)Jesús Espino2018-08-033-10/+10
| | | | | | * MM-11529: Allow to Leave an archived channel from the API * Remove the restriction to remove user from archive channel to yourself
* Feature/fileinfo create copy (#9198)dmitrysamuylovpharo2018-08-023-0/+65
| | | | | | | | * Initial implementation of a CopyFileInfos function that creates new FileInfo objects copied from provided FileIds with the provided user as the creator and not linked to a post yet. This can subsequently be used to copy existing attachments from another post to attach to a new post without having to re-upload the actual files * added a unit test for the CopyFileInfos function * resolving pull request suggestions
* send channel wide push notification type when at-here is used (#9209)Elias Nahum2018-08-021-1/+1
|
* CSRF Token Implementation for Plugins (#9192)Daniel Schalla2018-08-014-4/+39
| | | | | | | | | | | | | | | | | deleted test config fix test config Dont wipe the session token for plugins Simplified Tokens; Generate CSRF for other sessions Remove CSRF from Access Token; Remove Getter/Setter from Context fix removed setter remove getcsrf helper from plugin api enforce csrf only for cookie auth
* MM-11521/MM-11522 Fix being able to create users with invalid emails through ↵Harrison Healey2018-08-012-28/+5
| | | | | | | | | | | | | | API (#9199) * MM-11522 Fix being able to create users with invalid emails through API * Ensure store tests are using valid emails * Add missing license header * Remove invalid test case * Fix TestUpdateOAuthUserAttrs
* Add missing diagnostics for v5.2 (#9200)Jason Blais2018-08-011-38/+47
| | | | | | * Update diagnostics.go * Fix gofmt
* MM-11175 Add logic to server to understand markdown images with dimensions ↵Harrison Healey2018-08-011-0/+8
| | | | (#9159)
* Split app/import.go in multiple files (#9179)Jesús Espino2018-08-018-5868/+5924
|
* MM-11420: plugins: compute bundle hash on load (#9172)Jesse Hallam2018-07-311-14/+15
| | | | | | | | | | | | * plugins: compute bundle hash on load Use this hash to bust client caches whenever the plugin bundle changes. * eliminate redundant pluginHandler * switch to 64-bit FNV-1a * Fix test
* Migrate notification_push_test to table testing (#9195)Jesús Espino2018-07-311-310/+509
|
* MM-10502: Only cluster master should run job schedulers. (#9174)George Goldberg2018-07-312-12/+50
| | | | | | | | * MM-10502: Only cluster master should run job schedulers. * Use sync.Map for thread safety. * Fix tests.
* Save OAuth access token to DB for consistency with other flows (#9190)Joram Wilander2018-07-311-0/+7
|
* Add siteURL to WS origin check (#9183)Joram Wilander2018-07-301-0/+9
| | | | | | | | * Add siteURL to WS origin check * Handle subpath * Only add site URL if not *
* Fix build. (#9188)Christopher Speller2018-07-301-1/+0
|
* Pr 9039 (#9187)Martin Kraft2018-07-3011-36/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Login Hooks (#9177)Daniel Schalla2018-07-302-0/+164
| | | Tests; gofmt
* Split notifications file into different files (#9164)Jesús Espino2018-07-286-1779/+1828
|
* [MM-10621] Set createAt timestamp on file upload api call to secure upload ↵Saturnino Abril2018-07-282-4/+7
| | | | | | | | order of files (#9170) * set createAt timestamp on file upload api call to secure upload order of files * fix test on plugin hooks
* Implement OAuth2 implicit grant flow (#9178)Joram Wilander2018-07-272-7/+117
|
* MM-11431: handle plugin deadlocks (#9167)Jesse Hallam2018-07-272-2/+212
| | | | | | | | | | | | | | | | | | | | | | * ensure plugin is always shutdown Once we call `.client.Client()` the plugin has started, and must be shut down. `newSupervisor` sometimes returned with an error (and without a reference to the supervisor), leaving the client running indefinitely. * Clarify the documentation to explain that plugin hooks will not trigger until `OnActivate` returns successfully, and will stop triggering just before `OnDeactivate` is called. * test for plugin deadlock * plugin/environment.go: switch to sync.Map From: https://golang.org/pkg/sync/#Map > If a goroutine holds a RWMutex for reading and another goroutine might call Lock, no goroutine should expect to be able to acquire a read lock until the initial read lock is released. In particular, this prohibits recursive read locking. This is to ensure that the lock eventually becomes available; a blocked Lock call excludes new readers from acquiring the lock. The previous `RWMutex` was not safe given that we effectively acquired read locks recursively (hook -> api -> hook). This worked up until we activated or deactivated plugins, tried to acquire a write lock, and the plugin used the API to effectively trigger another hook. Switching to sync.Map avoids this by divesting the need to lock at all, avoiding the potential for a recursive lock in the first place.
* Adding FileWillBeUploaded plugin hook (#9169)Christopher Speller2018-07-273-8/+105
| | | | | | | | | | | | | | * Adding file upload hook. * Adding hook test for FileWillBeUploaded * Some debugging fixes. * Fix typo. * Fixing double close * Fix capitalization on docs.
* Fix file streaming to close files. (#9168)Christopher Speller2018-07-261-1/+2
|
* MM-11160 Adding proper CORS support. (#9152)Christopher Speller2018-07-261-31/+24
| | | | | | * Adding proper CORS support. * Better CORS tests.
* MM-11243: Make Elasticsearch work after enabling without restart. (#9146)George Goldberg2018-07-261-0/+51
| | | | | | * MM-11243: Make Elasticsearch work after enabling without restart. * Also cope with config vars changing whilst enabled.
* unpack prepacked plugins on plugins initialization (#9149)Jesse Hallam2018-07-262-4/+31
| | | | | | * unpack prepackaged plugins on plugins initialization * leverage utils.FindDir
* Fix plugin.ServeHTTP subpath (#9161)Jesse Hallam2018-07-262-2/+54
| | | | | | * test ServicePluginRequest with subpath * handle subpath when routing to plugin.ServeHTTP
* added the custom icon and username for the outgoing webhook and its response ↵Pradeep Murugesan2018-07-252-0/+187
| | | | | | | | | | | | (#9141) * 8272 added the username and icon as part of the model and persisted the same * 8272 added the custome icon and name when set to the web hook response * 8272 changed the infinte loop to timeout after 5 seconds * 8272 fixed review comments
* MM-10381: Change the file downloading API to stream file (#9144)Hyeseong Kim2018-07-241-0/+8
| | | | | | | | * Change the file downloading to stream file * Change file downloading to chunk only for preview * Remove unnecessary else case
* Add ExperimentalSidebarPreference in the config (#9013)Chris Duarte2018-07-231-0/+1
| | | | | | | | | | | | * 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-203-54/+86
| | | | | | | | | 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
* Break HTML blocks to individual strings (#8903)Yusuke Nemoto2018-07-203-44/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* make GetChannelByName take teamId first (#9134)Jesse Hallam2018-07-201-1/+5
| | | | | | | | | | | | | | * make GetChannelByName take teamId first I think it is more natural to accept `teamId`, then `channelName`, given the pattern followed by other Plugin API methods and even the SQL Store itself. The App layer seems unusual in accepting `channelName` first. This also re-generates the mocks fixing the parameter order for the recently added `UserStatus` APIs. * add GetChannelByNameForTeamName
* Support attachments in post and replies - Bulk import (#9124)Pradeep Murugesan2018-07-202-9/+265
| | | | | | | | | | * 9006 - process the attachments of the post * 9006 enabling the import of attachments in the reply post * 9006 assert if the post and files are linked * 9006 fixed the typo
* Add missed plugin error translation (#9131)Jesús Espino2018-07-191-1/+1
|
* Temporarily comment out until MM-11108 to fix builds (#9133)Joram Wilander2018-07-191-1/+2
|
* MM-11389 Added diagnostics for FileSettings.Directory (#9125)Harrison Healey2018-07-191-0/+3
|
* MM-11028 Adding some plugin tests. (#9103)Christopher Speller2018-07-182-2/+451
| | | | | | | | * Rearranging plugin mocks and moving some common test code out. * Adding tests. * Fixing tests after GoDoc cleanup changes.
* Support `server`, deprecate `backend` in plugin manifest (#9127)Jesse Hallam2018-07-181-4/+4
| | | | | | | | | | | | | | * Support `server`, deprecate `backend` in plugin manifest This lets us converge on the use of the term `server` everywhere instead of sometimes `backend` and sometimes `server`. We're still using `webapp` and will eventually support `mobile` as well. The plan is actually to rip out these deprecations as part of releasing 5.2, but I want to coordinate the extra additional breakage at the same time, so for now this is a backwards compatible change. * fix failing tests
* Support for Embeded chat (#9129)Chris Duarte2018-07-181-0/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* MM-10699 Add channel renaming to CLI (#9094)Druhin Bala2018-07-182-0/+29
|
* Make plugin IDs case insensitive (#9117)Joram Wilander2018-07-161-0/+5
|
* MM-10254 Add plugin APIs for getting/updating user statuses (#9101)Joram Wilander2018-07-1610-8/+74
| | | | | | | | * Add plugin APIs for getting/updating user statuses * Add and update tests * Updates per feedback
* MM-11172: Don't allow reacting in read-only town square. (#9106)George Goldberg2018-07-161-0/+38
|
* Add localized timestamp support for email notification (#8674)Chris Duarte2018-07-132-34/+201
| | | | | | * Add localized timestamp support for email notification * Move localTime logic over to getFormattedPostTime
* MM-11292: clean up plugins GoDoc (#9109)Jesse Hallam2018-07-133-3/+3
| | | | | | | | | | | | | | | | | | | * clean up plugins GoDoc: - eliminate plugin.NewBlankContext() as unnecessary - export ValidIdRegex as a string vs. the less readable var - add/update various documentation strings - hide everything by default, except where used by client plugins or the mattermost-server. The exception to this rule are the `*(Args|Returns)` structs which must be public for go-plugin, but are now prefixed with `Z_` with a warning not to use. - include a top-level example to get plugin authors started This is not a breaking change for existing plugins compiled against plugins-v2. * remove commented out ServeHTTPResponseWriter * update examples to match developer docs * add missing plugin/doc.go license header
* Avoid using app function so bulk loading does not fail when custom emojis ↵Joram Wilander2018-07-121-6/+6
| | | | are disabled (#9064)
* Merge remote-tracking branch 'upstream/release-5.1' into ↵cpanato2018-07-121-17/+19
|\ | | | | | | release-5.1-daily-merge-20180712
| * push notifications follow teammate name display user or server setting (#9049)Elias Nahum2018-07-111-17/+19
| | | | | | | | | | | | * push notifications follow teammate name display user or server setting * Feedback review
* | GH-6278 hasReactions flag is set to true only if the post contains reactions ↵Pradeep Murugesan2018-07-121-4/+9
| | | | | | | | (#9053)
* | Add telemetry for ServiceSettings.EnableEmailInvitations (#9105)Jason Blais2018-07-121-0/+1
| |