summaryrefslogtreecommitdiffstats
path: root/api4
Commit message (Collapse)AuthorAgeFilesLines
...
* Implement OAuth2 implicit grant flow (#9178)Joram Wilander2018-07-272-2/+29
|
* Fix file streaming to close files. (#9168)Christopher Speller2018-07-261-6/+23
|
* MM-11160 Adding proper CORS support. (#9152)Christopher Speller2018-07-262-3/+160
| | | | | | * Adding proper CORS support. * Better CORS tests.
* unpack prepacked plugins on plugins initialization (#9149)Jesse Hallam2018-07-261-1/+1
| | | | | | * unpack prepackaged plugins on plugins initialization * leverage utils.FindDir
* added the custom icon and username for the outgoing webhook and its response ↵Pradeep Murugesan2018-07-251-1/+1
| | | | | | | | | | | | (#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-11/+14
| | | | | | | | * Change the file downloading to stream file * Change file downloading to chunk only for preview * Remove unnecessary else case
* Remove unnecesary elses after return error (#9137)Jesús Espino2018-07-231-52/+72
|
* Do not close the connection abruptly on too big file uploads (#9083)Jesús Espino2018-07-184-0/+15
|
* Make plugin IDs case insensitive (#9117)Joram Wilander2018-07-161-0/+4
|
* MM-10254 Add plugin APIs for getting/updating user statuses (#9101)Joram Wilander2018-07-165-7/+7
| | | | | | | | * 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/+62
|
* Merge remote-tracking branch 'upstream/release-5.1' into ↵cpanato2018-07-126-5/+152
|\ | | | | | | release-5.1-daily-merge-20180712
| * Restore config after finisht the test case (#9085)Carlos Tadeu Panato Junior2018-07-116-5/+152
| |
* | Merge branch 'plugins-2'JoramWilander2018-07-104-29/+29
|\ \
| * \ Merge branch 'master' into plugins-2JoramWilander2018-07-074-41/+124
| |\ \
| * | | First batch of new plugin api methods (#9022)Daniel Schalla2018-07-061-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | update api mocks Generated new hooks ChannelHasJoinedChannel Implementation User Left Team/Channel Hook; User Joined Team Hook Implementation Update RPC Client and Mocks gofmt go tests fix Add Config API Methods codegne Add Channel Has Been Created Hook Fix ChannelHasBeenCreated hook fix missing context param fix duplicate hooks; remove redudandcy
| * | | Merge branch 'master' into plugins-2JoramWilander2018-06-302-2/+12
| |\ \ \
| * \ \ \ Merge branch 'master' into plugins-2JoramWilander2018-06-272-34/+86
| |\ \ \ \
| * | | | | MM-10702 Moving plugins to use hashicorp go-plugin. (#8978)Christopher Speller2018-06-253-26/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Moving plugins to use hashicorp go-plugin. * Tweaks from feedback.
* | | | | | Merge remote-tracking branch 'upstream/release-5.1' into ↵cpanato2018-07-104-21/+113
|\ \ \ \ \ \ | |_|_|_|/ / |/| | | | / | | |_|_|/ | |/| | | release-5.1-daily-merge-20180710
| * | | | MM-11228: Fix channel update/patch API endpoints. (#9073)George Goldberg2018-07-102-21/+100
| | | | |
| * | | | MM-11189: Do not close the connection abruptly on too big emojis (#9071)Jesús Espino2018-07-101-0/+4
| | | | |
| * | | | MM-11120 Adding setting to disable email invitations and rate limiting. (#9063)Christopher Speller2018-07-101-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* | | | | [MM-10754] Remove unnecessary command_test route (#9050)Saturnino Abril2018-07-062-41/+81
|/ / / / | | | | | | | | | | | | | | | | | | | | * remove unnecessary command_test route * replaced localhost with ts.URL
* | | / MM-11118: disallow deleting direct or group channels (#9054)Jesse Hallam2018-07-052-0/+43
| |_|/ |/| |
* | | MM-10980: Conditionally filteres User json properties. (#9018)Martin Kraft2018-06-292-2/+12
| |/ |/|
* | Simplify oauth (#8972)Emil Velikov2018-06-261-10/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Remove unused OauthProvider::GetIdentifier Signed-off-by: Emil Velikov <emil.velikov@collabora.com> * Reuse gitlab's getAuthData() instead of open-coding it Signed-off-by: Emil Velikov <emil.velikov@collabora.com> * Remove OauthProvider::GetAuthDataFromJson interface The data is already available via GetUserFromJson().AuthData Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
* | MM-10833: send down computed channel props (#8953)Jesse Hallam2018-06-261-24/+83
|/ | | | | | | | | | | | | | | * MM-10833: send down computed channel props This allows channel headers to reference channel mentions for a client that doesn't already know about the channels in question. We intentionally don't send down the props for the autocomplete and search endpoints since they aren't used in that context, and would add unnecessary overhead. * update channel props on patch * revert to treating channel purpose as plaintext
* MM-10370: serve subpath (#8968)Jesse Hallam2018-06-212-11/+11
| | | | | | | | | | | | | | | | | | | | | | | * 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.
* Add missed translations (#8959)Jesús Espino2018-06-192-5/+3
|
* MM-6992 Added highlighting to elasticsearch results (#8861)Harrison Healey2018-06-191-2/+4
| | | | | | | | * MM-6992 Added highlighting to elasticsearch results * Added a unique type for post search matches * Fixed Elasticsearch matches not being sent through API
* MM-8701 Limit the number of client config fields sent before user logs in ↵Harrison Healey2018-06-182-16/+101
| | | | | | | | | | (#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-122-0/+71
| | | | | | | | | | | | | | * Prototype for CBA * Fixing gofmt issues * Do not require password if logging in with certificate * Fixing issues from feedback * Adding unit tests * Fixing feedback
* Relese5.0 merge master 20180608 (#8933)Carlos Tadeu Panato Junior2018-06-082-48/+140
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add missing diagnostics (#8911) * Update diagnostics.go * Update diagnostics.go * Fix push notification styling backwards compatibility (#8913) * MM-10803: remove premature user sanitization on deactivation (#8926) * remove unused UpdateNonSSOUserActive * MM-10803: stop prematurely sanitizing users on deactivate This change was preceded by the removal of UpdateNonSSOUserActive to ensure there are no APIs relying on the sanitized return value. * MM-10803: test websocket events after UpdateUserActive * MM-10264: Adds system scheme to permissions import/export. (#8924) * MM-10264: Adds system scheme to permissions import/export. * MM-10264: Switches to more likely unique name. * MM-10264: Changed collision prevention string. * MM-10264: Rolls back created schemes in all error cases. * MM-10264: Test fix for more rollback cases.
* Get the count of the all system users at endpoint /users/stats (#8847)lisakycho2018-06-072-20/+30
| | | | | | | | * Get the count of the all system users at endpoint /users/stats * Added GetTotalUsersStats test in api4 * Changed pluralization and added the test back.
* MM-9730 & MM-9729: Missing Server PRs (#8908)George Goldberg2018-06-054-1/+203
| | | | | | * MM-9730: API endpoint to update scheme-derived roles of TeamMembers. * MM-9729: API to update scheme-derived roles of ChannelMembers.
* MM-10348 Adding experimental hardened mode. (#8881)Christopher Speller2018-06-041-6/+15
| | | | | | * Adding experimental hardened mode. * Sanitizing all 500 errors.
* [MM-10718] Move custom branding to TE (#8871)Saturnino Abril2018-06-021-5/+2
| | | | | * move custom branding to TE * move brand's enterprise code to server and remove BrandInterface
* MM-10412: Adds deleteBy prop to posts. (#8896)Martin Kraft2018-06-011-1/+1
|
* MM-10757: Default roles from scheme should be keyed by name not ID. (#8894)George Goldberg2018-06-011-18/+18
| | | | | | * MM-10757: Default roles from scheme should be keyed by name not ID. * Update permissions import/export.
* MM-8853: Adding MANAGE_EMOJIS and MANAGE_OTHERS_EMOJIS permissions (#8860)Jesús Espino2018-05-294-11/+181
| | | | | | | | | | | | | | | | * MM-8853: Adding MANAGE_EMOJIS and MANAGE_OTHERS_EMOJIS permissions * MM-8853: Removing unnecesary emoji enterprise feature * Create emojis migration * Adding MANAGE_EMOJIS and MANAGE_OTHERS_EMOJIS always to system admins * Simplifing permissions checks * Revert "Simplifing permissions checks" This reverts commit e2cafc1905fc9e20125dd9a1552d2d0c7340ae59.
* Allow to update the teams scheme to default scheme (#8855)Jesús Espino2018-05-292-10/+16
|
* Merge remote-tracking branch 'origin/master' into advanced-permissions-phase-2Martin Kraft2018-05-283-0/+59
|\
| * [MM-10519] Send websocket event whenever the channel has changed it's type ↵Saturnino Abril2018-05-281-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (public|private) (#8798) * send websocket event whenever the channel has changed it's type (public|private) * updated per comment Signed-off-by: Saturnino Abril <saturnino.abril@gmail.com> * add channel_converted websocket event Signed-off-by: Saturnino Abril <saturnino.abril@gmail.com> * only send channel_id via websocket message for "channel_converted" event Signed-off-by: Saturnino Abril <saturnino.abril@gmail.com>
| * [MM-1915] Add Deactivate Account - server side (#8699)Carlos Tadeu Panato Junior2018-05-282-0/+28
| |
* | MM-8814: Remove implicit permission grants from post ownership. (#8391)George Goldberg2018-05-281-6/+35
| |
* | Merge remote-tracking branch 'origin/master' into advanced-permissions-phase-2Martin Kraft2018-05-241-1/+22
|\|
| * MM-8622: Improved plugin error reporting (#8737)Jesse Hallam2018-05-231-1/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * allow `Wait()`ing on the supervisor In the event the plugin supervisor shuts down a plugin for crashing too many times, the new `Wait()` interface allows the `ActivatePlugin` to accept a callback function to trigger when `supervisor.Wait()` returns. If the supervisor shuts down normally, this callback is invoked with a nil error, otherwise any error reported by the supervisor is passed along. * improve plugin activation/deactivation logic Avoid triggering activation of previously failed-to-start plugins just becase something in the configuration changed. Now, intelligently compare the global enable bit as well as the each individual plugin's enabled bit. * expose store to manipulate PluginStatuses * expose API to fetch plugin statuses * keep track of whether or not plugin sandboxing is supported * transition plugin statuses * restore error on plugin activation if already active * don't initialize test plugins until successfully loaded * emit websocket events when plugin statuses change * skip pruning if already initialized * MM-8622: maintain plugin statuses in memory Switch away from persisting plugin statuses to the database, and maintain in memory instead. This will be followed by a cluster interface to query the in-memory status of plugin statuses from all cluster nodes. At the same time, rename `cluster_discovery_id` on the `PluginStatus` model object to `cluster_id`. * MM-8622: aggregate plugin statuses across cluster * fetch cluster plugin statuses when emitting websocket notification * address unit test fixes after rebasing * relax (poor) racey unit test re: supervisor.Wait() * make store-mocks
* | Merge remote-tracking branch 'origin/master' into advanced-permissions-phase-2Martin Kraft2018-05-224-19/+22
|\|
| * MM-10640 Set EnableUserCreation to true by default (#8815)Balasankar C2018-05-182-6/+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