Commit Graph

1143 Commits

Author SHA1 Message Date
Jesper Hansen
570e6f1a74 [MM-15841] Store: Migrate "Post.Save" to Sync by default (#11045)
* MM-15841: migrate post save to sync by default #10987

* MM-15841: remove variable shadowing #10987

* MM-15841: log error on post save #10987

* MM-15841: nil check post save errors #10987

* MM-15841: update error message on post save #10987

* MM-15841: add nil check on post save in user store test #10987
2019-06-14 12:02:33 +02:00
piperRyan
2f36158adb [MM-15797] Migrate Session.Remove to Sync by default (#11069)
* [MM-15797] Migrate Session.Remove to Sync by default

* Remove unnecessary channel logic and simplify

* Refactor code to be more consistent with code base

* Rename variable to avoid shadow declaration

* Add missing checks in tests

* Regenerate the mocks

* Run gofmt over code
2019-06-13 22:02:52 +02:00
Christopher Speller
1ca421472f Fix bots being unable to post when personal access tokens are disabled. (#11105) 2019-06-13 11:54:09 -07:00
Bolarinwa Balogun
7d77420962 [MM-16171] Migrate "Team.GetByInviteId" to Sync by default (#11137) 2019-06-13 14:21:09 +02:00
Jesper Hansen
539de0d593 MM-15844: migrate post permanentdeletebyuser to sync by default #10984 (#11056) 2019-06-13 08:19:52 +02:00
Kyle Reczek
cbfd68ee1f [MM-16179] Migrate Team.GetTotalMemberCount to Sync by default #11120 (#11149)
+ GetTotalMemberCount returns (int64, *model.AppError) now instead of StoreChannel.
+ Updated store mock.
+ Updated code that referenced GetTotalMemberCount to handle the sync result.
2019-06-13 07:56:22 +02:00
Rodrigo Villablanca Vásquez
784a34318f Migrate Team.GetMembersByIds to Sync by default (#11145)
* Migrate Team.GetMembersByIds to Sync by default

* Requested change
2019-06-13 07:02:20 +02:00
Rodrigo Villablanca Vásquez
0dab9fe869 Migrate Team.GetMembers to Sync by default (#11142) 2019-06-12 23:31:31 +02:00
Bolarinwa Balogun
58e126b910 MM-15801 Migrate "Session.UpdateRoles" to Sync by default (#11015) 2019-06-12 20:45:47 +02:00
kosgrz
7b9833405d Migrate Post.GetOldest to Sync by default (#11036)
* Migrate Post.GetOldest to Sync by default

* fixed error checking in post_store test
2019-06-12 20:40:17 +02:00
Bolarinwa Balogun
793efb15f6 [MM-16184] Migrate "Team.GetChannelUnreadsForTeam" to Sync by default (#11139)
* [MM-16184] Migrate "Team.GetChannelUnreadsForTeam" to Sync by default

* Fix weird indentation
2019-06-12 19:31:17 +02:00
Jesús Espino
76bab4f0c2 Migrating User Store VerifyEmail, GetByAuth and GetByEmail functions to sync by default (#10941) 2019-06-12 19:30:50 +02:00
Rodrigo Villablanca Vásquez
b757e7d129 Fix #10972. AnalyticsPostCountsByDay is sync now (#11013)
* Fix #10972. AnalyticsPostCountsByDay is sync now

* Revert go.mod and go.sum modifications

* Fix identation in querys

* Fix unnecessary else
2019-06-11 21:24:53 +02:00
Rodrigo Villablanca Vásquez
28cf642ccb Fix #10973. AnalyticsUserCountsWithPostsByDay is sync now (#11012)
* Fix #10975. AnalyticsUserCountsWithPostsByDay is sync now

* revert modifications to go.mod and go.sum

* removed unnecessary else sentence

* Querys identation
2019-06-11 21:06:40 +02:00
Taufiq Rahman
9445cb29f5 Migrate "Team.UpdateDisplayName" to Sync by default #11096 (#11111)
* Migrate  to Sync by default #11096

* Update with gofmt
2019-06-11 19:41:15 +02:00
Marc Argent
b0ad3c10e9 GH-10932 Migrate 'Session.UpdateLastActivityAt' to Sync by default (#11078)
* Migrate Session.UpdateLastActivityAt to Sync by default

* GH-10932 fix tests

* GH-10932 update add session code
2019-06-11 19:40:05 +02:00
Bolarinwa Balogun
88202a76d9 [MM-16159] Migrate "Team.GetByName" to Sync by default (#11107)
* [MM-16159] Migrate "Team.GetByName" to Sync by default

* Refactor to correct mistakes and remove irrelevant code
2019-06-11 09:35:17 -04:00
Bolarinwa Balogun
3b03c9afcb [MM-16164] Migrate "Team.GetAll" to Sync by default (#11108)
* [MM-16164] Migrate "Team.GetAll" to Sync by default

* Refactor to make code shorter and more descriptive
2019-06-11 12:29:58 +01:00
Taufiq Rahman
599dcb0f77 [MM-15302] Migrate Preference.Delete to Sync by default #10715 (#11101)
* MM-15302: Migrate `Preference.Delete` to Sync by default #10715

* MM-15302: Migrate `Preference.Delete` to Sync by default #10715

* regenerate store mocks

* fix shadow var
2019-06-11 10:51:55 +02:00
Mounica Paladugu
c2d7fba39a [MM-16160] Migrate Team.SearchByName to Sync by default (#11104) 2019-06-10 16:11:02 -07:00
Marc Argent
162e06b5df GH-10967 Migrate Post.PermanentDeleteBatch to Sync by default (#11033)
* GH-10967 Migrate Post.PermanentDeleteBatch to Sync by default

* Use require.Nil
2019-06-10 17:01:57 +02:00
Marc Argent
b4d444319b GH-10968 Migrate 'Post.GetPostsBatchForIndexing' to Sync by default (#11031)
* GH-10968 Migrate 'Post.GetPostsBatchForIndexing' to Sync by default

* Fix indentation and check return value
2019-06-10 11:17:37 +02:00
Carlos Tadeu Panato Junior
c431a686b3 prepare upgrade to 5.13 (#11072) 2019-06-09 13:06:53 +02:00
Tomas
76eee12ac8 MM-15850/MM-15851 GetPosts Before/After sync by default (#11035) 2019-06-08 06:32:23 +02:00
Christopher Speller
69076934ec Adding bot description field to bot users. (#11066) 2019-06-07 08:09:34 -07:00
Will Andrews
2d14eef6c7 MM-15864 - Made Post.GetRepliesForExport sync (#11046)
* Changed Post.GetRepliesForExport to be sync

* Removed else, and renamed err

* renamed result variable to replyPosts
2019-06-06 14:29:54 -04:00
Mounica Paladugu
978ee13262 Migrate Session.RemoveAllSessions to Sync by default (#11037) 2019-06-06 16:03:20 +01:00
Evan do Carmo
c73bc21d1e #10883 adding const error string DismissPostError to be returned by MessageWillBePosted (#10921)
Adds an exported const string that can be used by plugins to signal a client that the incoming post should be dismissed, instead of the current behavior which just leaves it pending.
2019-06-06 06:16:28 +02:00
GianOrtiz
b26e5d444e Migrate "Post.GetPostsByIds" to Sync by default (#11034) 2019-06-04 17:25:16 -04:00
GianOrtiz
a57e042dab [MM-15858] Migrate "Post.GetPostsCreatedAt" to Sync by default (#11021)
* Migrate "Post.GetPostsCreatedAt" to Sync by default

* Fix variable misuse
2019-06-04 17:24:27 -04:00
KimSeungHyeon
367ffbfb42 MM - 15795 Migrate "Session.GetSessions" to Sync by default (#11000) 2019-06-04 06:15:31 +02:00
Christopher Speller
f39dd28b72 Upgrading schema version to 5.12.0 (#11043) 2019-06-03 14:41:53 -07:00
Taufiq Rahman
5f3e6ad20a Migrate "Post.GetParentsForExportAfter" to Sync by default #10965 (#11029) 2019-06-03 15:41:14 +01:00
Bolarinwa Balogun
4cfe61393b [MM-15802] Migrate "Session.UpdateDeviceId" to Sync by default (#11017) 2019-06-03 16:16:50 +02:00
Rodrigo Villablanca Vásquez
201fb5a717 Fix #10979. GetFlaggedPostsForChannel is sync now (#11010) 2019-06-03 14:29:09 +02:00
Giorgos Christos Dimitriou
2e79ae9636 Change the implementation of GetAll() in preference_store.go to ret… (#10926)
* Change the implementation of GetAll() in `preference_store.go` to return an
object from `model` and a *model.AppError.
Change the Interface in `store.go` to accomodate for the change
Change the test that called the GetAll() function

* Rename the result variable to preferences so it makes more sense.
Use assertions to keep the test consistent

* Generate the correct mocks after the code changes

* Remove redundant conditions

* Address govet errors

* Resolve conflicts with master's new changes

* Fix Save() function according to the new changes in master (Got
overwritten with the previous commit)

* Change the assertions to have the same format as commit 2d97f01
2019-06-03 07:25:04 -04:00
Woolim Cho
d1f81842a5 [MM-15799] Migrate "Session.PermanentDeleteSessionsByUser" to Sync by default (#11038) 2019-06-03 13:22:02 +02:00
Rodrigo Villablanca Vásquez
e20d91b00e Fix #10975. GetEtag is sync now (#11011)
* Fix #10975. GetEtag is sync now

* Revert of modifications to go.mod and go.sum
2019-05-31 17:58:24 -04:00
Jesús Espino
9e17274741 Migrate Store groups to sync by default (GroupSyncable methods) (#11003) 2019-05-31 18:27:56 +02:00
GianOrtiz
ec20d3a844 MM-15794 Migrate "Session.Get" to Sync by default (#10990) 2019-05-30 23:22:19 +02:00
Rodrigo Villablanca Vásquez
9fa1622fc3 Fix #10963: GetDirectPostParentsForExportAfter is sync now (#11009) 2019-05-30 23:19:14 +02:00
Jesús Espino
76e00b406e Migrate Groups store to sync by default (GetGroups and Counts) (#10998) 2019-05-30 20:39:43 +02:00
Jesús Espino
b3118ce605 Migrate Groups store to sync by default (Add/Remove Channel/Team Members) (#10997)
* Migrate Groups store to sync by default (Add/Remove Channel/Team Members)

* Addressing PR review comments
2019-05-30 20:38:22 +02:00
Evan do Carmo
ae6fed827a #10939 Migrate "Session.Save" to Sync by default (#10944)
* Migrate "Session.Save" to Sync by default

* fixing unreachable code

* removing shadowing

*  whitespace changes, refactoring flow control logic

* removing unnecessary whitespace
2019-05-30 12:10:24 -04:00
Evan do Carmo
cee1e36859 MM-15846 migrating get posts to sync by default (#10994)
* migrating get posts to sync by default

* flow control and style changes

* style changes, error checking

* pulling master down

* counting missed cache, not hit

* fixing bad conflict resolution

* forcing rebuild
2019-05-30 10:44:33 -04:00
Evan do Carmo
427effcd5c MM-15843 migrating post.GetSingle() to sync by default (#10992) 2019-05-30 14:43:45 +02:00
Evan do Carmo
8ff58a07bd MM-15842 making post.update() sync by default (#10991)
* making post.update() sync by default

* fixing style issues

* style changes

* fixing variable name
2019-05-30 10:35:46 +02:00
Jesper Hansen
58363d3455 [MM-15194] Store: Migrate Emoji.Save to Sync as default #10642 (#10955)
* Store: Migrate Emoji.Save to Sync as default #10642

* Store: use require.Nil helper function to assert nil
2019-05-29 14:32:54 -04:00
Evan do Carmo
9f4c703f1e MM-15847 migrating getFlaggedPosts to sync by default (#10995) 2019-05-29 18:05:59 +02:00
Evan do Carmo
28d668cd91 MM-15848 migrating getFlaggedPostsForTeam to sync by default (#10996) 2019-05-29 16:48:05 +02:00