summaryrefslogtreecommitdiffstats
path: root/api/channel.go
Commit message (Collapse)AuthorAgeFilesLines
* PLT-4716 fixes cache invalidation issue (#4518)Corey Hulen2016-11-101-0/+2
| | | | | | | | | | * PLT-4716 fixes cache invalidation issue * Adding missing interface * Adding cache invalidation to channel notification preferences * Adding cache invalidation to channel notification preferences
* PLT-4665 Fix Max Channels limit wrong count (#4512)enahum2016-11-101-1/+1
|
* PLT-4430 improve slow channel switching (#4331)enahum2016-10-271-1/+12
| | | | | | | | | | * PLT-4430 improve slow channel switching * Update client side unit tests * Convert getChannelsUnread to getMyChannelMembers and address other feedback * Pull channel members on websocket reconnect
* HW 4139: Make channel limits configurable in the System Console (#4154)S4KH2016-10-211-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | * Auto Changes * 4139 Made channel limits configurable in the System Console as described in the issue * Removed error message entries from other locales, made maxChannelsPerteam type to pointer * Added * symbol to maxChannelsPerTeam inside isValid function * Update team_test.go * Restored to old test * Checked maximum number channels per team when creating channel * Fixed code to pass api/channel_test.go * Reverted changes on config except MaxChannelsPerTeam * Update channel.go * Ran gofmt -w . * Reverted vendor directoy
* Merging performance branch into master (#4268)Joram Wilander2016-10-191-49/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * improve performance on sendNotifications * Fix SQL queries * Remove get direct profiles, not needed anymore * Add raw data to error details if AppError fails to decode * men * Fix decode (#4052) * Fixing json decode * Adding unit test * Initial work for client scaling (#4051) * Begin adding paging to profiles API * Added more paging functionality * Finish hooking up admin console user lists * Add API for searching users and add searching to all user lists * Add lazy loading of profiles * Revert config.json * Fix unit tests and some style issues * Add GetProfilesFromList to Go driver and fix web unit test * Update etag for GetProfiles * Updating ui for filters and pagination (#4044) * Updating UI for pagination * Adjusting margins for filter row * Adjusting margin for specific modals * Adding relative padding to system console * Adjusting responsive view * Update client user tests * Minor fixes for direct messages modal (#4056) * Remove some unneeded initial load calls (#4057) * UX updates to user lists, added smart counts and bug fixes (#4059) * Improved getExplicitMentions and unit tests (#4064) * Refactor getting posts to lazy load profiles correctly (#4062) * Comment out SetActiveChannel test (#4066) * Profiler cpu, block, and memory profiler. (#4081) * Fix TestSetActiveChannel unit test (#4071) * Fixing build failure caused by dependancies updating (#4076) * Adding profiler * Fix admin_team_member_dropdown eslint errors * Bumping session cache size (#4077) * Bumping session cache size * Bumping status cache * Refactor how the client handles channel members to be large team friendly (#4106) * Refactor how the client handles channel members to be large team friendly * Change Id to ChannelId in ChannelStats model * Updated getChannelMember and getProfilesByIds routes to match proposal * Performance improvements (#4100) * Performance improvements * Fixing re-connect issue * Fixing error message * Some other minor perf tweaks * Some other minor perf tweaks * Fixing config file * Fixing buffer size * Fixing web socket send message * adding some error logging * fix getMe to be user required * Fix websocket event for new user * Fixing shutting down * Reverting web socket changes * Fixing logging lvl * Adding caching to GetMember * Adding some logging * Fixing caching * Fixing caching invalidate * Fixing direct message caching * Fixing caching * Fixing caching * Remove GetDirectProfiles from initial load * Adding logging and fixing websocket client * Adding back caching from bad merge. * Explicitly close go driver requests (#4162) * Refactored how the client handles team members to be more large team friendly (#4159) * Refactor getProfilesForDirectMessageList API into getAllProfiles API * Refactored how the client handles team members to be more large team friendly * Fix js error when receiving a notification * Fix JS error caused by current user being overwritten with sanitized version (#4165) * Adding error message to status failure (#4167) * Fix a few bugs caused by client scaling refactoring (#4170) * When there is no read replica, don't open a second set of connections to the master database (#4173) * Adding connection tacking to stats (#4174) * Reduce DB writes for statuses and other status related changes (#4175) * Fix bug preventing opening of DM channels from more modal (#4181) * Fixing socket timing error (#4183) * Fixing ping/pong handler * Fixing socket timing error * Commenting out status broadcasting * Removing user status changes * Removing user status changes * Removing user status changes * Removing user status changes * Adding DoPreComputeJson() * Performance improvements (#4194) * * Fix System Console Analytics queries * Add db.SetConnMaxLifetime to 15 minutes * Add "net/http/pprof" for profiling * Add FreeOSMemory() to manually release memory on reload config * Add flag to enable http profiler * Fix memory leak (#4197) * Fix memory leak * removed unneeded nil assignment * Fixing go routine leak (#4208) * Merge fixes * Merge fix * Refactored statuses to be queried by the client rather than broadcast by the server (#4212) * Refactored server code to reduce status broadcasts and to allow getting statuses by IDs * Refactor client code to periodically fetch statuses * Add store unit test for getting statuses by ids * Fix status unit test * Add getStatusesByIds REST API and move the client over to use that instead of the WebSocket * Adding multiple threads to websocket hub (#4230) * Adding multiple threads to websocket hub * Fixing unit tests * Fixing so websocket connections from the same user end up in the same… (#4240) * Fixing so websocket connections from the same user end up in the same list * Removing old comment * Refactor user autocomplete to query the server (#4239) * Add API for autocompleting users * Converted at mention autocomplete to query server * Converted user search autocomplete to query server * Switch autocomplete API naming to use term instead of username * Split autocomplete API into two, one for channels and for teams * Fix copy/paste error * Some final client scaling fixes (#4246) * Add lazy loading of profiles to integration pages * Add lazy loading of profiles to emoji page * Fix JS error when receiving post in select team menu and also clean up channel store
* GH-4187 Create direct channel during incoming webhook if not exists (#4206)Alexander Smaga2016-10-171-20/+3
|
* GH-4087 added extra fields to Props in header update system message (#4209)Alexander Smaga2016-10-131-0/+5
|
* PLT-3734 Cleaning up shouldSendEvent function (#4024)enahum2016-09-271-6/+16
| | | | | | * PLT-3734 Cleaning up shouldSendEvent function * Fix LHS unread highlight and jewel mentions
* Message is displayed when user joins Off_Topic (#4067)Ryan Wang2016-09-261-8/+19
|
* Modifying permissions system. (#3897)Christopher Speller2016-09-131-87/+58
|
* Do not send push notifications for channels being actively viewed (#3931)Joram Wilander2016-09-021-1/+15
|
* PLT-3462 Add the ability to clear push notifications after channel is viewed ↵Joram Wilander2016-08-311-0/+16
| | | | | | | | (#3834) * Add the ability to clear push notifications after channel is viewed * Fix race condition between updating the mention count and reading it when sending push notifications
* Revert/Fix PLT-2805 (#3873)David Lu2016-08-291-4/+13
|
* Refactored CreatePost to not use context (#3813)David Lu2016-08-191-3/+16
|
* PLT-3754 EE: Add a Display Option to disable Join/Leave messages (#3808)enahum2016-08-181-28/+38
| | | | | | | | * PLT-3754 EE: Add a Display Option to disable Join/Leave messages * Differentiate between join/leave add/remove messages * Update user removed from channel text message
* PLT-3366 Holding down the ALT key and clicking on a message adds a new ↵samogot2016-07-141-0/+29
| | | | messages indicator (squashed) (#3374)
* Added infrastructure for basic WebSocket API (#3432)Joram Wilander2016-07-121-5/+5
|
* Merge release 3.2 into master (#3548)Harrison Healey2016-07-111-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Bumping version to: 3.2.0-rc1 * PLT-2863 fixing bad merge that broke this PR (#3523) * PLT-2863 adding remove user from team * PLT-2863 adding the client side UI * Fixing trailing space * Fixing reported issues * Adding documentatino * Switching to final javascript driver * Fixing bad merge * Fixing bad merge * PLT-3538 Fix Login page doesn't show SAML option if gitlab is enabled (#3524) * Login error messages fix (#3525) * daily translations 20160708 (#3533) * Fixed permissions when getting a file attachment to use the correct user id (#3535) * PLT-3575 Fix Cannot upload certificates with .cer file extension on SAML (#3534) * PLT-3560 blocking adding to channel once user is removed (#3537) * Always allow system admins to see the Integrations sidebar (#3536) * Plt 3475 - Post control improvements (#3538) * Adding class to post when dropdown is active. * plt-3475 - Post controls improvements * daily translations 20160711 (#3544)
* PLT-3346/PLT-3342/PLT-3360 EE: Add the ability to restrict channel ↵Joram Wilander2016-07-061-13/+60
| | | | | | | | management permissions (#3453) * EE: Add the ability to restrict channel management permissions * Always allow last user in a channel to delete that channel
* Only check team Id in getChannel for non-DMs (#3382)Joram Wilander2016-06-201-1/+1
|
* Fix channels showing up across teams when multiple teams open in same ↵Joram Wilander2016-06-151-0/+5
| | | | browser (#3329)
* PLT-2559 Always return successful when trying to join a channel that the ↵Harrison Healey2016-06-061-0/+5
| | | | | | | | | | user is already a member of (#3265) * Added unit tests for SqlChannelStore.GetMember * Fixed api routes for accessing channels by name when the name includes an underscore * Changed join channel API to always return successful when the user is already a member of the channel
* Don't allow users to be added to a channel they are not in the team of (#3246)Joram Wilander2016-06-041-2/+9
|
* Allow system admins to update and delete channels (#3161)Joram Wilander2016-06-011-12/+2
|
* Move away from the "andForget" style of function (#3046)Thomas Balthazar2016-05-181-48/+45
| | | | | This is the second and last part of the refactoring. First part is documented here: https://github.com/mattermost/platform/pull/3043
* Check team member instead of session for team admin role when ↵Joram Wilander2016-05-161-2/+13
| | | | updating/deleting channels (#3007)
* PLT-2674 Private Group should not have Leave option when only one member ↵enahum2016-05-101-0/+11
| | | | remains (#2888)
* Add separator between DMs on your team and not (#2910)Joram Wilander2016-05-061-0/+4
|
* Multiple cross-team functionality fixes (#2902)Joram Wilander2016-05-061-1/+5
|
* Fixing edit direct channel header (#2842)Christopher Speller2016-05-021-12/+5
|
* Don't return error if already part of channel being joined (#2814)Joram Wilander2016-04-281-2/+11
|
* Add websocket event and cache invalidation for deleting channels (#2807)Joram Wilander2016-04-271-8/+14
|
* Fixing permalinks to channels your not a memeber of (#2805)Christopher Speller2016-04-271-21/+44
|
* PLT-2057 User as a first class object (#2648)Corey Hulen2016-04-211-51/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Adding TeamMember to system * Fixing all unit tests on the backend * Fixing merge conflicts * Fixing merge conflict * Adding javascript unit tests * Adding TeamMember to system * Fixing all unit tests on the backend * Fixing merge conflicts * Fixing merge conflict * Adding javascript unit tests * Adding client side unit test * Cleaning up the clint side tests * Fixing msg * Adding more client side unit tests * Adding more using tests * Adding last bit of client side unit tests and adding make cmd * Fixing bad merge * Fixing libraries * Updating to new client side API * Fixing borken unit test * Fixing unit tests * ugg...trying to beat gofmt * ugg...trying to beat gofmt * Cleaning up remainder of the server side routes * Adding inital load api * Increased coverage of webhook unit tests (#2660) * Adding loading ... to root html * Fixing bad merge * Removing explicit content type so superagent will guess corectly (#2685) * Fixing merge and unit tests * Adding create team UI * Fixing signup flows * Adding LDAP unit tests and enterprise unit test helper (#2702) * Add the ability to reset MFA from the commandline (#2706) * Fixing compliance unit tests * Fixing client side tests * Adding open server to system console * Moving websocket connection * Fixing unit test * Fixing unit tests * Fixing unit tests * Adding nickname and more LDAP unit tests (#2717) * Adding join open teams * Cleaning up all TODOs in the code * Fixing web sockets * Removing unused webockets file * PLT-2533 Add the ability to reset a user's MFA from the system console (#2715) * Add the ability to reset a user's MFA from the system console * Add client side unit test for adminResetMfa * Reorganizing authentication to fix LDAP error message (#2723) * Fixing failing unit test * Initial upgrade db code * Adding upgrade script * Fixing upgrade script after running on core * Update OAuth and Claim routes to work with user model changes (#2739) * Fixing perminant deletion. Adding ability to delete all user and the entire database (#2740) * Fixing team invite ldap login call (#2741) * Fixing bluebar and some img stuff * Fix all the different file upload web utils (#2743) * Fixing invalid session redirect (#2744) * Redirect on bad channel name (#2746) * Fixing a bunch of issue and removing dead code * Patch to fix error message on leave channel (#2747) * Setting EnableOpenServer to false by default * Fixing config * Fixing upgrade * Fixing reported bugs * Bug fixes for PLT-2057 * PLT-2563 Redo password recovery to use a database table (#2745) * Redo password recovery to use a database table * Update reset password audits * Split out admin and user reset password APIs to be separate * Delete password recovery when user is permanently deleted * Consolidate password resetting into a single function * Removed private channels as an option for outgoing webhooks (#2752) * PLT-2577/PLT-2552 Fixes for backstage (#2753) * Added URL to incoming webhook list * Fixed client functions for adding/removing integrations * Disallowed slash commands without trigger words * Fixed clientside handling of errors on AddCommand page * Minor auth cleanup (#2758) * Changed EditPostModal to just close if you save without making any changes (#2759) * Renamed client -> Client in async_client.jsx and fixed eslint warnings (#2756) * Fixed url in channel info modal (#2755) * Fixing reported issues * Moving to version 3 of the apis * Fixing command unit tests (#2760) * Adding team admins * Fixing DM issue * Fixing eslint error * Properly set EditPostModal's originalText state in all cases (#2762) * Update client config check to assume features is defined if server is licensed (#2772) * Fixing url link * Fixing issue with websocket crashing when sending messages to different teams
* Fixing IE expire issue=Corey Hulen2016-02-111-2/+0
|
* PLT-1900 removing lang from preview and making spanish beta=Corey Hulen2016-02-081-6/+6
|
* PLT-7: Refactoring stores to use translations (chunk 7)Elias Nahum2016-01-251-1/+1
| | | | - Add spanish translations
* Refactoring api to use translations (chunk 1)Elias Nahum2016-01-211-44/+45
| | | | | | | | - Add spanish translations - Files in order by name from admin to export - Does not include api templates and tests - Fix web_test to load translations - Fix i18n to fallback to DEFAULT_LOCALE if no system locale found
* Revert " PLT-7 adding loc for db calls"Corey Hulen2016-01-201-67/+65
|
* PLT-7 adding loc db calls for users table=Corey Hulen2016-01-201-8/+8
|
* PLT-7 adding loc db calls for oauth table=Corey Hulen2016-01-201-52/+54
|
* PLT-7 adding loc db calls for webhooks table=Corey Hulen2016-01-201-4/+4
|
* PLT-7 adding loc for db calls audits and prefs=Corey Hulen2016-01-201-1/+1
|
* Upgrade logging package=Corey Hulen2016-01-111-1/+1
|
* Added the ability to get more channel members from getChannelExtraInfohmhealey2016-01-061-3/+18
|
* PLT-1485 Adding last view channel sticky=Corey Hulen2016-01-051-0/+9
|
* Return 100 channel users in extra info callJoramWilander2015-12-071-1/+1
|
* PLT-1380: Post system message when user updates channel headerFlorian Orben2015-12-041-1/+33
|
* PLT-1326: Enable channel posts of type join or leave not trigger unread ↵Florian Orben2015-12-041-1/+1
| | | | notifications
* Allow admins to change the display name for the default channelReed Garmsen2015-11-131-3/+5
|