* [MM-17194] Add search channels for user in case the user doesn't have the list channels permission
* Add tests for the API layer and control the case of a user not being a team member
* Remove unnecessary empty line
There are a handful of “reserved” team names that will be rejected if found at the start of the team name – e.g. “api21251251” or “error1251251”. Turns out we just got really unlucky and a model.NewId invocation generated just such a collision. I've changed all such random generations to include a prefix.
* 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
This change modifies the database query used by the getPostsAround()
method in order to improve the performance of loading posts when
scrolling through a channel.
* Added - golang version validation.
* Updated error message to include the minor version that is supported.
* Fixed issue with variable.
* Renamed variable.
* Added - golang version validation.
Added validation for major and minor versions of go.
* Fixed the way the validation is performed.
* Changed function declaration (define validate_go_version) to a target (validate_go_version).
* remove unneeded call to validate_go_version
* [16331] Migrated Channel.SaveMember to sync by default (#10613)
* Used require.Nil to check for err variable instaed of using panic with if statement.
* Used require.Nil to check for err variable instaed of using panic with if statement in user_store
* fixed errors about shadowing with err variable.
* Fixed issue with vet tool validation.
* Fixed go fmt tool validation.
* Changed the implementation of AnalyticsGetTeamCountForScheme to sync
* Updated the Store interface
* Updated the AnalyticsGetTeamCountForScheme tests
* Updated the autogenerated mocks
* Updated trackPermissions to use the modified method
* 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
* Migrate Team.MigrateTeamMembers to Sync by default
* Remove commented out MigrateTeamMembers function
* Remove return nil when no team members in query
* Return nil when no more team members in query
* Remove commented out code lines
* Format MigrateTeamMembers code
* Return some data from MigrateTeamMembers function
* Return data and error from MigrateTeamMembers
* Use result for consistency
* Control loop to allow loop to break in storetest/team_store.go
* Fix test MigrateTeamMembers test in storetest/team_store.go
* Change err to e in storetest/team_store.go
* Migrated UserBelongsToTeams to a syncronous method
* Updated the Store interface
* Updated calls and removed now obsolete wrapper
* Regenerated store mocks
* Reverted wrong method call
* 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
* 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
* [MM-16784] Sync GetUserTeamIds
* fix format
* [MM-16784] put error in one line
* [MM-16784] Remove docstring as per CR request
* [MM-16784] Revert "Remove docstring as per CR request"
This reverts commit 8a64d3841b.