Commit Graph

1424 Commits

Author SHA1 Message Date
George Goldberg
663977d71a MM-16115: Channel name max length in /rename to match UI. (#11114) 2019-06-18 10:44:29 +01:00
Rodrigo Villablanca Vásquez
a7278169d2 Channel.GetTeamChannels to sync by default (#11211) 2019-06-18 07:22:37 +02:00
Sheshagiri Rao Mallipedhi
7d08efc335 Migrate Channel.GetChannelsByIds to Sync by default (#11197)
* Migrate Channel.GetChannelsByIds to Sync by default

* remove <-
2019-06-17 14:45:51 -04:00
Rodrigo Villablanca Vásquez
f97e6368c8 Migrates Channel.AutocompleteInTeam, Channel.SearchInTeam and Channel.SearchMore to sync by default (#11229) 2019-06-17 13:32:37 -05:00
Rodrigo Villablanca Vásquez
651c3196a0 Channel.GetDeleted to sync by default (#11205) 2019-06-17 13:46:37 -04:00
Micah Thompson
6bb147c380 [MM-16165] Migrate Team.GetAllPage to Sync by default (#11201)
* [MM-16165] Migrate Team.GetAllPage to Sync by default

* [MM-16165] Pull Request suggested changes: remove else
2019-06-17 13:45:52 -04:00
Martin Kraft
e15a75a2ec MM-16224: Adds new API endpoint + (App & Client & Store) to retrieve the difference between the set of channel members and given group members. (#11186) 2019-06-17 11:04:27 -04:00
Rodrigo Villablanca Vásquez
4d223ba3a2 Migrate Channel.GetByNames to sync by default (#11202) 2019-06-17 08:03:04 -07:00
Rodrigo Villablanca Vásquez
27a88b7868 Channel.GetChannelCounts to sync by default (#11210) 2019-06-17 16:47:34 +02:00
Rodrigo Villablanca Vásquez
5a3fed4534 Channel.GetMoreChannels to sync by default (#11207)
* Channel.GetMoreChannels to sync by default

* var renamed data -> channels
2019-06-17 16:27:19 +02:00
Martin Kraft
9d41c7a583 MM-16258: Adds new API endpoint + (App & Client & Store) to retrieve … (#11176)
* MM-16258: Adds new API endpoint + (App & Client & Store) to retrieve Users who would be removed from a list of hypothetical group IDs representing the synced groups.

* MM-16258: Adds roles to JSON response.

* MM-16258: Updates GetByIDs to use Squirrel.

* MM-16258: Puts as much as possible into Squirrel.

* MM-16258: Changes names of methods, functions, and route.

* MM-16258: Updates some comments.

* MM-16258: Extra validation of group_ids parameter.

* MM-16258: Changes validation of group_ids query param.

* MM-16258: Rename a variable and a constant.

* MM-16258: Fix test.
2019-06-17 09:51:56 -04:00
Eli Yukelzon
5ee1f6e2e0 MM-15498 - removed redundant post_edited event on reaction change (#10873)
* removed redundant post_edited event
2019-06-17 15:39:14 +03:00
Rodrigo Villablanca Vásquez
6535010366 Migrate Team.GetTeamsForUser to Sync by default (#11148)
* Migrate Team.GetTeamsForUser to Sync by default

* Improvements

* Requested change

* Requested changes
2019-06-17 10:49:19 +02:00
Taufiq Rahman
9ffdb794b1 Migrate Team.PermanentDelete to Sync by default #11128 (#11190)
* Migrate Team.PermanentDelete to Sync by default #11128

* resolve merge

* fix jenkin errors in  app/team.go
2019-06-17 10:37:46 +02:00
Marc Argent
1a57018adf GH-11085 Migrate Team.GetAllTeamPageListing to Sync by default (#11106)
* GH-11085 Migrate Team.GetAllTeamPageListing to Sync by default

* GH-11085 review fixes

* GH-11085 rename data to teams

* GH-11085 revert i18n changes
2019-06-16 18:11:23 +02:00
Jesús Espino
f934502a56 Migrate Jobs store to sync by default (#11183)
* Migrate Jobs store to sync by default

* Fixing compilation

* Fixing compilation

* Fixing govet
2019-06-15 17:55:06 +02:00
Giorgos Christos Dimitriou
bbdd6927de Ongoing changes to notification.go (#11047)
* Change the functions that are used only by `notification.go` from public
to private

* Split getExplicitMentions() into smaller functions.
- addMentionedUsers
- checkForMention
- isKeywordMultibyte
- processText

along with their tests.

* Merge with master
Fix wording on isKeywordMultibyte() function comment
2019-06-15 15:44:11 +02:00
Rodrigo Villablanca Vásquez
0f0ebbd9d1 Migrate Team.UpdateMember to Sync by default (#11140)
* Team.UpdateMember is sync by default

* Fix go vet: declaration of err shadows declaration at line 261

* Fix shadowing variables

* fix undefined err

* fix shadowing variables
2019-06-14 20:32:24 +02:00
Jesús Espino
7c4cc21475 Migrate Channel.AnalyticsTypeCount to Sync by default (#11097)
* Migrate Channel.AnalyticsTypeCount to Sync by default

* Fixing tests
2019-06-14 19:06:30 +02:00
Rodrigo Villablanca Vásquez
b13c5eabff Migrate Team.GetActiveMembersCount to Sync by default (#11146)
* Migrate Team.GetActiveMembersCount to Sync by default

* Requested change

* Requested change

* Fix merge

* Added a new key to i18n: store.sql_team.get_active_member_count.app_error
2019-06-14 18:18:45 +02:00
Rodrigo Villablanca Vásquez
bd8e047458 Migrate POST.AnalyticsPostCount to Sync by default (#11179)
* Migrate POST.AnalyticsPostCount to Sync by default

* Fix: Query identation
2019-06-14 17:52:17 +02:00
Jesús Espino
693017a317 Migrate Bots store to sync by default (#11182)
* Migrate Bots store to sync by default

* Fixing tests

* Fixing govet

* Fixing tests
2019-06-14 08:20:49 -07:00
Bolarinwa Balogun
1c63057095 [MM-16163] Migrate "Team.SearchPrivate" to Sync by default (#11109) 2019-06-14 15:40:15 +01:00
Rodrigo Villablanca Vásquez
8c56a5f202 Migrate Team.GetMember to Sync by default (#11141)
* Team.GetMember to Sync

* fix govet:  declaration of err shadows declaration at line 250

* Requested change

* Requested change
2019-06-14 16:28:21 +02:00
Kyle Reczek
b61ded0ae4 [MM-16173] Migrate Team.AnalyticsTeamCount to Sync by default #11126 (#11132)
* [MM-16173] Migrate Team.AnalyticsTeamCount to Sync by default #11126
+ Modified team_store.AnalyticsTeamCount to return (int64, *model.AppError) instead of store.StoreChannel.
+ Updated the mock store to reflect new return value.
+ Updated referencing code to handle new sync return value.

* Fix shadowing of the err

* Fix the empty line between related code

* Fix team count call to be an explicit async.

* Added error logging to diagnostics.go

* Fix gofmt in file
2019-06-14 10:01:24 -04:00
Taufiq Rahman
e101e1c020 Migrate "Post.GetPostsSince" to Sync by default #10976 (#11129)
* Migrate "Post.GetPostsSince" to Sync by default #10976

* Update GetPostsSince to Sync by default #10976

* Update GetPostsSince to Sync by default #10976

* Update GetPostsSince to Sync by default #10976
2019-06-14 09:22:47 -04:00
piperRyan
1f02b0ce72 [MM-16167] Migrate "Team.GetAllPrivateTeamPageListing" to Sync by def… (#11181)
* [MM-16167] Migrate "Team.GetAllPrivateTeamPageListing" to Sync by default

* Fix shadow variable error
2019-06-14 12:26:55 +02:00
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
Harrison Healey
ff0696c667 MM-16228 Remove DisablePostMetadata setting (#11138)
* MM-16228 Remove DisablePostMetadata setting

* Remove DEPRECATED_DO_NOT_USE_DisablePostMetadata
2019-06-13 17:32:36 -04: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
Christopher Speller
729a7ac0ac Properly disabling plugins that are not marked as running. (#11156) 2019-06-13 11:52:50 -07:00
Bolarinwa Balogun
7d77420962 [MM-16171] Migrate "Team.GetByInviteId" to Sync by default (#11137) 2019-06-13 14:21:09 +02:00
Devin Binnie
c524ee544f [MM-14727] Modified App.Bot.CreateBot to create a new post to the bot… (#11062) 2019-06-13 13:36:13 +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
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
Harrison Healey
803ce61ef8 MM-15889 Add unit tests for CSRF checks (#11058)
* MM-15889 Add unit tests for CSRF checks

* Moved CSRF token test to login tests

* Remove empty test

* Remove debug messages
2019-06-11 15:09:00 -04: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
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
Jesús Espino
cc834e74d4 MM-16154: Allow to have town-square in ExperimentalDefaultChannels (#11112) 2019-06-11 19:30:13 +02:00
Guillermo Vayá
ad69002f9e Truncate data from OpenGraph metadata (#10532)
* Truncate strings from OpenGraph metada

* remove unwanted opengraph fields, limit to 1 image

* test helper functions

* Add truncating test

* fix typo

* change test into not comparing for the pointer value

* truncate only once

* only shorten fields that were already present

* set maximum of 5 images

* fix original tests

* fix test

* limit to 5 images

* fix typo

* place functions below types, simplify function commentaries

* Rewrite how to empty opengraph's structure
2019-06-11 17:39:35 +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
Eli Yukelzon
c243b6640c MM-14712 - Add support for signing SAML requests (#11081)
* SAML Request signing added
* added telemetry for signrequest flag
2019-06-11 14:14:15 +03:00