summaryrefslogtreecommitdiffstats
path: root/api4
Commit message (Collapse)AuthorAgeFilesLines
* add translation strings and add test case (#9294)Carlos Tadeu Panato Junior2018-09-241-0/+5
|
* MM-11707: Change the default setting for EDIT_OTHERS_POSTS (#9447)Jesús Espino2018-09-242-2/+9
| | | | | | | | | | | | * MM-11707: Removes edit_others_posts permission from the team_admin role in MakeDefaultRoles(). * MM-11707: Tests fix. * MM-11707: Update test store. * MM-11707: Allow to change the permission for edit the others posts on TE * Fixing tests
* Do not force downloading of shared public files (#9412)Vasily Naumkin2018-09-211-1/+1
| | | | | I believe we don't need to force downloading of shared public files, because `writeFileResponse` method will compare its MIME type with `MEDIA_CONTENT_TYPES` and output it inline or as attachment automatically. Usually we are share images and it is much more convenient to see them without downloading.
* Move file backend to its own service (#9435)Jesús Espino2018-09-203-14/+15
| | | | | | * Move file backend to its own service * Moving utils/inbucket to mailservice package
* MM-11520: Make entity ID checks consistent across api4. (#9395)George Goldberg2018-09-148-20/+68
| | | | | | * MM-11520: Make entity ID checks consistent across api4. * Update tests.
* MM-10573 Add error page if user doesn't authorize Mattermost for OAuth (#9402)Harrison Healey2018-09-142-0/+35
|
* MM-11725: Add specific autocomplete endpoint for search autocomplete (#9337)Jesús Espino2018-09-111-0/+25
|
* MM-11895: Don't crush user-provided GET parameters on slash command URLs (#9372)alezakos2018-09-111-1/+2
|
* Merge release-5.3Carlos Tadeu Panato Junior2018-09-102-5/+9
|\
| * Changing comparison method. (#9383)Christopher Speller2018-09-101-1/+2
| |
| * MM-11649: Fix caching issue in channel API endpoints. (#9345)George Goldberg2018-09-061-4/+7
| | | | | | | | This fixes an issue where the cached Channel objects would contain data from a failed update when the update to the database failed.
* | MM-12007 Add max dimensions to emoji images (#9379)Harrison Healey2018-09-101-4/+15
| |
* | add megacheck as makefile target (#9288)Daniel Schalla2018-09-0310-70/+80
|/ | | | | | | | | | | | | | | | | | | | | | | | | Fix code issues in channel_test.go Fix Channel Test Issues detected by Megacheck Fix API Emoji Test Issues detected by Megacheck Fixed API Issues Reported by Megacheck Fixed App issues reported by megacheck Remaining fixes removed test added by mistake from old HEAD gofmt Store Fixes simplified returns Fix test for multi member channel delete revert to delete unused function
* bug fix: after and before search flags should not be inclusive of the ↵Dmitry Samuylov2018-08-291-3/+8
| | | | | | | | selected date (#9327) * fix for date based flag support to make the after and before flags not inclusive of the selected date * updated search posts tests using date flags to take into account new non inclusive of the selected date behavior of those flags
* MM-11270: Forbid react/de-react in archived channels (#9323)Jesús Espino2018-08-291-4/+57
|
* Feature/search after before on (#9219)Dmitry Samuylov2018-08-283-3/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | * initial implementation of after, before, on search flags allowing to restrict the search to a specific day or a date range * missed setting beforeDate in SearchParams in one place * fixed condition when only flags are used for search without any plain terms * changed date format used for after/before/on flags to be in ISO8601 format as suggested in PR comments, added a helper function to pad month and day with zeroes allowing the user user either format, with or without leading zeroes * corrected expected compare to date setting for the TestParseDateFilterToTimeISO8601 test * fixed a bug for the scenario when you only have the date flags without any terms, added a couple of tests for that scenario * updated the date filter logic to use parameters to construct the query instead of simply appending strings together, as suggested in the pull request comments * added search unit test using date flags * added a helper function to create a test post with a createat date manually set, updated the test for search using date flags to create test posts with different createat dates to be able to better test the functionality * MM-11817 Add support for after/before/on search flags with Elasticsearch * add support to search posts to perform the search in context of the client's timezone when filtering by createat date using on: after: before: flags * updated tests to match the new signature
* MM-11327: Restrict Teams by Email (#9142)Gabe Van Engel2018-08-281-61/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Check a team's AllowedDomains setting before adding users to the team. * Updated AddUser tests to validate AllowedDomains restriction. * Updated variable name to match convention. * Removed AllowedDomains from team sanitization. * Update AppError's Where to match the calling function. * Added tests for user matching allowedDomains, and multi domain values of allowedDomains. * Added test to make sure we block users who have a subdomain of a whitelisted domain. * Revert "Removed AllowedDomains from team sanitization." This reverts commit 17c2afea584da40c7d769787ae86408e9700510c. * Update sanitization tests to include dockerhost, now that we enforce AllowedDomains. * Added tests to verify the interplay between the global and per team domain restrictions. * Validate AllowedDomains property against RestrictCreationToDomains before updating a team. * Remove team.AllowedDomains from sanitization. * Add i18n string for the team allowed domains restriction app error.
* Moving magic number to constant in team import (#9298)Jesús Espino2018-08-271-2/+3
|
* MM-11786: Adds API endpoint to retrieve redirect locations. (#9284)Martin Kraft2018-08-242-0/+66
|
* Support for interactive menus in message attachments (#9285)Joram Wilander2018-08-241-1/+6
|
* Merge release-5.2Carlos Tadeu Panato Junior2018-08-241-0/+20
|\
| * MM-11782: Make archived channels experimental and off-by-default. (#9281)George Goldberg2018-08-221-0/+20
| | | | | | | | | | | | * MM-11782: Make archived channels experimental and off-by-default. * Fix test.
* | [MM-11593] Prevent user to remove from a direct channel (#9251)Saturnino Abril2018-08-212-0/+29
| | | | | | | | | | | | * prevent user to remove from a direct channel * only allow removing of a member in private or public channel
* | avoid t.Fatal() in tests (#9189)Jesse Hallam2018-08-091-19/+4
|/ | | | | | I've been burned a few times by tests that simply fatal, requiring me to run another build to learn more about what the mismatch was. Avoid this. This is part of a long running goal of mine to make testing "better".
* 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
| |\ \ \