summaryrefslogtreecommitdiffstats
path: root/api4/user_test.go
Commit message (Collapse)AuthorAgeFilesLines
* MM-10254 Add plugin APIs for getting/updating user statuses (#9101)Joram Wilander2018-07-161-1/+1
| | | | | | | | * Add plugin APIs for getting/updating user statuses * Add and update tests * Updates per feedback
* Restore config after finisht the test case (#9085)Carlos Tadeu Panato Junior2018-07-111-3/+61
|
* MM-10980: Conditionally filteres User json properties. (#9018)Martin Kraft2018-06-291-1/+7
|
* Prototype for CBA (#8475)Corey Hulen2018-06-121-0/+52
| | | | | | | | | | | | | | * Prototype for CBA * Fixing gofmt issues * Do not require password if logging in with certificate * Fixing issues from feedback * Adding unit tests * Fixing feedback
* Relese5.0 merge master 20180608 (#8933)Carlos Tadeu Panato Junior2018-06-081-48/+136
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add missing diagnostics (#8911) * Update diagnostics.go * Update diagnostics.go * Fix push notification styling backwards compatibility (#8913) * MM-10803: remove premature user sanitization on deactivation (#8926) * remove unused UpdateNonSSOUserActive * MM-10803: stop prematurely sanitizing users on deactivate This change was preceded by the removal of UpdateNonSSOUserActive to ensure there are no APIs relying on the sanitized return value. * MM-10803: test websocket events after UpdateUserActive * MM-10264: Adds system scheme to permissions import/export. (#8924) * MM-10264: Adds system scheme to permissions import/export. * MM-10264: Switches to more likely unique name. * MM-10264: Changed collision prevention string. * MM-10264: Rolls back created schemes in all error cases. * MM-10264: Test fix for more rollback cases.
* Get the count of the all system users at endpoint /users/stats (#8847)lisakycho2018-06-071-20/+15
| | | | | | | | * Get the count of the all system users at endpoint /users/stats * Added GetTotalUsersStats test in api4 * Changed pluralization and added the test back.
* [MM-1915] Add Deactivate Account - server side (#8699)Carlos Tadeu Panato Junior2018-05-281-0/+15
|
* MM-10640 Set EnableUserCreation to true by default (#8815)Balasankar C2018-05-181-5/+5
| | | | | | | | | | | | | | * Set EnableUserCreation to true by default * Fix argument type to FormatBool * Convert EnableUserCreation instances to pointer * Convert to boolean in tests also * Set value of pointer to be false * Convert remaining EnableUserCreation instances to pointer
* MM-9779: Incorporate a Token into the invitations system (#8604)Jesús Espino2018-04-181-73/+64
| | | | | | | | | | | | | | | | | | | | * Incorporate a Token into the invitations system * Adding unit tests * Fixing some api4 client tests * Removing unnecesary hash validation * Change the Hash concept on invitations with tokenId * Not send invitation if it wasn't able to create the Token * Fixing some naming problems * Changing the hash query params received from the client side * Removed unneded data param in the token usage
* Fix error handling when requesting profile image for bad user ID (#8618)Joram Wilander2018-04-131-0/+3
|
* Timezone feature (#8185)Chris Duarte2018-03-221-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add supported timezones into config Remove Timezone list creation in favor of timezone from configs Add Timezone field to Users table Clean up format of SupportedTimezones in config * Remove unwanted change * Add test for updating user timezone * Add empty map[string]string if Timezone is null * Add EnableTimezoneSelection config * Revert back to map[string]string for ClientConfig * Refactor SupportedTimezones into timezones.json * Include timezones.json in TestConfigFlag * Add timezone api endpoint * Bump varchar size to 256 and setMaxSize in user_store * Refactor LoadConfig to LoadConfig and LoadTimezoneConfig * Remove unnecessary argument in LoadConfig, mail_test * Add test for timezone endpoint * Add license header * Refactor timezones endpoint to system.go * Add system base route to timezone endpoint * db timezone upgrade in db v4.9 * Avoid saving SupportedTimezones to config.json * Add timezonePath support in config * Remove EnableTimezoneSelection from config * Use return statement without return parameter * Refactor test for SupportedTimezones * Check for supportedTimezone != nil instead of using len * Decouple SupportedTimezones out of Config * Fix failing test * Add LastTeamIconUpdate back in upgrade.go * Write timezone config in config_flag_test * Add code fallback for default timezone support
* MM-9274- Sort Users in Channel by status (#8181)Stephen Kiers2018-03-091-0/+143
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * sort by lastActivity * added status ordering to Users * sort offline before dnd * remove data not needed * added seperate call for when order=‘status’ is on GetUser request * remove PrintLn * styling fix * remove mistake * mistake 2 * better comment * explicit if statemnt * writing tests * removed manually added mocks * generated mock * ICU-668 Added unit tests * style fix * sort by lastActivity * added status ordering to Users * sort offline before dnd * remove data not needed * added seperate call for when order=‘status’ is on GetUser request * remove PrintLn * styling fix * remove mistake * mistake 2 * better comment * explicit if statemnt * writing tests * removed manually added mocks * generated mock * ICU-668 Added unit tests * style fix * reverse dnd and offline * Fixed app.SaveStatusAndBroadcast * Fixed incorrect merge * Fixing incorrect merge again
* Eliminate utils.SetLicense calls (#8217)Chris2018-02-071-49/+4
| | | | | | | | | | * eliminate utils.SetLicense calls * test fix * another test fix * more test fixes
* Finally remove utils.Cfg (#8113)Chris2018-01-171-44/+40
| | | | | | | | * finally remove utils.Cfg * fix compile error * another test compilation fix
* [PLT-7793] Add /users/tokens/search endpoint (#8088)Adrian Carolli2018-01-111-0/+46
| | | | | | | | * Add /users/tokens/search endpoint + tests * Fix check-style * Unnecessary deletion
* [PLT-7793] Added /users/tokens endpoint (#8038)Adrian Carolli2018-01-051-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added /users/tokens/all endpoint - UserAccessStore now has getAll method - Added tests - Added route - Added handler * Remove space fix check-style * Remove blank space check-style * Fixes for make check-style * Remove extra code that is un-needed in user_test.go * Rename endpoint + grammar - Renamed /users/tokens/all to /users/tokens - Renamed getUserAccessTokens to getUserAccessTokensForUser - Renamed getAllUserAccessTokens to getUserAccessTokens - Minor Grammar changes * Add localization for sql_user_access_token.get_all * Fix minor plural spelling
* Add admin update endpoint that can update authservice and authdata (#7842)Chris Duarte2018-01-041-0/+63
| | | | | | | | | | * add admin update endpoint that can upate authservice and authdata * Control only SystemAdmin access * Refactored AdminUpdate endpoint to only be able to update AuthData, AuthService and Password by User.Id * Refactor to move `PUT /api/v4/users/{user_id}/auth`. Created a struct to hold UserAuth info.
* Allow deactivation of SSO users (#7952)Joram Wilander2017-12-081-1/+10
|
* Add Config to disable Auth Transfers. (#7843)Chris Duarte2017-11-281-0/+51
| | | | | | * Add Config to disable Auth Transfers. * Set config ExperimentalEnableAuthenticationTransfer behind an E20 license restriction
* Role refactor (#7867)Chris2017-11-211-33/+33
| | | | | | | | * role refactor * add missing file * fix web test
* more global config ref cleanup (#7802)Chris2017-11-091-12/+8
|
* prevent deactivation of sso users (#7759)Chris2017-11-021-2/+2
|
* PLT-7978 Add websocket event for user role update (#7745)Joram Wilander2017-10-311-7/+7
| | | | | | | | * Add websocket event for user role update * Fix tests * More test fixes
* simplify things (#7735)Chris2017-10-301-3/+3
|
* Remove more global refs / state (#7723)Chris2017-10-261-6/+5
| | | | | | | | | | * remove more global refs / state * fix job enterprise initialization * fix api4 test compilation * saml api endpoints fix
* eliminate more utils.Cfg references (#7701)Chris2017-10-241-26/+0
|
* add model.NewX funcs for builtin types (#7692)Chris2017-10-231-10/+5
| | | | | | * add model.NewX funcs for builtin types * whoops, forgot to add the new file
* Reduce cfg boilerplate (#7689)Chris2017-10-231-78/+4
| | | | | | | | | | | | * reduce cfg boilerplate * fix compile error * user test fix * another test fix * simplify diagnostics / testing
* Expose user.Props through REST API (#7661)Joram Wilander2017-10-201-1/+7
|
* [PLT-7794] Add user access token enable/disable endpoints (#7630)Nick Frazier2017-10-191-1/+97
| | | | | | | | | | | | * Add column to UserAccessTokens table * PLT-7794 Add user access token enable/disable endpoints * replaced eliminated global variable * updates to user_access_token_store and upgrade.go * style fix and cleanup
* Reduce utils.Cfg references (#7650)Chris2017-10-181-83/+83
| | | | | | | | | | | | * app.UpdateConfig method * test fix * another test fix * the config override option as-was is just error prone, remove it for now * derp
* [PLT-7396] Add the ability to revoke user sessions in System Console > Users ↵Rick Batka2017-10-161-0/+45
| | | | | | | | #7493 (#7623) * add endpoint and tests for revoking all sessions for a user * fix failing test build
* PLT-7781 Some more OAuth fixes (#7568)Joram Wilander2017-10-041-23/+83
| | | | | | * Some other oauth fixes * Fix unit test
* Updates to session revoking in v4 (#7565)Joram Wilander2017-10-041-0/+8
|
* Don't use global app for api / api4 tests (#7528)Chris2017-10-021-40/+50
| | | | | | | | | | | | | | * don't use global app for api / api4 tests * put sleep back. we're gonna have to do some goroutine wrangling * fix oauth test config assumptions * jobs package, i'm comin' for you next * app test fix * try increasing sleep a little
* 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-2/+2
|
* Adding jenkinsfile for new build server.Christopher Speller2017-09-061-5/+4
|
* app type transition (#7167)Chris2017-09-061-18/+17
|
* Fix setting profile image for other users (#7306)Joram Wilander2017-08-311-0/+9
|
* set to default value with config is missing (#7320)Saturnino Abril2017-08-301-3/+3
|
* PLT-6226 Fixing races with licensing (#7213)Corey Hulen2017-08-161-15/+15
| | | | | | | | | | * PLT-6226 Fixing races with licensing * Fixing build issue * Fixing licensing issue * removing commented code
* PLT-6763 Implement user access tokens and new roles (server-side) (#6972)Joram Wilander2017-07-311-0/+252
| | | | | | | | | | | | | | | | * Implement user access tokens and new roles * Update config.json * Add public post permission to apiv3 * Remove old comment * Fix model unit test * Updates to store per feedback * Updates per feedback from CS
* Add some basic sorting support for GET /users endpoint (#6801)Joram Wilander2017-06-301-0/+58
|
* Fixed error information being obscured when joining teams with API v4 (#6751)Harrison Healey2017-06-281-2/+2
|
* Move remaining actions over to use redux and v4 endpoints (#6720)Joram Wilander2017-06-261-1/+1
|
* Fix panic in v4 client (#6704)Joram Wilander2017-06-211-1/+1
|
* Add tests for CreateUserWithInviteId and CreateUserWithHash (#6363)Carlos Tadeu Panato Junior2017-05-101-3/+247
|
* Fix user autocomplete for DMs and GMs (#6265)Joram Wilander2017-04-281-0/+6
|
* Fix error not appearing when updating to existing username (#6255)Joram Wilander2017-04-281-0/+7
|