summaryrefslogtreecommitdiffstats
path: root/api4/post.go
Commit message (Collapse)AuthorAgeFilesLines
* MM-7188: Cleaning push notification on every read, not only on channel ↵Jesús Espino2018-09-261-1/+1
| | | | | | | | | | | | switch (#9348) * MM-7188: Cleaning push notification on every read, not only on channel switch * Removed unnecesary goroutine * Fixing tests * Applying suggestion from PR
* Adding paging to elasticsearch API. (#9425)Christopher Speller2018-09-261-10/+26
|
* MM-11520: Make entity ID checks consistent across api4. (#9395)George Goldberg2018-09-141-0/+6
| | | | | | * MM-11520: Make entity ID checks consistent across api4. * Update tests.
* Feature/search after before on (#9219)Dmitry Samuylov2018-08-281-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Support for interactive menus in message attachments (#9285)Joram Wilander2018-08-241-1/+6
|
* Migrate all the api4 to handle errors in idiomatic way (#9143)Jesús Espino2018-08-011-12/+15
|
* Pr 9039 (#9187)Martin Kraft2018-07-301-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-10254 Add plugin APIs for getting/updating user statuses (#9101)Joram Wilander2018-07-161-1/+1
| | | | | | | | * Add plugin APIs for getting/updating user statuses * Add and update tests * Updates per feedback
* MM-6992 Added highlighting to elasticsearch results (#8861)Harrison Healey2018-06-191-2/+4
| | | | | | | | * MM-6992 Added highlighting to elasticsearch results * Added a unique type for post search matches * Fixed Elasticsearch matches not being sent through API
* MM-10412: Adds deleteBy prop to posts. (#8896)Martin Kraft2018-06-011-1/+1
|
* MM-8814: Remove implicit permission grants from post ownership. (#8391)George Goldberg2018-05-281-6/+35
|
* Initial Commit of Ephemeral Message Support for System Admins (#8611)Daniel Schalla2018-04-171-0/+30
| | | | | | | | | Fixed Permission Test Fixed and extended ephemeral message tests; Removed Online/Activity Updates Set Create Time to current time gofmt
* PLT-3383: image proxy support (#7991)Chris2018-01-221-11/+11
| | | | | | | | | | | | * image proxy support * go vet fix, remove mistakenly added coverage file * fix test compile error * add validation to config settings and documentation to model functions * add message_source field to post
* Reduce logging data races, fix MySQL test race condition (#7994)Chris2017-12-221-5/+0
| | | | | | | | * fix races * revert unintentional change * fix test as intended
* Performance improvements for 40M posts (#7708)Christopher Speller2017-10-251-7/+6
| | | | | | | | | | | | | | | | | | | | | | * Optimizing get root posts SQL query * Setting session invalidation to be reliable * Adding app reciever to SessionHasPermissionToUser * Adding app reciever to SessionHasPermissionToTeam * Adding app reciever to SessionHasPermissionTo * Clear session cache if permission was denied * Fixing rebase issues * Revert "Optimizing get root posts SQL query" This reverts commit f364757e7015cfb4ec673d0a4fc3d57cd25d8dd7. * Fixing build
* add model.NewX funcs for builtin types (#7692)Chris2017-10-231-2/+1
| | | | | | * add model.NewX funcs for builtin types * whoops, forgot to add the new file
* Only update session activity on specific endpoints (#7549)Joram Wilander2017-10-031-0/+1
|
* PLT-7470: Add metrics for searches. (#7507)George Goldberg2017-09-251-0/+12
|
* remove global refs from api/api4 (#7496)Chris2017-09-221-21/+21
|
* Renaming repoChristopher Speller2017-09-061-3/+3
|
* app type transition (#7167)Chris2017-09-061-36/+36
|
* PLT-6403: Interactive messages (#7274)Chris2017-08-291-0/+20
| | | | | | | | | | * wip * finish first pass * requested changes * add DoPostAction to Client4
* PLT-6763 Implement user access tokens and new roles (server-side) (#6972)Joram Wilander2017-07-311-1/+11
| | | | | | | | | | | | | | | | * 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
* Minor status updates (#6889)Joram Wilander2017-07-111-0/+2
|
* Fixing error in apiv4 flagged posts route (#6880)Christopher Speller2017-07-091-2/+2
|
* PLT-6931 Properly parse request body in post search (#6768)Joram Wilander2017-06-281-8/+4
| | | | | | * Properly parse request body in post search * Update driver to use correct body
* fix permission app error with updatePost (#6749)Saturnino Abril2017-06-261-0/+4
|
* Move remaining actions over to use redux and v4 endpoints (#6720)Joram Wilander2017-06-261-8/+50
|
* 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/+34
| | | | | | * 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-2/+12
|
* PLT-5900 Removed automatic configuration of SiteURL (#5952)Harrison Healey2017-04-041-1/+1
| | | | | | | | | | | | | | | | * Revert "PLT-5765 Passed SiteURL to SendNotifications (#5705)" This reverts commit a8e68bd8905972ae59de90fa33d5b3e3c274dc47. * Removed automatic configuration of SiteURL * Reverted unintentional config changes * Updated help text * Added link to docs in Site URL warning * Fixed merge conflict
* APIv4 POST /posts/{post_id/pin & unpin (#5906)Saturnino Abril2017-03-311-0/+34
| | | | | | * 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/+28
| | | | | | * APIv4 put /posts/{post_id}/patch * Add props and edit permission
* Add query parameters to get posts v4 endpoint (#5858)Joram Wilander2017-03-241-6/+49
| | | | | | * Add since query paremeter to get posts v4 endpoint * Add query paremeters for before/after to get posts v4 endpoint
* PLT-5765 Passed SiteURL to SendNotifications (#5705)Harrison Healey2017-03-101-2/+1
|
* ApiV4: PUT /posts/{post_id} (#5521)Andrei Stanciu2017-02-281-0/+27
|
* Implement GET /posts/{post_id}/files/info endpoint for APIv4 (#5519)Joram Wilander2017-02-241-0/+24
|
* Implement posts endpoints for APIv4 (#5480)Ruzette Tanyag2017-02-211-0/+57
| | | | | | | | | | * Implement delete post endpoint for apiv4 * Implement POST search post endpoint for APIv4 * removed delete post quotes * rearrange formatting
* Implement some post endpoints for APIv4 (#5353)Joram Wilander2017-02-131-0/+119
* 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