summaryrefslogtreecommitdiffstats
path: root/api/channel_test.go
Commit message (Collapse)AuthorAgeFilesLines
* Renaming repoChristopher Speller2017-09-061-3/+3
|
* app type transition (#7167)Chris2017-09-061-12/+11
|
* PLT-6226 Fixing races with licensing (#7213)Corey Hulen2017-08-161-107/+107
| | | | | | | | | | * PLT-6226 Fixing races with licensing * Fixing build issue * Fixing licensing issue * removing commented code
* PLT-7206: Remove the "Delete Channel" option for private channels if you're ↵Jonathan2017-08-091-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | 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-6761 fixing unit tests (#6671)Corey Hulen2017-06-191-57/+57
|
* 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-6139 (Server): Private Channel member managing (#5941)George Goldberg2017-04-031-2/+220
| | | | Adds an EE policy feature to allow restricting system-wide which level of Admins can manage the membership of private channels.
* Merge branch 'release-3.7'George Goldberg2017-03-231-2/+88
|\
| * Fix policy application in team edition. (#5771)George Goldberg2017-03-151-2/+88
| |
* | Add pinned posts (#4217)Gabin Aureche2017-03-131-6/+27
|/
* Fix JS error when receiving reply during channel switch (#5582)Joram Wilander2017-03-031-1/+4
|
* PLT-3077 Add group messaging (#5489)Joram Wilander2017-03-021-0/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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)
* PLT-3193 Add channel notification preferences for push and email noti… (#5500)enahum2017-02-231-23/+56
| | | | | | | | | | | | | | | | * PLT-3193 Add channel notification preferences for push and email notifications * unit tests, model validation and localization * Feedback review * Adding back allowFromCache check * Setting push and email to use default settings * Move props as constants * address feedback
* Fix permission grants for channel management. (#5478)George Goldberg2017-02-211-0/+33
| | | | When selecting the Channel, Team & System level for channel permissions, they must be explicitly granted to the Channel *and* the Team admins.
* Implement POST /channels endpoint for APIv4 (#5241)Joram Wilander2017-02-021-2/+4
|
* Move permissions code into app package (#5146)Joram Wilander2017-01-231-1/+2
| | | | | | * Move permissions code into app package * Revert getPosts permission
* PLT-2978: Add channel purpose change system message. (#5094)George Goldberg2017-01-171-0/+11
| | | Completes original patch by David Lu.
* PLT-4938 Add app package and move logic over from api package (#4931)Joram Wilander2017-01-131-3/+4
| | | | | | | | | | * 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/+73
| | | Implements API reference proposal mattermost-api-reference:#66.
* PLT-5073 Improve performance of /channels/view endpoint (#4881)Joram Wilander2016-12-231-2/+2
| | | | | | * Improve performance of /channels/view endpoint * Fix store unit test
* PLT-5080 (Server): Channel-Admin level permissions (#4874)George Goldberg2016-12-221-0/+106
| | | | 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/+37
|
* PLT-5012 Combine updateLastViewedAt, setLastViewedAt and setActiveChannel ↵Joram Wilander2016-12-211-2/+44
| | | | | | | | into a single API (#4840) * Combine updateLastViewedAt, setLastViewedAt and setActiveChannel into a single API * Remove preference DB writes
* PLT-4990 - Server: Split out channel permissions to Create/Manage/Delete (#4864)George Goldberg2016-12-211-8/+16
| | | | | | * Server side changes. * Fix unit tests and default config.
* Fix API Get channels for a user returns users' dm channels with blank teamid ↵Carlos Tadeu Panato Junior2016-12-201-1/+12
| | | | | | | | | | | | | | | | | | (#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-2/+12
|
* GH-4685 Post a System Message when channel is renamed (#4762)Nick Frazier2016-12-201-0/+26
| | | | | | | | | | * test changes * added system message when displayname changed * added test * gofmt
* PLT-4767 Implement MFA Enforcement (#4662)Joram Wilander2016-12-121-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Create MFA setup page and remove MFA setup from account settings modal * Add enforce MFA to system console and force redirect * Lockdown mfa required API routes, add localization, other changes * Minor fixes * Fix typo * Fix some unit tests * Fix more unit tests * Minor fix * Updating UI for MFA screen (#4670) * Updating UI for MFA screen * Updating styles for MFA page * Add the ability to switch between email/sso with MFA enabled * Added mfa change email * Minor UI updates for MFA enforcement * Fix unit test * Fix client unit test * Allow switching email to ldap and back when MFA is enabled * Fix unit test * Revert config.json
* Add API call to get a channel by its name (#4700)Carlos Tadeu Panato Junior2016-12-111-0/+28
| | | | | | | | | | | | * add api for getByChannelName * add tests * fix test * rename and tests * check for permissions and test
* PLT-3736 Fixed duplicated create_direct api calls not returning the ↵Harrison Healey2016-12-091-7/+10
| | | | | | | | existing channel (#4745) * Fixed duplicated create_direct api calls not returning the existing channel * Added unit tests for duplicated create_direct api calls
* PLT-4403 Add server-based channel autocomplete, search and paging (#4585)Joram Wilander2016-11-241-13/+194
| | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Added small delay to TestUpdateChannelHeader (#4478)Harrison Healey2016-11-071-0/+2
|
* Increase Channel Purpose length to 250, and add channel field length ↵Christopher Speller2016-11-041-1/+1
| | | | | | | | | | | | | | | | handling code to the slack importer (#4458) * Increase Channel Purpose length to 250. This commit increases the maxmimum length of the channel purpose field to 250, including the database migration necessary. It also adds a method to the Slack importer to check the lengths of channel properties before importing, and truncate them if necessary. Fixes #4168 * Fix database migration.
* PLT-4430 improve slow channel switching (#4331)enahum2016-10-271-20/+36
| | | | | | | | | | * 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
* Merging performance branch into master (#4268)Joram Wilander2016-10-191-107/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-4087 added extra fields to Props in header update system message (#4209)Alexander Smaga2016-10-131-0/+9
|
* Modifying permissions system. (#3897)Christopher Speller2016-09-131-3/+24
|
* Do not send push notifications for channels being actively viewed (#3931)Joram Wilander2016-09-021-1/+1
|
* Merge release 3.2 into master (#3548)Harrison Healey2016-07-111-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-1465 Added password requirements (#3489)David Lu2016-07-061-2/+2
| | | | | | | | | | * Added password requirements * added tweaks * fixed error code * removed http.StatusNotAcceptable
* PLT-3346/PLT-3342/PLT-3360 EE: Add the ability to restrict channel ↵Joram Wilander2016-07-061-7/+405
| | | | | | | | management permissions (#3453) * EE: Add the ability to restrict channel management permissions * Always allow last user in a channel to delete that channel
* Fix channels showing up across teams when multiple teams open in same ↵Joram Wilander2016-06-151-0/+6
| | | | browser (#3329)
* PLT-2559 Always return successful when trying to join a channel that the ↵Harrison Healey2016-06-061-2/+30
| | | | | | | | | | 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-0/+4
|
* Allow system admins to update and delete channels (#3161)Joram Wilander2016-06-011-11/+54
|
* Check team member instead of session for team admin role when ↵Joram Wilander2016-05-161-0/+14
| | | | updating/deleting channels (#3007)
* PLT-2674 Private Group should not have Leave option when only one member ↵enahum2016-05-101-2/+4
| | | | remains (#2888)
* Multiple cross-team functionality fixes (#2902)Joram Wilander2016-05-061-2/+3
|
* PLT-2258 Unified login screen and related APIs (#2820)Harrison Healey2016-05-031-7/+7
| | | | | | | | | | | | | | | | | | | | * Unified login screen and related APIs * Refactored login API call to be less convoluted * Removed LDAP login prompt from invite process * Fixed existing LDAP users being able to log in if LDAP was configured, but disabled * Gofmt * Future proofed login API * Updated login APIs based on feedback * Added additional auditing to login API * Actually removed loginById
* Fixing edit direct channel header (#2842)Christopher Speller2016-05-021-0/+14
|