summaryrefslogtreecommitdiffstats
path: root/api4/channel.go
Commit message (Collapse)AuthorAgeFilesLines
* [APIv4] add getChannelMembersTimezone (#9286)Carlos Tadeu Panato Junior2018-10-131-1/+21
| | | | | | | | * add getChannelMembersTimezone * update per feedback review * add delimeter to error
* 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
* MM-11725: Add specific autocomplete endpoint for search autocomplete (#9337)Jesús Espino2018-09-111-0/+25
|
* MM-11649: Fix caching issue in channel API endpoints. (#9345)George Goldberg2018-09-061-4/+7
| | | | This fixes an issue where the cached Channel objects would contain data from a failed update when the update to the database failed.
* [MM-11593] Prevent user to remove from a direct channel (#9251)Saturnino Abril2018-08-211-0/+5
| | | | | | * prevent user to remove from a direct channel * only allow removing of a member in private or public channel
* MM-11516: Check channel ID in URL param and Body are same. (#9185)George Goldberg2018-07-311-0/+6
|
* Pr 9039 (#9187)Martin Kraft2018-07-301-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Remove unnecesary elses after return error (#9137)Jesús Espino2018-07-231-52/+72
|
* MM-11228: Fix channel update/patch API endpoints. (#9073)George Goldberg2018-07-101-20/+43
|
* MM-11118: disallow deleting direct or group channels (#9054)Jesse Hallam2018-07-051-0/+5
|
* MM-10833: send down computed channel props (#8953)Jesse Hallam2018-06-261-24/+83
| | | | | | | | | | | | | | | * MM-10833: send down computed channel props This allows channel headers to reference channel mentions for a client that doesn't already know about the channels in question. We intentionally don't send down the props for the autocomplete and search endpoints since they aren't used in that context, and would add unnecessary overhead. * update channel props on patch * revert to treating channel purpose as plaintext
* MM-9730 & MM-9729: Missing Server PRs (#8908)George Goldberg2018-06-051-0/+26
| | | | | | * MM-9730: API endpoint to update scheme-derived roles of TeamMembers. * MM-9729: API to update scheme-derived roles of ChannelMembers.
* Merge remote-tracking branch 'origin/master' into advanced-permissions-phase-2Martin Kraft2018-05-091-5/+3
|\
| * update permission of converting a channel from public to private to allow ↵Saturnino Abril2018-05-051-5/+3
| | | | | | | | team admin (#8723)
* | MM-10182 & MM-10183: Adds channel scheme and team scheme API endpoint. (#8680)Martin Kraft2018-05-021-0/+51
|/ | | | | | | | | | | | * MM-10183: Adds channel scheme API endpoint. MM-10182: Adds team scheme API endpoint. MM-10182_3: Switch from scheme_id in path to body. * MM-10182/MM-10183: Changes path from 'schemes' to 'scheme'. * MM-10182: Fix merge error.
* Structured logging (#8673)Christopher Speller2018-04-271-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Implementing structured logging * Changes to en.json to allow refactor to run. * Fixing global logger * Structured logger initalization. * Add caller. * Do some log redirection. * Auto refactor * Cleaning up l4g reference and removing dependancy. * Removing junk. * Copyright headers. * Fixing tests * Revert "Changes to en.json to allow refactor to run." This reverts commit fd8249e99bcad0231e6ea65cd77c32aae9a54026. * Fixing some auto refactor strangeness and typo. * Making keys more human readable.
* add api to convert a channel from public to private and restrict that to ↵Saturnino Abril2018-04-231-7/+41
| | | | system_admin (#8655)
* Fixing misspell errors (#8544)Jesús Espino2018-03-291-1/+1
|
* Merge branch 'advanced-permissions-phase-1'George Goldberg2018-03-271-0/+1
|\
| * Merge branch 'master' into advanced-permissions-phase-1George Goldberg2018-02-061-0/+22
| |\
| * | XYZ-37: Advanced Permissions Phase 1 Backend. (#8159)George Goldberg2018-02-061-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* | | post a system message after a channel is converted from public to private ↵Saturnino Abril2018-03-271-0/+8
| |/ |/| | | | | (#8501)
* | 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)