Harrison Healey
2ebc8ec90f
MM-20897 Add category muting ( #16225 )
...
* Make UpdateSidebarCategories return the original categories
* MM-20897 Add category muting
* Prevent muting the DMs category
* Fix muted state not being stored in the database
* Address feedback
* Address some feedback
* Fix unit tests
* MM-20897 Mute/unmute channels in the database in bulk
* Satisfy golangci-lint
2020-11-16 15:19:01 -05:00
Agniva De Sarker
39b5b601f8
MM-30026: Use DB master when getting team members from a session ( #16170 )
...
* MM-30026: Use DB master when getting team members from a session
A race condition happens when the read-replica isn't updated yet
by the time a session expiry message reaches another node in the cluster.
Here is the sequence of events that can cause it:
- Server1 gets any request which has to wipe session cache.
- The SQL query is written to DB master, and a cluster message is propagated
to clear the session cache for that user.
- Now before the read-replica is updated with the master’s update,
the cluster message reaches Server2. The session cache is wiped out for that user.
- _Any random_ request for that user hits Server2. Does NOT have to be
the update team name request. The request does not find the value
in session cache, because it’s wiped off, and picks it up from the DB.
Surprise surprise, it gets the stale value. Sticks it into the cache.
By now, the read-replica is updated. But guess what, we aren’t going to
ask the DB anymore, because we have it in the cache. And the cache has the stale value.
We use a temporary approach for now by introducing a context in the DB calls so that
the useMaster information can be easily passed. And this has the added advantage of
reusing the same context for future DB calls in case it happens. And we can also
add more context keys as needed.
A proper approach needs some architectural changes. See the issue for more details.
```release-note
Fixed a bug where a session will hold on to a cached value
in an HA setup with read-replicas configured.
```
* incorporate review comments
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2020-11-10 10:43:45 +05:30
Eli Yukelzon
45e340b5be
MM-29987 Implement new collapsed threads API ( #16091 )
2020-11-08 10:36:46 +02:00
Jesús Espino
24621a22ed
Add the content field to FileInfo ( #15749 )
...
* Add the content field to FileInfo
* Fixing the upgrade code
* Trying to fix the text-scheme
* Fixing test-schema
* Fixing test-schema
* Moving the migration to the next version
2020-11-02 15:43:48 +01:00
Eli Yukelzon
fe352ab57f
MM-29703 Mark threads as read when channels are marked ( #15994 )
...
Co-authored-by: Jesús Espino <jespinog@gmail.com >
2020-10-30 17:00:21 +02:00
Rodrigo Villablanca
96f1739f8f
UserStore migration ( #15563 )
...
* Migration completed
* Fix tests
* Fix tests
* Fix tests
* Suggestions
* Trigger CI
* Suggestions
* Merge with master
* Trigger CI
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
Co-authored-by: Agniva De Sarker <agnivade@yahoo.co.in >
2020-10-26 15:11:27 +05:30
Eli Yukelzon
8844141df3
MM-28249 Auto follow threads ( #15878 )
...
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2020-10-15 18:01:16 +03:00
Rodrigo Villablanca
bb4df5a68e
ChannelStore migration Part 3 ( #15504 )
...
* Migration finished
* Change error var name
* Fix imports
* Fix tests
* Merge with master
* Doing some suggestions
* More suggestions
* Fix i18n
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
Co-authored-by: Agniva De Sarker <agnivade@yahoo.co.in >
2020-10-04 10:12:29 +05:30
Eli Yukelzon
b8ceb610e6
MM-27353 Mini image previews ( #15376 )
2020-10-02 11:14:57 +03:00
Eli Yukelzon
595248b10e
MM-28247 Threads metadata table ( #15571 )
2020-10-01 18:48:38 +03:00
catalintomai
1c0d590c81
Add AWS Metering service support ( #15290 )
2020-09-28 11:43:08 -07:00
catalintomai
f74b86ae95
MM-28733 : Admin Advisor v2 ( #15515 )
2020-09-25 14:59:41 -07:00
Rodrigo Villablanca
8118cac350
Poststore migration part3 ( #15505 )
...
* Migration completed
* Order in translations file
* Fix: lints
* Trigger CI
* Fix message key
* Change mlog.Error for mlog.Warn
* Fix imports
* Adding translations needed for EE
* Trigger CI
* Fix merge with master
Co-authored-by: Agniva De Sarker <agnivade@yahoo.co.in >
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2020-09-24 10:46:36 +05:30
Eli Yukelzon
4e9ddd4686
MM-27918 In-Product notices support ( #15316 )
2020-09-21 10:28:46 +03:00
Rodrigo Villablanca
1d4a7c0552
TeamStore migration part 2 ( #15396 )
...
* Migration completed
* Fix tests
* Reduce to one line
* Fix: change to plain error
* Fix imports
* Trigger CI
* Fix i18
* Fix merge with master
* Trigger CI
2020-09-16 21:54:39 -03:00
Rodrigo Villablanca
f0fc51244c
TeamStore migration Part 3 ( #15397 )
...
* Migration completed
* TODO
2020-09-16 12:12:10 -03:00
Ibrahim Serdar Acikgoz
e69a2a41ca
[MM-28210] sqlstore/user_store: filter deleted users for GetProfilesInChannel ( #15390 )
...
* sqlstore/user_store: filter deleted users for GetProfilesInChannel
* allow GetProfilesInChannel use userGetOptions
* sqlstore/user_store: add more test cases
* store/user_store: refine filter
2020-09-16 11:04:17 +03:00
Claudio Costa
9c272f0b20
[MM-26812] Add support for resumable file uploads ( #15252 )
...
* Implement AppendFile for FileBackend
* Split test into subtests
* [MM-26812] Add support for resumable file uploads (#15252 )
* Implement UploadSession
* Implement UploadSessionStore
* Add error strings
* Implement resumable file uploads
* Add UploadType
* Fix retry layer tests
* Regenerate store layers
* Fix store error handling
* Use base for filename
* Prevent concurrent uploads on the same upload session
* Fix erroneus error string
* Improve error handling
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
* Fix translations
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2020-09-15 21:28:25 +02:00
Rodrigo Villablanca
9ee9c78412
ChannelStore migration Part 2 ( #15405 )
...
* Migration completed
* Several corrections in tests
* Fix imports
* Fix some errors after testing
* Trigger CI
* Fix tests
* Suggestions
* Suggestions
* Add license
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2020-09-15 23:18:30 +05:30
Rodrigo Villablanca
1ab06ffa7c
Migration of PostStore Part 2 ( #15181 )
...
* Starting migration
* Lint: remove unnecessary use of sprintf
* Fix i18n
* Some suggestions
* Fix store layers
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2020-09-03 18:49:11 +05:30
Rodrigo Villablanca
2cb655ed67
Migration of ChannelStore Part 1 ( #15235 )
...
* Lint: remove unnecessary use of sprintf
* Fix i18n
* Returning the right error (InternalServerError)
* Doing some suggestions
* Fix store layers
* Fix missed translation
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2020-09-03 11:24:46 +05:30
Rodrigo Villablanca
54f86e7fb1
Migration of TeamStore Part 1 ( #15246 )
...
Automatic Merge
2020-09-03 00:29:57 -04:00
Abdulkadir Poyraz
f12ca27bac
[MM-24522] remove duplication in OR and IncludeDeletedChannels params for search ( #14573 )
2020-08-31 13:40:58 +02:00
Agniva De Sarker
78766625df
jobstore ( #15250 )
...
* Migration completed
* Modify test case
* Update en.json
* Fix layers
* Lint: remove unnecessary use of sprint
* trigger CI
* fix error
* Fixes
* fix test
Co-authored-by: Rodrigo Villablanca <villa061004@gmail.com >
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2020-08-20 19:37:19 +05:30
Agniva De Sarker
b451b3cf86
fileinfostore ( #15236 )
...
* Migration completed
* Fix i18n
* Fix imports
* Fix typos and improvements
* Add new error handling case
* Fix i18n
* Fix store layers
* Fix shadowing vars
* Lint: remove unnecessary use of sprintf
* Lint: remove unnecessary use of sprint
* Adding the translation message
* trigger CI
Co-authored-by: Rodrigo Villablanca <villa061004@gmail.com >
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2020-08-20 19:36:13 +05:30
Scott Bishel
0302e0f477
MM-27449: Compliance Jobs rerun after warning status ( #15178 )
...
* add warning as success result
* revert config changes
* add unit test, update unit test
* add a couple more tests
* update store layers
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2020-08-17 21:18:33 -06:00
Rodrigo Villablanca
20e44399c7
SystemStore migration to return plain errors ( #14835 )
...
* SystemStore migration to return plain errors
* Fix nilness
* Fix translations
* Fix merge
* Fix layers
* Fix merge errors
* Lint: remove unnecessary use of sprint
* Fix merge errors
* Fix i18n
Co-authored-by: Agniva De Sarker <agnivade@yahoo.co.in >
2020-08-13 20:32:57 +05:30
Rodrigo Villablanca
32b7d2b5f1
StatusStore migration ( #14978 )
...
* Finished!
* Typos
* Fix error
* Fix layers
* Lint: remove unnecessary use of sprint
* Fix shadowing err
2020-08-13 11:12:08 +05:30
Rodrigo Villablanca
909cda6d49
Pluginstore migration ( #14971 )
...
Automatic Merge
2020-08-13 01:35:57 -04:00
Jesús Espino
19173ea6ff
Migrating Team.SaveMember/SaveMultipleMembers into errors ( #14924 )
...
* Migrating Team.SaveMember/SaveMultipleMembers into errors
* Removing copy/paste comments
* Fixing another small thing
* Fixing tests
* Addressing PR review comments
* Fixing some tests
* Fixing golangci-lint
* Fixing linter
* Regenerating store layers
* Fix lint error after merge
* Other lint error fixed
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2020-08-12 21:02:41 +02:00
Jesús Espino
1b141678fe
Adding initial retry layer version ( #14954 )
...
* Adding initial retry layer version
* Some simplification around the generated code
* Generating retry layer again
* Improving naming generation in store generated layers
* Address PR review comments
* Updating store layers
* Addressing PR review comments
* fixing lint errors
* Updating store layers
* Adding license header
* Applying the retry layer to the reaction_store
* Regenerating retry layer
2020-08-12 20:05:16 +02:00
Rodrigo Villablanca
5566395032
First part of PostStore migration ( #15123 )
...
Automatic Merge
2020-08-12 13:35:57 -04:00
Rodrigo Villablanca
86290685ae
RoleStore migration ( #15017 )
...
Automatic Merge
2020-08-04 16:37:21 +02:00
Rodrigo Villablanca
1c5b6522e3
WebhookStore migration ( #15042 )
...
* Migration completed
* Fix tests
Co-authored-by: Jesús Espino <jespinog@gmail.com >
2020-07-31 15:53:10 +02:00
Agniva De Sarker
83974d8a8d
preferencestore ( #15018 )
...
* Starting migration
* Migration finished
* Fix i18n
* Fix some tests
* Fix typos
* Remove overwite of http status
* Add i18n string
* Fix i18n
* fix breakages
* fix tests
Co-authored-by: Rodrigo Villablanca <villa061004@gmail.com >
2020-07-28 10:27:24 +05:30
Farhan Munshi
c511042c0f
[MM-26969] Add team filters to search teams ( #15065 )
...
* Add team filters to search teams
Remove unneeded logs
Add team filters to search teams
* Use bool pointers for filters
Re-add include group constrained
Fix lint
Return the union of filters
2020-07-27 15:11:39 -04:00
Jesús Espino
2de5f75f47
Moving store layers into independent packages ( #15004 )
2020-07-27 15:14:16 +02:00