summaryrefslogtreecommitdiffstats
path: root/api/post_test.go
Commit message (Collapse)AuthorAgeFilesLines
* MM-8708 Remove api package (#8784)Joram Wilander2018-05-161-1510/+0
| | | | | | | | | | | | | | | | | | | | | | * Remove api package * Remove api dependency from cmd package * Remove EnableAPIv3 setting * Update web tests * Add more websocket tests * Move some ws and oauth tests to api4 package * Move command tests into api4 package * Test fixes * Fix msg command test * Add some app file tests
* Merge branch 'master' into advanced-permissions-phase-1George Goldberg2018-02-131-21/+3
|\
| * Eliminate utils.SetLicense calls (#8217)Chris2018-02-071-38/+4
| | | | | | | | | | | | | | | | | | | | * eliminate utils.SetLicense calls * test fix * another test fix * more test fixes
* | AllowEditPost and PostEditTimeLimit migration (#8208)Jesús Espino2018-02-091-4/+9
| | | | | | | | | | | | | | | | * AllowEditPost and PostEditTimeLimit migration * Not set EDIT_POST permission to sysadmin_role if ALLOW_EDIT_POST is configured to NEVER * Remove a bit of code duplication
* | XYZ-37: Advanced Permissions Phase 1 Backend. (#8159)George Goldberg2018-02-061-54/+5
|/ | | | | | | | | | | | | | | | | | | | | | | | | | * XYZ-13: Update Permission and Role structs to new design. * XYZ-10: Role store. * XYZ-9/XYZ-44: Roles API endpoints and WebSocket message. * XYZ-8: Switch server permissions checks to store backed roles. * XYZ-58: Proper validation of roles where required. * XYZ-11/XYZ-55: Migration to store backed roles from policy config. * XYZ-37: Update unit tests to work with database roles. * XYZ-56: Remove the "guest" role. * Changes to SetDefaultRolesFromConfig. * Short-circuit the store if nothing has changed. * Address first round of review comments. * Address second round of review comments.
* Role refactor (#7867)Chris2017-11-211-6/+6
| | | | | | | | * role refactor * add missing file * fix web test
* simplify things (#7735)Chris2017-10-301-5/+5
|
* 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
* Reduce cfg boilerplate (#7689)Chris2017-10-231-30/+2
| | | | | | | | | | | | * reduce cfg boilerplate * fix compile error * user test fix * another test fix * simplify diagnostics / testing
* [PLT-7362] Option to add user to channel if mentioned user is not currently ↵Saturnino Abril2017-10-211-1/+9
| | | | | | | | | | | | | | | | 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-29/+41
| | | | | | | | | | | | * app.UpdateConfig method * test fix * another test fix * the config override option as-was is just error prone, remove it for now * derp
* Merge branch 'release-4.3'Christopher Brown2017-10-161-3/+7
|\
| * PLT-7818 Updates to post type (#7579)Joram Wilander2017-10-091-3/+7
| | | | | | | | | | | | * Updates to post type * Update tests
* | parallel tests (#7629)Chris2017-10-161-9/+20
|/
* Don't use global app for api / api4 tests (#7528)Chris2017-10-021-15/+60
| | | | | | | | | | | | | | * 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-7684 Add support to outgoing webhooks and slash commands to set post ↵Joram Wilander2017-09-281-0/+10
| | | | | | | | type and props (#7531) * Add support to outgoing webhooks and slash commands to set post type and props * Fix nil access
* remove more global refs (#7480)Chris2017-09-211-17/+17
|
* Renaming repoChristopher Speller2017-09-061-4/+4
|
* app type transition (#7167)Chris2017-09-061-20/+20
|
* Config to make town square read only (#7140)David Meza2017-09-011-0/+39
| | | | | | | | | | | | | | | | | | | | | | * Be able to make Town Square read-only (Disable typing messages for non admins). * Do not emit UserTypingEvent when TownSquareIsReadOnly and is Town Square. * Add unit tests for TownSquareIsReadOnly config value and logic. * Add TownSquareIsReadOnly to System console>Policy. Added Telemetry. * Add control for TownSquareIsReadOnly=true only for License Enterprise Edition E10 & E20. * Update en.json * Update en.json * Update policy_settings.jsx * Change config value from TownSquareIsReadOnly to ExperimentalTownSquareIsReadOnly. * Refactored to simplify. Avoid code repeat and multiple db calls.
* [PLT-5170] Add join the channel system message for the person who created ↵Saturnino Abril2017-08-301-4/+4
| | | | | | | | the channel (#7299) * add join the channel system message for the person who created the channel * update test
* PLT-6226 Fixing races with licensing (#7213)Corey Hulen2017-08-161-16/+16
| | | | | | | | | | * 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/+6
| | | | | | | | | | | | | | | | * 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
* 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
* Add retries to TestEmailMention test (#6893)Joram Wilander2017-07-271-4/+9
|
* [PLT-6676] Make OutgoingWebhook to fire when post has no text content but ↵Saturnino Abril2017-07-181-11/+28
| | | | | | | | only attachment (#6935) * make OutgoingWebhook to fire when post has no text content but only attachment * update per comment and modify payload & test
* PLT-6761 fixing unit tests (#6671)Corey Hulen2017-06-191-59/+59
|
* 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
* get the latest message from the mailbox. It fixes the issue PLT-6176 (#6005)Carlos Tadeu Panato Junior2017-04-071-2/+2
|
* PLT-5483 Fix bug where flagged posts endpoint returned posts on other teams ↵Joram Wilander2017-03-311-0/+5
| | | | | | | | (#5765) * Fix bug where flagged posts endpoint returned posts on other teams * Include flagged posts from DMs/GMs
* Merge branch 'release-3.7'George Goldberg2017-03-231-0/+13
|\
| * Fix policy application in team edition. (#5771)George Goldberg2017-03-151-0/+13
| |
* | Add pinned posts (#4217)Gabin Aureche2017-03-131-0/+46
| |
* | improvements for inbucket email test and re-enable Email mention test (#5647)Carlos Tadeu Panato Junior2017-03-111-45/+56
|/ | | | Now if we dont get the mailbox to check the email we try 5 times, if still no message we disable the email verification.
* Add system console switch for enabling link previews (#5663)Joram Wilander2017-03-061-0/+11
|
* PLT-5355: Fix permalink to private/direct channels. (#5574)George Goldberg2017-03-021-1/+38
| | | | Appropriate permission checks depend on the type of channel this permalink links to.
* Fixing file info caching issue with Aurora for master (#5477)Corey Hulen2017-02-201-1/+1
|
* Remove MakeDirectChannelVisible and add client handling for showing DMs (#5430)Joram Wilander2017-02-151-36/+0
|
* Disabling email mention test (#5381)Corey Hulen2017-02-131-45/+45
|
* PLT-5455 Added caching for OG metadata of link preview. (#5361)Debanshu Kundu2017-02-121-4/+28
|
* Add caching for file infos (#5330)Joram Wilander2017-02-071-1/+3
|
* #4257 Added functionality to create previews for post links using open ↵Debanshu Kundu2017-01-201-0/+31
| | | | graph data from those links. (#4890)
* Message Editing and Deleting permissions (#4692)Amit Yadav2017-01-181-6/+149
|
* Add inbucket docker image to allow local and automated testing of emails (#4901)Carlos Tadeu Panato Junior2017-01-171-2/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | * add docker container for inbucket * Add way to get the emails using inbucket and add a test for reset password * add config setting to send emails * update TestEmailTest update * add another test and fix wrong assert * update per review fix lint change senders email * Revert config.json to default values for EmailSettings section * update test * add setup to make the test run
* PLT-4938 Add app package and move logic over from api package (#4931)Joram Wilander2017-01-131-328/+19
| | | | | | | | | | * Add app package and move logic over from api package * Change app package functions to return errors * Move non-api tests into app package * Fix merge
* PLT-135 Showing "(Edited)" indicator if a message has been edited. (#4923)Debanshu Kundu2017-01-121-0/+11
|
* inital draft (#4883)Carlos Tadeu Panato Junior2017-01-061-0/+30
|
* Remove TODOs that now have tickets (#4935)Joram Wilander2017-01-031-1/+0
|
* Add initial unit test for post.getPostById() (#4910)Carlos Tadeu Panato Junior2016-12-301-0/+30
| | | | | | | | | | * add itinial tests for GetPostById update per review fix lint * add missing comment