Claudio Costa
814c234443
[MM-18036] Sanitize sql LIKE terms on search endpoints ( #12044 )
...
* Sanitize sql LIKE terms on search endpoints
* Add search term sanitization in additional places
2019-09-11 10:56:12 +02:00
Jesús Espino
83197ec5ff
Fixing websockets updates for promote/demote ( #11799 )
...
* Fixing websockets updates for promote/demote
* Adding extra test check
* Addressing PR comments
2019-08-16 08:39:34 +02:00
Jesús Espino
e067272e16
Cleaning the store from functions returning StoreResult ( #11602 )
...
* Cleaning the store from functions returning StoreResult
* Removing unnecesary StoreChannel type
2019-07-29 12:38:46 +02:00
Taufiq Rahman
7e092886dc
[MM-16658] Migrate User.GetProfilesInChannel to Sync by default #11462 ( #11685 )
...
* Migrate User.GetProfilesInChannel to Sync by default #11462
* Refactor variable names #11462
2019-07-26 13:11:13 +02:00
Jesús Espino
fe8a0f6485
Guest accounts feature ( #11428 )
...
* MM-14139: Creating permissions for invite/promote/demote guests (#10778 )
* MM-14139: Creating permissions for invite/promote/demote guests
* Fixing tests
* Adding invite guest api endpoint (#10792 )
* Adding invite guest api endpoint
* Adding i18n
* Adding some tests
* WIP
* Migrating Token.Extra info to bigger size (2048)
* Fixing tests
* Adding client function for invite guests
* Adding send guests invites tests
* Renaming file from guest to guest_invite
* Adding Promote/Demote users from/to guest endpoints (#10791 )
* Adding Promote/Demote users from/to guest endpoints
* Adding i18n translations
* Adding the client functions
* Using getQueryBuilder function
* Addressing PR review comments
* Adding default channels to users on promte from guest (#10851 )
* Adding default channels to users on promte from guest
* Addressing PR review comments
* Fixing merge problems
* Sending websockets events on promote/demote (#11403 )
* Sending websockets events on promote/demote
* Fixing merge problems
* Fixing govet shadowing problem
* Fixing feature branch tests
* Avoiding leaking users data through websockets for guest accounts (#11489 )
* Avoiding leaking users data through websockets for guest accounts
* Adding tests and fixing code error
* Fixing i18n
* Allow to enable/disable guests and other extra config settings (#11481 )
* Allow to enable/disable guests and other extra config settings
* Fixing tests and moving license and config validation to api level
* Update api4/role_test.go
Co-Authored-By: George Goldberg <george@gberg.me >
* Update api4/role_test.go
Co-Authored-By: George Goldberg <george@gberg.me >
* Fixing typo
* fixing tests
* Managing correctly the guest channel leave behavior (#11578 )
* MM-15134: Removing guests from teams or system on leave channels if needed
* WIP
* No deactivating the guest user when leave the last team
* Adding a couple of tests
* Fixing shadow variables
* Fixing tests
* fixing tests
* fixing shadow variables
* Adding guest counts for channel stats (#11646 )
* Adding guest counts for channel stats
* Adding tests
* Fixing tests
* Fixing guest domain restrictions (#11660 )
* Adding needed migration for the database
* Fixing migration
2019-07-22 22:13:39 +02:00
jfrerich
fdde7c8287
[MM-16871] Remove bots from "Daily Active Users" and "Monthly… ( #11658 )
...
* Add model.UserCountOptions to analyticsActiveCount method
Add new test for analyticsActiveCount method
* Add ability to delete entries from status store, by calling SQl
directly. There is no method available to delete entries from the
status store interace
* Instead of cleaning up after a test by passing userIds, just delete all
records in the status table and start fresh
* Remove Comment
2019-07-19 13:30:59 -05:00
Taufiq Rahman
4b71ee6fe3
Migrate User.GetProfilesInChannelByStatus to Sync by default #11461 ( #11623 )
...
* Migrate User.GetProfilesInChannelByStatus to Sync by default #11461
* Refactor review changes #11461
* Refactor review changes #11461
* Refactor review changes #11461
2019-07-19 09:36:00 +02:00
Dave Lunny
53f1cf1cb2
Migrate "User.GetProfilesWithoutTeam" to Sync by default ( #11612 )
...
* 👤 Migrates GetProfilesWithoutTeam to Sync
* 🔬 Fix tests
* 🗣 Address CR feedback
* 🏃♂️ Run `make store-mocks`
2019-07-13 08:11:59 +02:00
Allan Guwatudde
e8f77daa8a
[MM-16562] Migrate User.GetUnreadCountForChannel to Sync by default ( #11604 )
...
* Migrate User.GetUnreadCountForChannel to Sync by default
* Remove else block from GetUnreadCountChannel in user_store.go
* Return nil value for count when an error occurs in GetUnreadCountForChannel
* Fix linting issue in user_store.go
2019-07-11 08:52:56 -04:00
Micah Thompson
903085feb8
Migrate "User.UpdateMfaActive" to Sync by default ( #11566 )
2019-07-10 14:55:17 -04:00
Taufiq Rahman
9ce5b28c63
[MM-16667] Migrate User.GetByUsername to Sync by default #11453 ( #11520 )
...
* Migrate User.GetByUsername to Sync by default #11453
* fix app errors #11453
* fix app errors #11453
* fix cmd error #11453
* fix shadow var #11453
* fix shadow user var #11453
* fix test error
* fix test error #11453
2019-07-10 10:46:03 +02:00
Marc Argent
e209a7acb4
GH-11466 Migrate User.UpdatePassword to Sync by default ( #11495 )
...
* GH-11466 Migrate User.UpdatePassword to Sync by default
* GH-11466 format fix
2019-07-09 04:50:01 -07:00
Alexander Redinger
15c3c5f9e6
Migrate User.Save to Sync by default ( #11482 )
...
* Migrate User.Save to Sync by default
* Make error testing more explicit
* Factor out else
* Fix some merge-related bugs
* Add some missing nil err test requirements
* Improve function signature
* Remove unused time import
* More test fixups
2019-07-08 15:19:21 -04:00
Alejandro Sánchez Medina
2149e3dd2f
[MM-16574] Migrate "User.GetEtagForProfilesNotInTeam" to Sync by default ( #11518 )
...
* [MM-16574] Migrate "User.GetEtagForProfilesNotInTeam" to Sync by default
* Update "GetEtagForProfilesNotInTeam" interface
2019-07-08 20:16:40 +02:00
Luke P
2e48b6ef3f
[MM-16653] Migrate "User.UpdateUpdateAt" to Sync by default ( #11517 )
...
* Migrate "User.UpdateUpdateAt" to Sync by default
* Fixed errors in app/team.go that prevented successful build
* Reverted some changes in user_store test that caused errors in pipeline
* return of UpdateUpdateAt changed to model.AppError
* Ensured that UpdateUpdateAt in sqlstore/user_store.go returns int64 and *model.AppError, adjusted tests accordingly
* Generated mocks and ensured storetest/user_store.go had no errors
* Added require.Nil(t, err) to proper places in tests
* Added 'err' for second return value as opposed to _ in 4 UpdateUpdateAt() occurrences in storetest/user_store.go
2019-07-08 20:14:40 +02:00
George Goldberg
efc342f294
MM-16625: Set UpdateAt correctly on deleting profile pic. ( #11525 )
2019-07-08 11:16:32 -04:00
Rodrigo Villablanca Vásquez
e908165fe3
Migrate User.InferSystemInstallDate to sync by default ( #11505 )
...
* Migrate User.InferSystemInstallDate to sync by default
* Change var name
2019-07-08 07:46:31 +01:00
Rodrigo Villablanca Vásquez
4380c0b7a8
Migrate User.ClearAllCustomRoleAssignments to sync by default ( #11506 )
2019-07-07 19:50:18 +02:00
Rodrigo Villablanca Vásquez
7da08e7a0f
Migrate User.UpdateFailedPasswordAttempts to sync by default ( #11507 )
...
* Migrate User.UpdateFailedPasswordAttempts to sync by default
* Removed unused return value
2019-07-06 09:05:44 +02:00
Phillip Ahereza
c34942afec
Migrate "User.GetProfilesByUsernames" to Sync by default ( #11523 )
...
* changed GetProfilesByUsernames signature
* modified the UserStore interface to reflect changed made to the GetProfilesByUsernames function signature
* modify usages of GetProfilesByUsernames
* fix gofmt
* fixed failing userstore tests
2019-07-05 15:19:40 -04:00
Rodrigo Villablanca Vásquez
aa14c9bbdb
Migrate User.GetProfiles to sync by default ( #11512 )
2019-07-05 19:57:01 +02:00
Rodrigo Villablanca Vásquez
11f1accac6
11460 user.get all profiles in channel ( #11515 )
2019-07-05 16:18:45 +02:00
Adzim Zul Fahmi
8dfd3bab20
make user.Get all return []*model.User and *model.AppError ( #11516 )
...
run mock generate
2019-07-05 09:39:14 -04:00
Marc Argent
2f9d509284
GH-11469 Migrate User.UpdateLastPictureUpdate to Sync by default ( #11493 )
...
* GH-11469 Migrate User.UpdateLastPictureUpdate to Sync by default
* GH-11469 log error on failure
2019-07-04 14:59:10 +02:00
Rodrigo Villablanca Vásquez
cf695095d8
Migrate User.GetEtagForAllProfiles to sync by default ( #11509 )
2019-07-04 14:30:23 +02:00
Rodrigo Villablanca Vásquez
9839b46889
Migrate User.GetAllProfiles to sync by default ( #11513 )
2019-07-04 14:14:34 +02:00
Rodrigo Villablanca Vásquez
b738e02c15
Migrate User.GetProfileByIds to sync by default ( #11510 )
2019-07-04 11:57:12 +02:00
Rodrigo Villablanca Vásquez
c0c93a1b09
Migrate User.GetEtagForProfiles to sync by default ( #11508 )
2019-07-04 10:05:27 +02:00
Phillip Ahereza
df869e3f86
SyncStore: Migrate User.GetForLogin method to Sync ( #11501 )
2019-07-03 11:12:33 -04:00
Alex Sahin
f8c9f881c9
migrated to sync by default ( #11488 )
2019-07-03 09:05:09 -04:00
Adzim Zul Fahmi
37b726b651
Migrate "User.AnalyticsActiveCount" to Sync by default ( #11419 )
...
* migrate User.AnalyticActiveCount to sync default
* fixing shadowing variable err
* fixing shadowing variable err
* run query in async
* migrate app/diagnostic to explicit async
* remove error logging
2019-07-03 13:16:26 +02:00
Marc Argent
b55b9a3d97
GH-11465 Migrate User.UpdateMfaSecret to Sync by default ( #11496 )
...
* GH-11465 Migrate User.UpdateMfaSecret to Sync by default
* GH-11465 make mfa call async
* GH-11465 return *model.AppError directly
2019-07-02 16:22:24 -04:00
piperRyan
45b47ca901
Migrate "User.GetSystemAdminProfiles" to Sync by default ( #11491 )
2019-07-02 19:16:14 +02:00
Alexander Redinger
0b6e4e2f16
Migrate 'User.GetProfilesNotInTeam' to Sync by default ( #11420 )
2019-07-02 17:57:53 +02:00
SezalAgrawal
f881b00650
[MM-16572] Migrate "User.AnalyticsGetSystemAdminCount" to Sync by default ( #11484 )
2019-07-02 11:21:37 +02:00
Micah Thompson
0d5020e566
[MM-16652] Migrate "User.ResetLastPictureUpdate" to Sync by default ( #11474 )
...
* [MM-16652] Migrate "User.ResetLastPictureUpdate" to Sync by default
* [Suggested Changes] Added mlog for error and removed return of userid
2019-07-01 22:07:59 +02:00
Alex Sahin
1aa1363e63
[MM-16568] Migrate "User.SearchInChannel" to Sync by default ( #11417 )
...
* implemented migration to sync
* updated user.go to use explicit async approach
2019-07-01 12:44:09 +02:00
Deepak Sah
f8ba59ca9e
[MM-16567] Migrate "User.SearchNotInTeam" to Sync by default ( #11471 )
2019-06-29 00:24:46 +02:00
Marc Argent
3bce32bbcf
GH-11385 Migrate User.AnalyticsGetInactiveUsersCount to Sync by default ( #11432 )
...
* GH-11385 Migrate User.AnalyticsGetInactiveUsersCount to Sync by default
* GH-11385 fix TestGetAnalyticsOld
2019-06-28 07:39:52 -07:00
Claudio Costa
22fb7d9116
Migrate User.GetAllAfter to Sync by default ( #11446 )
2019-06-28 12:40:09 +02:00
Harrison Healey
4b96437370
MM-16477 Add api to get users modified since a given time ( #11406 )
...
* MM-16477 Add api to get users modified since a given time
* Address feedback
2019-06-27 09:37:03 -04:00
Maxim Zaks
89a41dc381
Migrate "User.SearchWithoutTeam" to Sync by default ( #11421 )
2019-06-27 13:44:53 +01:00
Claudio Costa
eb8b475497
Migrate User.GetTeamGroupUsers to Sync by default ( #11414 )
2019-06-27 15:59:49 +08:00
lassimus
8841e3dab9
MM-16564 Migrate "User.GetRecentlyActiveUsersForTeam" to Sync by default #11392 ( #11399 )
2019-06-26 15:46:38 -04:00
Claudio Costa
44b9fe3110
MM-16579 Migrate User.GetChannelGroupUsers to Sync by default ( #11412 )
...
* Migrate User.GetChannelGroupUsers to Sync by default
* Directly return Store results
2019-06-26 18:42:21 +02:00
Alex Sahin
cb7c549c7b
migrated to sync ( #11407 )
2019-06-26 11:27:29 -04:00
Alex Sahin
6ff393527e
implemented migration to sync ( #11413 )
2019-06-26 16:51:02 +02:00
Jesper Hansen
2193e43aac
[MM-16561] Store: Migrate UserStore.GetUnreadCount to sync as default #11395 ( #11409 )
2019-06-26 15:48:20 +01:00
Alex Sahin
abaf0221b6
MM-16565 Migrate "User.GetNewUsersForTeam" to Sync by default ( #11405 )
...
* initial code
* rename result var to user
* rename var to users
2019-06-26 06:35:01 -07:00
Jesús Espino
6df57d7a83
Migrate User Store methods related to enterprise to sync by default ( #11332 )
2019-06-26 10:41:45 +02:00