summaryrefslogtreecommitdiffstats
path: root/api4
Commit message (Collapse)AuthorAgeFilesLines
* Renaming repoChristopher Speller2017-09-0646-122/+122
|
* Adding jenkinsfile for new build server.Christopher Speller2017-09-062-11/+4
|
* Merge release-4.2Christopher Speller2017-09-064-5/+36
|\
| * Various patchesJoramWilander2017-09-064-5/+36
| |
* | app type transition (#7167)Chris2017-09-0632-491/+489
|/
* Revert "[PLT-7475] Add S3 region to system console and add S3 validation ↵Saturnino Abril2017-09-061-3/+3
| | | | | | | | (#7373)" (#7387) This reverts commit 8d680cf64ec7fb6c8b242b8048989d0f0550cb68. Move to 4.3. Will discuss more if validation is necessary.
* PLT-7468 Moved more error pages to use predefined error types (#7378)Harrison Healey2017-09-052-4/+2
| | | | | | | | * PLT-7468 Moved more errors to use error types * PLT-7468 Moved 404 error page to use error types * Made helper function for rendering external links on error page
* [PLT-7475] Add S3 region to system console and add S3 validation (#7373)Saturnino Abril2017-09-061-3/+3
| | | | | | | | | | * add S3 region to system console and add S3 validation * update translation message * add bool as return value to Validate* functions * update Validate* functions to be pure
* App: NewLocAppError -> NewAppError (#7327)George Goldberg2017-09-011-1/+1
| | | | | | * App: NewLocAppError -> NewAppError * Remove statuscode that got missed.
* Implement experimental REST API endpoints for plugins (#7279)Joram Wilander2017-09-016-0/+260
| | | | | | | | | | | | | | | | | | * Implement experimental REST API endpoints for plugins * Updates per feedback and rebase * Update tests * Further updates * Update extraction of plugins * Use OS temp dir for plugins instead of search path * Fail extraction on paths that attempt to traverse upward * Update pluginenv ActivePlugins()
* PLT-3893: Structured Logging Continues (#7252)Jonathan2017-08-311-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PLT-3893: Imported logger work from https://github.com/MusikPolice/platform * PLT-3893: Integrated logger with system config * PLT-3893: Integrated Mattermost config with logging solution, modified log message serialization so entire message is serialized as a JSON object * PLT-3893: Added support for format strings in Debug methods. Added an overload that does not require a Context object for cases when one isn't available * PLT-3893: Added context and format string support to debug and error methods * PLT-3893: A few updates from pull request feedback * PLT-3893: Changed tests to use testify * Fixed TestAddRemoveConfigListener to no longer assume that there are zero config listeners when the test begins, since other tests could add config listeners * Updated TestGetDeletedChannelsForTeam so that it doesn't assume state when it begins * PLT-3893: Changed File property of log message so that it's relative to /mattermost directory, rather than to wherever the user is running the application from on their machine * Flipped expected/actual assert arguments, added an explicit test for getCallerFilename(...), since it's failing on Jenkins * Added printlns to debug failing tests on Jenkins * Relaxed test cases to avoid failure on Jenkins caused by code coverage calculations. Removed printlns. * Changed the way that caller filename is determined to make it more robust, updated tests to make them more lax, while not choking on the strange paths that Jenkins uses. * Fixed gofmt issues * Added debug output to tests to diagnose Jenkins build failures * Still trying to get some useful debug logging on Jenkins * Changed getCallerFilename to handle the strange paths that runtime.Caller(...) returns on Jenkins * Fixing checkstyle issues
* APIv4: NewLocAppError -> NewAppError (#7328)George Goldberg2017-08-319-68/+34
|
* Fix setting profile image for other users (#7306)Joram Wilander2017-08-312-1/+10
|
* [PLT-5170] Add join the channel system message for the person who created ↵Saturnino Abril2017-08-301-2/+15
| | | | | | | | the channel (#7299) * add join the channel system message for the person who created the channel * update test
* set to default value with config is missing (#7320)Saturnino Abril2017-08-308-27/+27
|
* PLT-6403: Interactive messages (#7274)Chris2017-08-293-0/+36
| | | | | | | | | | * wip * finish first pass * requested changes * add DoPostAction to Client4
* Manage version configurations client versions (#7220)Chris Duarte2017-08-281-1/+12
| | | | | | | | | | | | * Add config values for client versions. Return client versions in ping response. * Manage client version through System Console. * Added client versions to diagnostics * Added translations messages en.json file. * Hide Client Versions on System Console.
* PLT-5745 Cleaning up duplicate calls (#7298)Corey Hulen2017-08-281-1/+1
| | | | | | | | * PLT-5745 Cleaning up duplicate calls * Fixing missing calls * Fixing broken test
* Set charset for OAuth2 authorize page (#7304)Joram Wilander2017-08-281-1/+1
|
* PLT-???? Prepare file upload infrastructure for Data Retention. (#7266)George Goldberg2017-08-252-7/+9
| | | | | | | | | | | | | | | | | * Prepare file upload infrastructure for Data Retention. This commit prepares the file upload infrastructure for the data retention feature that is under construction. Changes are: * Move file management code to utils to allow access to it from jobs. * From now on, store all file uploads in a top level folder which is the date of the day on which they were uploaded. This commit is based on Harrison Healey's branch, but updated to work with the latest master. * Use NewAppError
* [PLT-7390] Add Type = 'O' in getting open teams at sql store (#7207)Saturnino Abril2017-08-241-4/+12
| | | | | | * add Type = 'O' in getting open teams at sql store * updated PR
* Switch hook debug msg to info (#7272)Corey Hulen2017-08-221-1/+1
|
* Adding debugging for webhook (#7199)Corey Hulen2017-08-181-1/+6
| | | | | | | | * Adding debugging for webhook * Fixing build error * Moving error down
* webhook merge fix (#7250)Chris2017-08-172-1/+18
|
* Merge branch 'release-4.1'Christopher Speller2017-08-173-10/+64
|\
| * PLT-7408 Move webhook handling into api4 package to fix EnableAPIv3 config ↵Joram Wilander2017-08-161-0/+51
| | | | | | | | | | | | | | | | setting (#7219) * Move webhook handling into api4 package to fix EnableAPIv3 config setting * Fix unit test
| * disable intermittently failing test at TestGetAllTeams temporarily (#7211)Saturnino Abril2017-08-151-2/+4
| |
| * Update unit testJoramWilander2017-08-091-0/+4
| |
| * Minor updates to teamJoramWilander2017-08-082-4/+20
| |
* | PLT-7302: Aggregate Elasticsearch indexes over a certain age. (#7224)George Goldberg2017-08-171-1/+1
| | | | | | | | | | | | | | | | | | * PLT-7302: Aggregate Elasticsearch indexes over a certain age. This is done by a scheduled daily job, in order to keep the shard count to a sensible level in Elasticsearch. * Use map[string]string instead of StringMap
* | PLT-6226 Fixing races with licensing (#7213)Corey Hulen2017-08-168-134/+134
| | | | | | | | | | | | | | | | | | | | * PLT-6226 Fixing races with licensing * Fixing build issue * Fixing licensing issue * removing commented code
* | PLT-1649: add response_url support for custom slash commands (#6739)Chris2017-08-163-4/+61
| | | | | | | | | | | | | | | | | | | | * add response_url support for custom slash commands * pr suggestions * pr update / suggestion * test fix
* | PLT-6358: Server HTTP client improvements (#6980)Chris2017-08-093-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * restrict untrusted, internal http connections by default * command test fix * more test fixes * change setting from toggle to whitelist * requested ui changes * add isdefault diagnostic * fix tests
* | when session id is invalid,the function "revokeSession" should return (#7127)KenmyZhang2017-08-091-0/+1
| |
* | PLT-7206: Remove the "Delete Channel" option for private channels if you're ↵Jonathan2017-08-092-12/+3
|/ | | | | | | | | | | | | | | | | | | | | | | | the last channel member and policy setting restricts channel deletion (#7050) * PLT-7206: UI changes. Removed last user in channel loophole, refactored code to clean it up, added differentiated support for public and private channels, added unit tests. Still need to implement server-side checks * PLT-7206: All helper methods in channel_utils.jsx now accept the same three boolean variables in the same order and use the same boolean logic to check their values. * PLT-7206: Added unit tests for showManagementOptions(...) * PLT-7206: Fixed test case descriptions * Added unit tests for showCreateOption(...) * PLT-7206: Added unit tests for canManageMembers(...) * PLT-7206: Removed last person in channel loophole from server-side code * PLT-7206: Reverted config.json * PLT-7206: Fixed double negatives in unit test names * PLT-7206: PR feedback - Removed confusing comment and unused variable
* Added unit tests for getFile headers (#7045)Harrison Healey2017-08-081-0/+65
| | | | | | | | | | | | * Added unit tests for getFile headers * Fixed exe type test to run correctly on multiple platforms * Make sure we close the body on all Client4 calls * Changed Response.Response field to Response.Header * Clarified type of Response.Header
* PLT-7261 Fixed incorrect content type for preview and thumbnail images (#7119)Harrison Healey2017-08-041-2/+5
|
* If login is using mobile respond with JSON object (#7030)enahum2017-08-031-4/+20
|
* PLT-6987 User access token UI (#7007)Joram Wilander2017-08-011-0/+55
| | | | | | | | | | * Add user access token UI * Fix enter press and update mattermost-redux * Updating UI for access token stuff (#7066) * Revert segment key
* Revert " #4755 Combining consecutive user join/leave system messages to ↵Saturnino Abril2017-08-011-1/+1
| | | | | | | | | | | | single message and few other changes." (#7072) * Revert "PLT-6603: Don't return all posts on invalid query. (#7061)" This reverts commit 25a2013890c7e07b4621fa9b18342e7f35363049. * Revert " #4755 Combining consecutive user join/leave system messages to single message and few other changes. (#5945)" This reverts commit 8a91235fb3cdc8d094dbc2eaa0d7baa447132b3c.
* #4755 Combining consecutive user join/leave system messages to single ↵Debanshu Kundu2017-08-011-1/+1
| | | | | | | | | message and few other changes. (#5945) fix 7 and 8 remove @ at "{username} joined the channel" refactor and update test
* PLT-6763 Implement user access tokens and new roles (server-side) (#6972)Joram Wilander2017-07-316-2/+464
| | | | | | | | | | | | | | | | * Implement user access tokens and new roles * Update config.json * Add public post permission to apiv3 * Remove old comment * Fix model unit test * Updates to store per feedback * Updates per feedback from CS
* Allow regions to be set and honored for S3 driver. (#7010)Harshavardhana2017-07-311-5/+15
| | | | | | | | | This is necessary for certain users where GetBucketLocation API is disabled using IAM policies. There is a field AmazonS3Region which we need to re-purpose and use to support this properly. Fixes https://github.com/mattermost/platform/issues/6999
* fix dm custom slash command regression (#7008)Chris2017-07-251-1/+7
|
* PLT-6595-Server: Job Management APIs. (#6931)George Goldberg2017-07-203-38/+234
| | | | | | | | * PLT-6595-Server: Job Management APIs. * MANAGE_JOBS Permission * Fix test.
* PLT-6760 Allowed TestUploadFile to pass when http client errors (#6985)Harrison Healey2017-07-201-1/+4
|
* PLT-6595: API to purge Elasticsearch indexes. (#6971)George Goldberg2017-07-192-0/+26
|
* Merge branch 'release-4.0'Christopher Speller2017-07-187-49/+101
|\
| * PLT-6983 Allowed team invite IDs of arbitrary lengths to match API v3 (#6944)Harrison Healey2017-07-152-4/+11
| |
| * Fixed downloading of image files (#6934)Harrison Healey2017-07-151-31/+62
| | | | | | | | | | | | | | | | | | | | * Fixed downloading of image files * Fixed captitalization * Fixed missing import * Rename image to media