summaryrefslogtreecommitdiffstats
path: root/api4
Commit message (Collapse)AuthorAgeFilesLines
* MM-9747: Small fixes for attachments import (#9225)Jesús Espino2018-08-081-0/+1
| | | | | | * MM-9747: Small fixes for attachments import * Adding unit test RootId check in replies
* Idiomatic error handling on team sql store (#9201)Jesús Espino2018-08-031-2/+2
|
* MM-11576: Allow to join and add members to archived channels (#9214)Jesús Espino2018-08-031-2/+0
|
* MM-11529: Allow to Leave an archived channel from the API (#9204)Jesús Espino2018-08-031-0/+12
| | | | | | * MM-11529: Allow to Leave an archived channel from the API * Remove the restriction to remove user from archive channel to yourself
* Migrate all the api4 to handle errors in idiomatic way (#9143)Jesús Espino2018-08-0117-375/+412
|
* MM-11516: Check channel ID in URL param and Body are same. (#9185)George Goldberg2018-07-311-0/+6
|
* Add OAuth2 login hint for SAML (#9194)Joram Wilander2018-07-311-1/+7
|
* Pr 9039 (#9187)Martin Kraft2018-07-306-11/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-10621] Set createAt timestamp on file upload api call to secure upload ↵Saturnino Abril2018-07-281-1/+11
| | | | | | | | 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-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.