summaryrefslogtreecommitdiffstats
path: root/api/user_test.go
Commit message (Collapse)AuthorAgeFilesLines
* Fixing profile image tag (#7435)Corey Hulen2017-09-191-2/+2
| | | | | | | | * Fixing profile image tag * Fixing unit test * Fixing unit test
* Renaming repoChristopher Speller2017-09-061-4/+4
|
* Adding jenkinsfile for new build server.Christopher Speller2017-09-061-10/+2
|
* app type transition (#7167)Chris2017-09-061-41/+41
|
* Revert "[PLT-7475] Add S3 region to system console and add S3 validation ↵Saturnino Abril2017-09-061-6/+6
| | | | | | | | (#7373)" (#7387) This reverts commit 8d680cf64ec7fb6c8b242b8048989d0f0550cb68. Move to 4.3. Will discuss more if validation is necessary.
* [PLT-7475] Add S3 region to system console and add S3 validation (#7373)Saturnino Abril2017-09-061-6/+6
| | | | | | | | | | * add S3 region to system console and add S3 validation * update translation message * add bool as return value to Validate* functions * update Validate* functions to be pure
* set to default value with config is missing (#7320)Saturnino Abril2017-08-301-9/+9
|
* PLT-6226 Fixing races with licensing (#7213)Corey Hulen2017-08-161-10/+10
| | | | | | | | | | * PLT-6226 Fixing races with licensing * Fixing build issue * Fixing licensing issue * removing commented code
* Allow regions to be set and honored for S3 driver. (#7010)Harshavardhana2017-07-311-2/+4
| | | | | | | | | This is necessary for certain users where GetBucketLocation API is disabled using IAM policies. There is a field AmazonS3Region which we need to re-purpose and use to support this properly. Fixes https://github.com/mattermost/platform/issues/6999
* PLT-6761 fixing unit tests (#6671)Corey Hulen2017-06-191-1/+1
|
* Support AWS Signature V2 for Mattermost for S3 storage. (#6462)Harshavardhana2017-05-301-4/+4
| | | | | | | Certain S3 compatible servers only use Legacy Signature (AWS Signature V2), current code only supports signature v4. This PR adds facility to click a button on the UI to enable legacy signature with S3 compatible servers.
* PLT-6471 Properly panic when translations can't be loaded (#6414)Harrison Healey2017-05-231-1/+1
| | | | | | | | | | * PLT-6471 Properly panic when translations can't be loaded * Print usage messages when errors occur during CLI initialization * Reverted behaviour of FindDir and added second return value to it * Fixed merge conflict
* Creating common token store and moving email invites and verification to it ↵Christopher Speller2017-04-271-30/+28
| | | | (#6213)
* Revert "Usernames must start with a letter (#5581)"Christopher Speller2017-04-181-44/+38
| | | | This reverts commit 2e911b77c3386833f8f0cea82c7b6b3e5583a08e.
* 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
* Implement POST /users/search endpoint for APIv4 (#5822)Joram Wilander2017-03-231-0/+53
| | | | | | | | | | * Implement POST /users/search endpoint for APIv4 * PLT-2713 Added store functions for searching users that don't have a team * PLT-2713 Added 'without_team' option when searching users * PLT-2713 Added 'without_team' option when searching users (v4)
* improvements for inbucket email test and re-enable Email mention test (#5647)Carlos Tadeu Panato Junior2017-03-111-8/+21
| | | | Now if we dont get the mailbox to check the email we try 5 times, if still no message we disable the email verification.
* Usernames must start with a letter (#5581)Joram Wilander2017-03-031-38/+44
|
* Reload license from DB for all cluster app servers (#5525)Joram Wilander2017-02-281-6/+9
| | | | | | * Reload license from DB for all cluster app servers * Increase test timeout
* Adding device Id for version 2 of native apps (#5505)Corey Hulen2017-02-231-0/+31
| | | | | | * Adding device Id for version 2 * Changing ids
* Implement APIv4 infrastructure (#5191)Joram Wilander2017-01-301-1/+1
| | | | | | * Implement APIv4 infrastructure * Update parameter requirement functions per feedback
* More app code migration (#5170)Joram Wilander2017-01-251-26/+1
| | | | | | | | * Migrate admin functions into app package * More user function refactoring * Move post functions into app package
* Move permissions code into app package (#5146)Joram Wilander2017-01-231-58/+90
| | | | | | * Move permissions code into app package * Revert getPosts permission
* Migrate functions to app package (#5106)Joram Wilander2017-01-191-2/+2
| | | | | | | | | | | | | | | | | | * 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
* Add inbucket docker image to allow local and automated testing of emails (#4901)Carlos Tadeu Panato Junior2017-01-171-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | * add docker container for inbucket * Add way to get the emails using inbucket and add a test for reset password * add config setting to send emails * update TestEmailTest update * add another test and fix wrong assert * update per review fix lint change senders email * Revert config.json to default values for EmailSettings section * update test * add setup to make the test run
* Refactor and migrate more functions out of api into app package (#5063)Joram Wilander2017-01-131-21/+5
|
* PLT-4938 Add app package and move logic over from api package (#4931)Joram Wilander2017-01-131-39/+40
| | | | | | | | | | * 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
* Adding Etag to user profile pictures. (#4926)Christopher Speller2017-01-031-1/+9
|
* Add API call to get a user by their email address (#4884)Carlos Tadeu Panato Junior2016-12-281-0/+33
| | | | | | * Add API call to get a user by their email address * update per review
* Don't autocomplete users by email (#4896)Joram Wilander2016-12-261-0/+9
|
* PLT-4767 Implement MFA Enforcement (#4662)Joram Wilander2016-12-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Improving command line interface (#4689)Christopher Speller2016-12-061-5/+2
|
* PLT-4710 User search now obeys privacy settings (#4673)Joram Wilander2016-12-021-0/+137
| | | | | | * Consider privacy settings in user search * Add sysadmin as exception to privacy settings for user search
* PLT-4697 Update channel switcher to autocomplete all users on the system (#4624)Joram Wilander2016-11-291-0/+38
| | | | | | * Add autocomplete API for system-wide users * Update channel switcher to autocomplete all users on the system
* PLT-3762 - Add API call to get a user by their username (#4611)Carlos Tadeu Panato Junior2016-11-211-0/+39
| | | | | | | | | | | | | | * PLT-3762 - Add API call to get a user by their username * fix lint * update rote * update per code review * update per code review * remove first/last name is not used in this test
* PLT-4524 Update password reset page (#4522)Carlos Tadeu Panato Junior2016-11-171-5/+10
| | | | | | | | | | | | | | | | * Implement PLT-4524 Update password reset page * fix lints * changes based on review * update per request/review * update tests * add css for alert-success * change per request
* Deauthenticate websockets and set status to offline when user account ↵Joram Wilander2016-11-151-1/+14
| | | | deactivated (#4551)
* Increase unit test coverage of api/user.go (#4541)Raphaël Bournhonesque2016-11-141-0/+45
| | | | | | * Add test to CheckUserDomain * Add unit test to IsUsernameTaken
* Update user search to match against username, full name, nickname and email ↵Joram Wilander2016-11-031-1/+0
| | | | (#4421)
* EE: PLT-4512 Show secret in addition to QR code when activating MFA (#4427)Joram Wilander2016-11-031-3/+3
| | | | | | | | * EE: Update MFA to display secret for manual entry * Width adjustments for secret (#4423) * Add unit test
* PLT-4535/PLT-4503 Fix inactive users in searches and add option ↵Joram Wilander2016-11-021-10/+48
| | | | | | | | | | | | | | functionality to DB user search (#4413) * Add options to user database search * Fix inactive users showing up incorrectly in some user searches * Read JSON for searchUsers API into anonymous struct * Move anonymous struct to be a normal struct in model directory and upadte client to use it * Added clarification comment about slightly odd query condition in search
* Prevent system_admin role mistake (#4405)Christopher Speller2016-11-011-0/+4
|
* PLT-3562 Switch websocket over to post-connect authentication (#4327)Joram Wilander2016-10-311-0/+5
| | | | | | | | | | | | * Switch websocket over to post-connect authentication * Add ability to specify token in websocket js driver, add unit tests * Temporarily disable client websocket tests until issues are resolved * Minor refactoring and fix status test * Add isAuthenticated method to WebConn and minor status updates
* Moving away from goamz to use minio-go instead. (#4193)Harshavardhana2016-10-261-19/+22
| | | | | | | | | | | | | minio-go does fully managed way of handling S3 API requests - Automatic bucket location management across all s3 regions. - Transparently upload large files in multipart if file 64MB or larger. - Right GetObject() API provides compatibility with io.ReadWriteSeeker interface. - Various other APIs including bulk deletes, server side object copy, bucket policies and bucket notifications. Fixes #4182
* Merging performance branch into master (#4268)Joram Wilander2016-10-191-24/+414
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* PLT-3734 Cleaning up shouldSendEvent function (#4024)enahum2016-09-271-1/+1
| | | | | | * PLT-3734 Cleaning up shouldSendEvent function * Fix LHS unread highlight and jewel mentions
* Fixing update roles API (#4060)Christopher Speller2016-09-221-115/+31
|
* Update getUser API and add it to the JS driver (#4020)Joram Wilander2016-09-141-3/+47
|
* Modifying permissions system. (#3897)Christopher Speller2016-09-131-11/+11
|
* PLT-3766 Change LDAP references to AD/LDAP in the UI (#3925)Jason Blais2016-09-061-3/+3
|