Eli Yukelzon
4e5369e759
MM-19957 - Deactivating a user should increment the Daily and… ( #13232 )
...
* corrected active count function
2019-12-02 15:48:36 +02:00
Jesús Espino
a63684fcb5
Consistent license message for all the go files ( #13235 )
...
* Consistent license message for all the go files
* Fixing the last set of unconsistencies with the license headers
* Addressing PR review comments
* Fixing busy.go and busy_test.go license header
2019-11-29 12:59:40 +01:00
Miguel de la Cruz
2259b7f2a8
[MM-19948] Set version on module file and internal paths ( #13186 )
...
* [MM-19948] Set version on module file and internal paths
* Fixes after merge
* Fix i18n checker error
2019-11-28 14:39:38 +01:00
Rodrigo Villablanca Vásquez
27375cd081
Migrate profileByIdsCache cache to cache layer ( #13133 )
...
* Partial advances
* Small advances
* invalidating cache with doInvalidateCacheCluster
* Renamed cache
* Starting with tests (failing by now)
* Passing tests :)
* Passing tests
* Fix ineffectual assignment in tests
* Revert of backward incompatible change
* Removed unused var
2019-11-25 21:18:01 +01:00
Harrison Healey
de913e7537
Merge branch 'master' into mark-as-unread
2019-11-19 09:45:03 -05:00
Jesús Espino
7031f51b41
Deactivating and invalidating sessions of guest users on guest disable ( #13007 )
...
Automatic Merge
2019-11-15 09:43:52 -05:00
Harrison Healey
47409aaa4b
Merge branch 'master' into mark-as-unread
2019-11-04 15:04:28 -05:00
Ben Schumacher
812c40a307
Adjust govet settings and fix issues found by it ( #12947 )
2019-11-04 13:47:59 +01:00
Harrison Healey
eb36329e8d
Merge branch 'master' into mark-as-unread
2019-10-29 10:11:41 -04:00
Ben Schumacher
38c0bde7f8
Run ineffassign against codebase ( #12925 )
2019-10-29 15:04:28 +01:00
Ben Schumacher
7a665aacdd
Run gosimple against codebase ( #12928 )
2019-10-29 07:45:09 +01:00
Harrison Healey
66da2bab2b
MM-18463 Added update_badge notification when marking a channel as unread ( #12499 )
...
* MM-18463 Added update_badge notification when marking a channel as unread
* Address feedback
2019-10-07 09:58:39 -04:00
Joram Wilander
3d4c941ba8
MM-18512 Use options struct for GetProfilesWithoutTeam and add filtering to API ( #12200 )
...
* Use options struct for GetProfilesWithoutTeam and add filtering
* Fix test
2019-09-17 20:13:17 +01:00
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