summaryrefslogtreecommitdiffstats
path: root/api4/post_test.go
Commit message (Collapse)AuthorAgeFilesLines
* Role refactor (#7867)Chris2017-11-211-14/+14
| | | | | | | | * role refactor * add missing file * fix web test
* [PLT-840] Add option to outgoing webhooks to reply to the posted message as ↵Carlos Tadeu Panato Junior2017-11-201-12/+53
| | | | a comment (#7807)
* PLT-7978 Add websocket event for user role update (#7745)Joram Wilander2017-10-311-4/+4
| | | | | | | | * Add websocket event for user role update * Fix tests * More test fixes
* simplify things (#7735)Chris2017-10-301-6/+6
|
* add model.NewX funcs for builtin types (#7692)Chris2017-10-231-6/+3
| | | | | | * add model.NewX funcs for builtin types * whoops, forgot to add the new file
* [PLT-7362] Option to add user to channel if mentioned user is not currently ↵Saturnino Abril2017-10-211-1/+77
| | | | | | | | | | | | | | | | in the channel (#7619) * Option to add user to channel if mentioned user is not currently in the channel * instead of link from server, just add component on client side to add channel member * change implementation using post.props * do clean up and add test * sanitize post.props['add_channel_member'] on post creation * move sanitize to app.CreatePost and also apply to app.UpdatePost
* Reduce utils.Cfg references (#7650)Chris2017-10-181-15/+19
| | | | | | | | | | | | * app.UpdateConfig method * test fix * another test fix * the config override option as-was is just error prone, remove it for now * derp
* PLT-7818 Updates to post type (#7579)Joram Wilander2017-10-091-3/+11
| | | | | | * Updates to post type * Update tests
* Don't use global app for api / api4 tests (#7528)Chris2017-10-021-20/+20
| | | | | | | | | | | | | | * 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
* Renaming repoChristopher Speller2017-09-061-3/+3
|
* app type transition (#7167)Chris2017-09-061-17/+17
|
* PLT-6226 Fixing races with licensing (#7213)Corey Hulen2017-08-161-14/+14
| | | | | | | | | | * PLT-6226 Fixing races with licensing * Fixing build issue * Fixing licensing issue * removing commented code
* PLT-6358: Server HTTP client improvements (#6980)Chris2017-08-091-0/+3
| | | | | | | | | | | | | | | | * 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
* 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-311-1/+46
| | | | | | | | | | | | | | | | * 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
* [PLT-6676] Make OutgoingWebhook to fire when post has no text content but ↵Saturnino Abril2017-07-181-0/+156
| | | | | | | | only attachment (#6935) * make OutgoingWebhook to fire when post has no text content but only attachment * update per comment and modify payload & test
* fix permission app error with updatePost (#6749)Saturnino Abril2017-06-261-0/+2
|
* Move remaining actions over to use redux and v4 endpoints (#6720)Joram Wilander2017-06-261-0/+34
|
* fix intermittent failure of TestGetPostsForChannel on CI server (#6702)Saturnino Abril2017-06-201-3/+5
|
* PLT-6761 fixing unit tests (#6671)Corey Hulen2017-06-191-8/+8
|
* [PTL-6301] debug randon failing test (#6161)Carlos Tadeu Panato Junior2017-05-151-1/+5
| | | | | | * debug randon failing test * add another check.
* PLT-5860 Updated copyright date (#6058)Harrison Healey2017-04-121-1/+1
| | | | | | | | | | | | * PLT-5860 Updated copyright date in about modal * PLT-5860 Updated copyright notice in JSX files * PLT-5860 Updated copyright notice in go files * Fixed misc copyright dates * Fixed component snapshots
* APIv4 GET /users/{user_id}/posts/flagged (#5984)Saturnino Abril2017-04-051-0/+181
| | | | | | * APIv4 GET /users/{user_id}/posts/flagged * change permission check
* Fix blanking out of FileIds and backwards compatability issue with v3 (#5950)Joram Wilander2017-04-041-0/+13
|
* APIv4 POST /posts/{post_id/pin & unpin (#5906)Saturnino Abril2017-03-311-0/+70
| | | | | | * APIv4 get /posts/{post_id}/pin & unpin * remove PinnedPost from api test helper
* Use 201 status code where appropriate for APIv4 (#5903)Joram Wilander2017-03-311-0/+1
|
* APIv4 put /posts/{post_id}/patch (#5883)Saturnino Abril2017-03-291-0/+102
| | | | | | * APIv4 put /posts/{post_id}/patch * Add props and edit permission
* Add query parameters to get posts v4 endpoint (#5858)Joram Wilander2017-03-241-4/+115
| | | | | | * Add since query paremeter to get posts v4 endpoint * Add query paremeters for before/after to get posts v4 endpoint
* Fxing some unit tests (#5817)Christopher Speller2017-03-201-4/+4
|
* ApiV4: PUT /posts/{post_id} (#5521)Andrei Stanciu2017-02-281-0/+69
|
* Implement GET /posts/{post_id}/files/info endpoint for APIv4 (#5519)Joram Wilander2017-02-241-0/+60
|
* Implement posts endpoints for APIv4 (#5480)Ruzette Tanyag2017-02-211-0/+257
| | | | | | | | | | * Implement delete post endpoint for apiv4 * Implement POST search post endpoint for APIv4 * removed delete post quotes * rearrange formatting
* Implement GET channels endpoints for APIv4 (#5363)Ruzette Tanyag2017-02-141-1/+1
| | | | | | | | | | | | * implement get channels endpoints and updated drivers and unittests * removed channel deletion on tear down, removed manage permission on get channels endpoints, and updated utils to add constant channel length * added constants for user, team and channel length, updated context to use the model functions * make sure team name length should be less than the minimum length and revert underscore to team name validity * changed post test condition from notfound to unauthorized
* Implement some post endpoints for APIv4 (#5353)Joram Wilander2017-02-131-0/+249
* Implement POST /posts endpoint for APIv4 * Implement GET /channels/{channel_id}/posts endpoint for APIv4 * Implement GET /posts/{post_id} endpoint for APIv4 * Implement GET /posts/{post_id}/thread endpoint for APIv4 * Skip team get if it's a DM channel in handlePostEvents