summaryrefslogtreecommitdiffstats
path: root/api4/channel.go
Commit message (Collapse)AuthorAgeFilesLines
* ABC-79: Optimize channel autocomplete query (#8163)Chris2018-01-311-0/+22
| | | | | | * optimize channel autocomplete query * move to new autocomplete endpoint
* PLT-3383: image proxy support (#7991)Chris2018-01-221-1/+1
| | | | | | | | | | | | * 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-3/+0
| | | | | | | | * fix races * revert unintentional change * fix test as intended
* [PLT-7362] Add post' root ID to APIv4 addChannelMember to render added user ↵Saturnino Abril2017-10-311-8/+23
| | | | | | | | | | (as system post) at RHS (#7730) * add post' root ID to apiv4 addChannelMember to render added user (as system post) at RHS * add check to post_root_id parameter * add AddChannelMemberWithRootId function for backward compatibility
* simplify things (#7735)Chris2017-10-301-2/+0
|
* Performance improvements for 40M posts (#7708)Christopher Speller2017-10-251-20/+19
| | | | | | | | | | | | | | | | | | | | | | * 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 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)
* Only update session activity on specific endpoints (#7549)Joram Wilander2017-10-031-0/+2
|
* PLT-7404 Return viewed at times in view channel API response (#7428)Joram Wilander2017-09-291-2/+10
| | | | | | | | * 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 global refs from api/api4 (#7496)Chris2017-09-221-35/+35
|
* Renaming repoChristopher Speller2017-09-061-3/+3
|
* app type transition (#7167)Chris2017-09-061-54/+54
|
* APIv4: NewLocAppError -> NewAppError (#7328)George Goldberg2017-08-311-4/+2
|
* 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
* PLT-7206: Remove the "Delete Channel" option for private channels if you're ↵Jonathan2017-08-091-8/+1
| | | | | | | | | | | | | | | | | | | | | | | | the last channel member and policy setting restricts channel deletion (#7050) * PLT-7206: UI changes. Removed last user in channel loophole, refactored code to clean it up, added differentiated support for public and private channels, added unit tests. Still need to implement server-side checks * PLT-7206: All helper methods in channel_utils.jsx now accept the same three boolean variables in the same order and use the same boolean logic to check their values. * PLT-7206: Added unit tests for showManagementOptions(...) * PLT-7206: Fixed test case descriptions * Added unit tests for showCreateOption(...) * PLT-7206: Added unit tests for canManageMembers(...) * PLT-7206: Removed last person in channel loophole from server-side code * PLT-7206: Reverted config.json * PLT-7206: Fixed double negatives in unit test names * PLT-7206: PR feedback - Removed confusing comment and unused variable
* [PLT-6838] Restrict channel delete option per permission policy even for ↵Saturnino Abril2017-07-051-11/+9
| | | | | | | | | | last channel member (#6706) * channel delete option is hidden from the menu unless there is appropriate permissions as set in the policy page * apply to public channel only and add restriction to API layer * updated channel deletion
* PLT-6019: Add APIv4 Endpoint for restoring Channels (#6263)Robin Naundorf2017-05-151-0/+31
|
* Merge branch 'release-3.9' into merge-3.9JoramWilander2017-05-121-7/+16
|\
| * PLT-6556 Fixed last member of a channel not being able to delete channel ↵Harrison Healey2017-05-111-5/+14
| | | | | | | | with api v4 (#6397)
| * Forward port 3.8.1 changes that missed master (#6362)Joram Wilander2017-05-091-2/+2
| |
* | Add API Endpoint for deleted Channels (#5889)Robin Naundorf2017-05-091-0/+21
|/
* Update channel patch to post the correct system messages (#6290)Joram Wilander2017-05-031-1/+1
|
* PLT-6214 Move channel store and actions over to redux (#6235)Joram Wilander2017-04-281-5/+0
| | | | | | | | | | | | | | * Move channel store and actions over to redux * Fix style errors * Fix unit test * Various fixes * More fixes * Revert config changes
* APIv4 POST /channels/group (#6166)Saturnino Abril2017-04-201-0/+38
|
* 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
* PLT-5900 Removed automatic configuration of SiteURL (#5952)Harrison Healey2017-04-041-4/+4
| | | | | | | | | | | | | | | | * 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
* Use 201 status code where appropriate for APIv4 (#5903)Joram Wilander2017-03-311-0/+1
|
* Implement PUT /channels/{channel_id}/members/{user_id}/notify_props for ↵Joram Wilander2017-03-311-0/+27
| | | | APIv4 (#5901)
* APIv4 get /channels/{channel_id}/pinned (#5893)Saturnino Abril2017-03-291-0/+23
|
* APIv4 post /channels/ids (#5845)Saturnino Abril2017-03-271-2/+35
| | | | | | * APIv4 post /channels/ids * updated enpoint as /teams/{team_id}/channels/ids
* Implement some channel endpoints for APIv4 (#5846)Joram Wilander2017-03-241-0/+91
| | | | | | | | | | * Add v4 endpoint for getting the channels on a team for a user * Implement PUT /channels/{channel_id}/patch endpoint for APIv4 * Implement POST /teams/{team_id}/channels/search endpoint for APIv4 * Update permission check
* Update channel permissions for v4 endpoints (#5829)Joram Wilander2017-03-221-21/+47
| | | | | | | | * Fix join channel permission for v4 endpoint * Allow regular users to get public channels they are not in * Fix unit test
* Fix compile error on master (#5813)Joram Wilander2017-03-201-1/+1
|
* Endpoint for APIv4 POST /channels/{channel_id}/members (#5775)Saturnino Abril2017-03-201-0/+46
|
* Merge branch 'release-3.7' into master.George Goldberg2017-03-171-3/+3
|\
| * PLT-5765 Passed SiteURL to SendNotifications (#5705)Harrison Healey2017-03-101-1/+1
| |
* | Implement some channel endpoints for APIv4 (#5767)Joram Wilander2017-03-161-1/+78
| |
* | APIv4 DELETE channels/{channel_id} (#5723)Saturnino Abril2017-03-141-0/+35
| |
* | add update channel endpoint for APIv4 (#5624)Carlos Tadeu Panato Junior2017-03-131-0/+89
| |
* | Endpoint for APIv4: GET /team/{team_id}/channels (#5681)Saturnino Abril2017-03-131-0/+22
|/
* Implement a few channel member endpoints for APIv4 (#5444)Joram Wilander2017-02-201-4/+92
| | | | | | | | * Implement POST /channels/members/{user_id}/view endpoint for APIv4 * Implement PUT /channels/{channel_id}/members/{user_id}/roles endpoint for APIv4 * Implement DELETE /channels/{channel_id}/members/{user_id} endpoint for APIv4
* Implement GET channels endpoints for APIv4 (#5363)Ruzette Tanyag2017-02-141-0/+70
| | | | | | | | | | | | * 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 a few channel member endpoints for APIv4 (#5304)Joram Wilander2017-02-071-0/+66
| | | | | | | | | | * Implement GET /channels/{channel_id}/members * Implement GET /channels/{channel_id}/members/{user_id} endpoint for APIv4 * Implement /users/{user_id}/teams/{team_id}/channels/members endpoint for APIv4 * Fix unit test
* Implement POST /channels/direct endpoint for APIv4 (#5283)Joram Wilander2017-02-031-0/+40
|
* Implement POST /channels endpoint for APIv4 (#5241)Joram Wilander2017-02-021-0/+45