summaryrefslogtreecommitdiffstats
path: root/api4
Commit message (Collapse)AuthorAgeFilesLines
* Goroutine wranglin (#7556)Chris2017-10-031-2/+1
| | | | | | * goroutine wranglin * synchronize WebConn.WritePump
* Fix bad merge (#7553)Joram Wilander2017-10-021-1/+1
|
* PLT-7705: API to get data retention policy. (#7539)George Goldberg2017-10-023-0/+50
| | | | | | * PLT-7705: API to get data retention policy. * Fix review comments.
* Don't use global app for api / api4 tests (#7528)Chris2017-10-0225-262/+269
| | | | | | | | | | | | | | * don't use global app for api / api4 tests * put sleep back. we're gonna have to do some goroutine wrangling * fix oauth test config assumptions * jobs package, i'm comin' for you next * app test fix * try increasing sleep a little
* PLT-7404 Return viewed at times in view channel API response (#7428)Joram Wilander2017-09-292-5/+19
| | | | | | | | * Return viewed at times in view channel API response * Updated transaction to read and write once * Remove transaction and only update if new value greater than older
* remove jobs.Srv and other jobs-related globals (#7535)Chris2017-09-292-5/+4
|
* PLT-7684 Add support to outgoing webhooks and slash commands to set post ↵Joram Wilander2017-09-282-0/+10
| | | | | | | | type and props (#7531) * Add support to outgoing webhooks and slash commands to set post type and props * Fix nil access
* PLT-7633 (E20) Add session idle timeout config setting (#7524)Joram Wilander2017-09-281-0/+1
| | | | | | | | | | * Add session idle timeout config setting * Modify config setting name to SessionIdleTimeoutInMinutes * Small re-org of if statement * Merge with latest master
* remove remaining Global() calls (outside of tests) (#7521)Chris2017-09-283-5/+4
|
* PLT-7470: Add metrics for searches. (#7507)George Goldberg2017-09-251-0/+12
|
* Move sql store code into store/sqlstore package (#7502)Chris2017-09-251-4/+4
| | | | | | | | | | * move sql store code into store/sqlstore package * move non-sql constants back up to store * fix api test * derp
* remove global refs from api/api4 (#7496)Chris2017-09-2227-400/+415
|
* remove more global refs (#7480)Chris2017-09-211-2/+1
|
* fix error message escaping (#7467)Chris2017-09-201-2/+2
|
* remove einterface gets (#7455)Chris2017-09-199-22/+20
|
* Fixing profile image tag (#7435)Corey Hulen2017-09-192-3/+3
| | | | | | | | * Fixing profile image tag * Fixing unit test * Fixing unit test
* generate web error when opening an invalid public file link (#7475)Saturnino Abril2017-09-191-0/+2
|
* Implement update OAuthApp endpoint for APIv4, add test (#7413)n1aba2017-09-182-0/+148
|
* PLT-7622 Improvements to server handling of webapp plugins (#7445)Joram Wilander2017-09-153-10/+41
| | | | | | | | * Improvements to server handling of webapp plugins * Fix newline * Update manifest function names
* Model: NewLocAppError -> NewAppError (#7450)George Goldberg2017-09-151-1/+1
|
* Invalidate webhook cache after updating webhook (#7430)Joram Wilander2017-09-141-0/+5
|
* fix plugin test (#7436)Chris2017-09-123-10/+15
| | | | | | | | | | | | * fix plugin test * ugh. global state * Fix plugin test * Fix TestDeleteChannel * Remove plugin config listener when shutting down
* Remove global app references (#7433)Chris2017-09-123-52/+31
| | | | | | | | * remove global app references * test fix * fix api4 test compilation
* PLT-7407: Back-end plugins (#7409)Chris2017-09-112-2/+2
| | | | | | | | | | | | * tie back-end plugins together * fix comment typo * add tests and a bit of polish * tests and polish * add test, don't let backend executable paths escape the plugin directory
* 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