summaryrefslogtreecommitdiffstats
path: root/api4
Commit message (Collapse)AuthorAgeFilesLines
* parallel tests (#7629)Chris2017-10-162-6/+12
|
* Use tmpfs containers for api/api4 tests, move and speed up CLI tests (#7606)Chris2017-10-122-2/+104
| | | | | | | | | | | | * use tmpfs containers for api/api4, move and speed up cli tests * minor optimizations * add missing files, fix pre-existing race condition * add . to TestMain check * add requested log message
* Add User To Channel api route returns a 400 error when trying to add users ↵Santos Solorzano2017-10-121-0/+5
| | | | to a DM or GM channel (#7587)
* Miscellaneous app cleanup (#7594)Chris2017-10-092-27/+14
| | | | | | | | | | | | * app cleanup * whoops, forgot a file * some minor cleanup * longer container deadline * defensive checks
* Fix races / finally remove global app for good (#7570)Chris2017-10-041-5/+0
| | | | | | | | | | | | * finally remove global app for good * test compilation fixes * fix races * fix deadlock * wake up write pump so it doesn't take forever to clean up
* PLT-7718 Patch for files (#7564)Joram Wilander2017-10-043-6/+11
| | | | | | | | | | * Patch for files * Fix merge * Fix tests * Fix another test
* PLT-7785: Slash commands can be issued to a channel in a team without it (#7567)Jonathan2017-10-042-6/+38
| | | | | | * Ensured that specified channel is a part of specified team * Simplified approach to just infer team id from specified channel id to eliminate the attack vector entirely
* PLT-7781 Some more OAuth fixes (#7568)Joram Wilander2017-10-042-23/+129
| | | | | | * Some other oauth fixes * Fix unit test
* Updates to session revoking in v4 (#7565)Joram Wilander2017-10-042-1/+21
|
* Only update session activity on specific endpoints (#7549)Joram Wilander2017-10-034-1/+5
|
* 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