summaryrefslogtreecommitdiffstats
path: root/api/channel.go
Commit message (Collapse)AuthorAgeFilesLines
* MM-8708 Remove api package (#8784)Joram Wilander2018-05-161-843/+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
* Structured logging (#8673)Christopher Speller2018-04-271-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Reduce logging data races, fix MySQL test race condition (#7994)Chris2017-12-221-2/+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-1/+1
| | | | | | | | | | (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
* Performance improvements for 40M posts (#7708)Christopher Speller2017-10-251-10/+9
| | | | | | | | | | | | | | | | | | | | | | * 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
* Goroutine wranglin (#7556)Chris2017-10-031-1/+3
| | | | | | * goroutine wranglin * synchronize WebConn.WritePump
* PLT-7404 Return viewed at times in view channel API response (#7428)Joram Wilander2017-09-291-1/+1
| | | | | | | | * 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-34/+34
|
* Renaming repoChristopher Speller2017-09-061-3/+3
|
* app type transition (#7167)Chris2017-09-061-60/+60
|
* Api: NewLocAppError -> NewAppError (#7280)George Goldberg2017-09-011-13/+9
|
* PLT-5745 Cleaning up duplicate calls (#7298)Corey Hulen2017-08-281-3/+3
| | | | | | | | * 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-14/+5
| | | | | | | | | | | | | | | | | | | | | | | | 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-7092 Fixed creation of PostList with null Posts fields (#6924)Harrison Healey2017-07-131-3/+2
|
* Forward port 3.8.1 changes that missed master (#6362)Joram Wilander2017-05-091-1/+1
|
* 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-8/+8
| | | | | | | | | | | | | | | | * 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
* Merge branch 'release-3.7' into master.George Goldberg2017-03-171-8/+8
|\
| * PLT-5765 Passed SiteURL to SendNotifications (#5705)Harrison Healey2017-03-101-8/+8
| |
* | Add pinned posts (#4217)Gabin Aureche2017-03-131-0/+16
|/
* Fix JS error when receiving reply during channel switch (#5582)Joram Wilander2017-03-031-0/+4
|
* PLT-3077 Add group messaging (#5489)Joram Wilander2017-03-021-2/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Implement server changes for group messaging * Majority of client-side implementation * Some server updates * Added new React multiselect component * Fix style issues * Add custom renderer for options * Fix model test * Update ENTER functionality for multiselect control * Remove buttons from multiselect UI control * Updating group messaging UI (#5524) * Move filter controls up a component level * Scroll with arrow keys * Updating mobile layout for multiselect (#5534) * Fix race condition when backspacing quickly * Hidden or new GMs show up for regular messages * Add overriding of number remaining text * Add UI filtering for team if config setting set * Add icon to channel switcher and class prop to status icon * Minor updates per feedback * Improving group messaging UI (#5563) * UX changes per feedback * Update email for group messages * UI fixes for group messaging (#5587) * Fix missing localization string * Add maximum users message when adding members to GM * Fix input clearing on Android * Updating group messaging UI (#5603) * Updating UI for group messaging (#5604)
* Implement a few channel member endpoints for APIv4 (#5444)Joram Wilander2017-02-201-15/+2
| | | | | | | | * 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
* Increase performance when receiving messages (#5375)Joram Wilander2017-02-131-10/+0
|
* Implement POST /channels endpoint for APIv4 (#5241)Joram Wilander2017-02-021-30/+1
|
* PLT-5225 Added separate post types for certain system messages (#5193)Harrison Healey2017-01-271-3/+2
| | | | | | | | | | | | * Added separate post types for system_join_leave and system_add_remove posts * Added username prop to channel deleted posts * Changed slack import to properly generate the new join/leave messages * Added username prop to channel update posts * Moved Post(AddTo/RemoveFrom)ChanneMessage into app package
* Move permissions code into app package (#5146)Joram Wilander2017-01-231-21/+42
| | | | | | * Move permissions code into app package * Revert getPosts permission
* Migrate functions to app package (#5106)Joram Wilander2017-01-191-508/+264
| | | | | | | | | | | | | | | | | | * Refactor and move session logic into app package * Refactor email functions into the app package * Refactor password update into app package * Migrate user functions to app package * Move team functions into app package * Migrate channel functions into app package * Pass SiteURL through to app functions * Update based on feedback
* PLT-2978: Add channel purpose change system message. (#5094)George Goldberg2017-01-171-0/+5
| | | Completes original patch by David Lu.
* Refactor and migrate more functions out of api into app package (#5063)Joram Wilander2017-01-131-161/+25
|
* PLT-4938 Add app package and move logic over from api package (#4931)Joram Wilander2017-01-131-245/+88
| | | | | | | | | | * 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-5050 (Server). API to update channel member roles. (#5043)George Goldberg2017-01-131-0/+47
| | | Implements API reference proposal mattermost-api-reference:#66.
* PLT-5079 fixing archiving channel not being removed (#5000)Corey Hulen2017-01-061-26/+21
|
* Fix bad merge causing unread update issue (#4966)Joram Wilander2017-01-041-0/+1
|
* Removing un-needed go func (#4939)Corey Hulen2017-01-031-8/+6
|
* Adding memcache to getchannel (#4928)Christopher Speller2017-01-031-10/+14
|
* Fix join message sometimes not appearing (#4909)Joram Wilander2016-12-281-4/+4
|
* PLT-5073 Improve performance of /channels/view endpoint (#4881)Joram Wilander2016-12-231-37/+34
| | | | | | * Improve performance of /channels/view endpoint * Fix store unit test
* PLT-5080 (Server): Channel-Admin level permissions (#4874)George Goldberg2016-12-221-2/+2
| | | | Adds permissions for manage/delete public/private channels at the Channel Admin level.
* API for getting channel members by IDs. (#4877)George Goldberg2016-12-221-0/+25
|
* PLT-5012 Combine updateLastViewedAt, setLastViewedAt and setActiveChannel ↵Joram Wilander2016-12-211-100/+68
| | | | | | | | into a single API (#4840) * Combine updateLastViewedAt, setLastViewedAt and setActiveChannel into a single API * Remove preference DB writes
* Fix API Get channels for a user returns users' dm channels with blank teamid ↵Carlos Tadeu Panato Junior2016-12-201-2/+5
| | | | | | | | | | | | | | | | | | (#4748) * fix API Get channels for a user returns users' dm channels with blank team ID add check in the context.go add suggestion made adjustment per review and support from @joram * update tests * add check if needd user or admin permissions * update per review
* Prevent accidental removal of user from town square (#4842)Joram Wilander2016-12-201-6/+9
|
* GH-4685 Post a System Message when channel is renamed (#4762)Nick Frazier2016-12-201-0/+33
| | | | | | | | | | * test changes * added system message when displayname changed * added test * gofmt
* Adding metrics for caching mechanisms (#4828)Christopher Speller2016-12-191-4/+4
|
* PLT-4167 Team Sidebar (#4569)enahum2016-12-191-6/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PLT-4167 Team Sidebar * Address feedback from PM * change route from my_members to members * bug fixes * Updating styles for teams sidebar (#4681) * Added PM changes * Fix corner cases * Addressing feedback * use two different endpoints * Bug fixes * Rename model and client functions, using preferences to store last team and channel viewed * Fix mobile notification count and closing the team sidebar * unit test, fixed bad merge and retrieve from cached when available * bug fixes * use id for last channel in preferences, query optimization * Updating multi team css (#4830)
* Add API call to get a channel by its name (#4700)Carlos Tadeu Panato Junior2016-12-111-0/+32
| | | | | | | | | | | | * add api for getByChannelName * add tests * fix test * rename and tests * check for permissions and test
* Invalidate user channel members cache when creating a new channel (#4694)Joram Wilander2016-12-021-0/+2
|
* PLT-4403 Add server-based channel autocomplete, search and paging (#4585)Joram Wilander2016-11-241-5/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | * Add more channel paging API * Add channel paging support to client * Add DB channel search functions * Add API for searching more channels * Add more channel search functionality to client * Add API for autocompleting channels * Add channel autocomplete functionality to the client * Move to be deprecated APIs to their own file * Final clean-up * Fixes related to feedback * Localization changes * Add unit as suffix to timeout constants
* PLT-4429 disabling at_all at_channel metions mentions when channel has more ↵Corey Hulen2016-11-241-8/+7
| | | | | | | | | | | | than 1k users (#4627) * PLT-4429 disabling explicit mentions when channel has more than 1k users * Fixing test case * Adding setting to the admin console * Fixing bad translation