Ashish Bhate
e50cfca2ea
[MM-35345][MM-35494] fixes for incorrect mentions and unreads for threads and channels ( #17803 )
...
Summary:
The CRT backend was first released in version 5.29.0. Since then, the behaviour of the CRT feature has been refined, several bugs have been fixed, and a few sql columns have been added. Before these various fixes went in, the threads and channel membership tables have accumulated incorrect mention and unreads data. This PR fixes some of this bad historical data.
Summary of fixes:
- Marks threads as read for users where the last reply time of the thread is earlier than the time the user viewed the channel. Marking a thread means setting the mention count to zero and setting the last viewed at time of the the thread as the last viewed at time of the channel. This is done through a "sql migration"
- Fix channel counts, i.e. the total message count, total root message count, mention count, and mention count in root messages for users who have viewed the channel after the last post in the channel. This is done as a "sql migration"
Ticket Link:
Parts of
https://mattermost.atlassian.net/browse/MM-35494
https://mattermost.atlassian.net/browse/MM-35345
2021-07-14 17:39:40 +05:30
Carlos Tadeu Panato Junior
eaa76e9529
go: upgrade builder image to use go1.16 ( #17897 )
...
* go: upgrade builder image to use go1.16
2021-07-14 13:39:19 +02:00
Jesse Hallam
0276a69f0c
Pre-package Incident Collaboration v1.14.3 ( #17916 )
...
Automatic Merge
2021-07-13 20:35:02 +02:00
Szymon Gibała
ec801f9770
MM-36779 - Add ChimeraOAuthProxyURL config option ( #17888 )
2021-07-13 13:32:08 +02:00
Agniva De Sarker
cd88d718dd
MM-36894: Racy test: TestExecuteCommandInDirectMessageChannel ( #17881 )
...
* MM-36894: Racy test: TestExecuteCommandInDirectMessageChannel
We were using the pointer to the same post object
in multiple push notifications because we were sending
it in a loop of mentioned user list.
To fix this, we clone the post every time.
https://mattermost.atlassian.net/browse/MM-36894
```release-note
NONE
```
* Refactor markdown parsing
```release-note
NONE
```
2021-07-13 08:41:42 +05:30
Weblate (bot)
347af1c612
Translations update from Weblate ( #17903 )
...
* Translated using Weblate (German)
Currently translated at 83.9% (1938 of 2308 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/de/
* Translated using Weblate (Hungarian)
Currently translated at 100.0% (2319 of 2319 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/hu/
Translated using Weblate (Hungarian)
Currently translated at 100.0% (2316 of 2316 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/hu/
Translated using Weblate (Hungarian)
Currently translated at 100.0% (2308 of 2308 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/hu/
* Translated using Weblate (Turkish)
Currently translated at 100.0% (2319 of 2319 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/tr/
Translated using Weblate (Turkish)
Currently translated at 100.0% (2316 of 2316 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/tr/
Translated using Weblate (Turkish)
Currently translated at 100.0% (2316 of 2316 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/tr/
* Translated using Weblate (Bulgarian)
Currently translated at 100.0% (2316 of 2316 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/bg/
* Translated using Weblate (Japanese)
Currently translated at 99.9% (2315 of 2316 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/ja/
* Translated using Weblate (Dutch)
Currently translated at 100.0% (2316 of 2316 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/nl/
* Translated using Weblate (English (Australia))
Currently translated at 100.0% (2319 of 2319 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/en_AU/
Translated using Weblate (English (Australia))
Currently translated at 100.0% (2316 of 2316 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/en_AU/
* Translated using Weblate (German)
Currently translated at 83.6% (1939 of 2319 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/de/
* Translated using Weblate (Chinese (Simplified))
Currently translated at 97.8% (2269 of 2319 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/zh_Hans/
* Translated using Weblate (Spanish)
Currently translated at 86.7% (2011 of 2319 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/es/
* Translated using Weblate (Japanese)
Currently translated at 99.9% (2318 of 2319 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/ja/
Co-authored-by: jprusch <rs@schaeferbarthold.de >
Co-authored-by: Tóth Csaba // Online ERP Hungary Kft <csaba.toth@online-erp.hu >
Co-authored-by: Kaya Zeren <kayazeren@gmail.com >
Co-authored-by: Nikolai Zahariev <nikolaiz@yahoo.com >
Co-authored-by: YorimiMochida <yuuman002@gmail.com >
Co-authored-by: Tom De Moor <tom@controlaltdieliet.be >
Co-authored-by: Matthew Williams <Matthew.Williams@outlook.com.au >
Co-authored-by: Markus Hermann <markus.hermann@uni-marburg.de >
Co-authored-by: aeomin <lin@aeomin.net >
Co-authored-by: Elias Nahum <elias@mattermost.com >
Co-authored-by: kaakaa <stooner.hoe@gmail.com >
2021-07-12 11:17:21 +02:00
Agniva De Sarker
0c5e05aa52
MM-36947: Fix failure in master ( #17899 )
...
Automatic Merge
2021-07-10 10:35:02 +02:00
Agniva De Sarker
f5610801e3
PreferenceStore: Use native upsert for Postgres ( #17894 )
...
* PreferenceStore: Use native upsert for Postgres
Now that version 10 is minimum, we can start to use
advanced postgres features.
https://focalboard-community.octo.mattermost.com/workspace/zyoahc9uapdn3xdptac6jb69ic?id=285b80a3-257d-41f6-8cf4-ed80ca9d92e5&v=495cdb4d-c13a-4992-8eb9-80cfee2819a4&c=0445b560-91b9-469b-8f19-febf1881bcd6
```release-note
NONE
```
* fix lint issues
```release-note
NONE
```
2021-07-09 23:38:52 +05:30
Agniva De Sarker
ba9cbae0d5
PluginStore: Use native upsert for Postgres ( #17882 )
...
Now that version 10 is minimum, we can start to use
advanced postgres features.
https://focalboard-community.octo.mattermost.com/workspace/zyoahc9uapdn3xdptac6jb69ic?id=285b80a3-257d-41f6-8cf4-ed80ca9d92e5&v=495cdb4d-c13a-4992-8eb9-80cfee2819a4&c=0445b560-91b9-469b-8f19-febf1881bcd6
```release-note
NONE
```
2021-07-09 19:36:35 +05:30
Agniva De Sarker
7653100835
ChannelStore: Use native upsert for Postgres ( #17880 )
...
Now that version 10 is minimum, we can start to use
advanced postgres features.
https://focalboard-community.octo.mattermost.com/workspace/zyoahc9uapdn3xdptac6jb69ic?id=285b80a3-257d-41f6-8cf4-ed80ca9d92e5&v=495cdb4d-c13a-4992-8eb9-80cfee2819a4&c=0445b560-91b9-469b-8f19-febf1881bcd6
```release-note
NONE
```
2021-07-09 19:36:21 +05:30
Miguel de la Cruz
5b99df7bcd
[MM-33395] Invalidate email tokens ( #17069 )
...
* [MM-33395] Invalidate existing verify email tokens when creating a new one
* Update store layers
* Addressing review comments
* Fix linter
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2021-07-09 14:31:34 +02:00
Agniva De Sarker
b5266c37dc
Bump schema version to 5.37 ( #17892 )
2021-07-09 09:51:02 +02:00
Jesse Hallam
54097ef34a
Pre-package Incident Collaboration v1.14.2 ( #17886 )
2021-07-08 19:24:43 -03:00
Agniva De Sarker
9aee3a5e28
Reliable Websockets: default to true ( #17890 )
...
Automatic Merge
2021-07-08 21:35:02 +02:00
Joram Wilander
1ea912776c
Default CollapsedThreads feature flag to on ( #17887 )
2021-07-08 11:18:19 -04:00
Pablo Andrés Vélez Vidal
156e7b32f1
MM-36731 - ux changes cloud starter flat fee ( #17874 )
...
Co-authored-by: Pablo Velez Vidal <pablo.velez@mattermost.com >
2021-07-07 21:17:06 +02:00
Miguel de la Cruz
334fec1e2d
Prepackage focalboard v0.7.3 ( #17867 )
2021-07-07 17:32:56 +02:00
Agniva De Sarker
14acff5466
Use original opengraph dependency ( #17855 )
...
The PR is now merged with the original repo, so we can remove
the temporary replace.
https://focalboard-community.octo.mattermost.com/workspace/zyoahc9uapdn3xdptac6jb69ic?id=285b80a3-257d-41f6-8cf4-ed80ca9d92e5&v=495cdb4d-c13a-4992-8eb9-80cfee2819a4&c=59af323d-35a7-4312-87a1-e374239a03d9
```release-note
NONE
```
2021-07-06 15:44:35 -04:00
Allan Guwatudde
98d170894d
[MM-36457] - Send email when license is up for renewal ( #17816 )
...
* [MM-36457] - Send email when license is up for renewal
* i18n-extract
* feedback impl
* feedback impl
* fix translations
* Change license key to test for testing purposes
* Revert license key
* Trying test license key once more
* revert license change
Co-authored-by: marianunez <maria.nunez@mattermost.com >
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2021-07-06 18:50:19 +03:00
Weblate (bot)
e1f8c62ac8
Translations update from Weblate ( #17863 )
...
* Translated using Weblate (German)
Currently translated at 82.2% (1898 of 2308 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/de/
Translated using Weblate (German)
Currently translated at 79.3% (1832 of 2308 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/de/
* Translated using Weblate (Swedish)
Currently translated at 100.0% (2308 of 2308 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/sv/
* Translated using Weblate (Turkish)
Currently translated at 100.0% (2308 of 2308 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/tr/
Translated using Weblate (Turkish)
Currently translated at 100.0% (2308 of 2308 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/tr/
Translated using Weblate (Turkish)
Currently translated at 100.0% (2308 of 2308 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/tr/
* Translated using Weblate (Chinese (Simplified))
Currently translated at 96.2% (2221 of 2308 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/zh_Hans/
* Translated using Weblate (Japanese)
Currently translated at 100.0% (2308 of 2308 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/ja/
Co-authored-by: jprusch <rs@schaeferbarthold.de >
Co-authored-by: MArtin Johnson <martinjohnson@bahnhof.se >
Co-authored-by: Kaya Zeren <kayazeren@gmail.com >
Co-authored-by: aeomin <lin@aeomin.net >
Co-authored-by: kaakaa <stooner.hoe@gmail.com >
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2021-07-06 12:01:21 +02:00
Elisabeth Kulzer
827edfccbb
Run test-schema on additional refs. ( #17856 )
2021-07-01 10:32:35 +02:00
Miguel de la Cruz
f2099ec00b
[MM-33538] Trims space from user email when sanitizing user input ( #17168 )
...
Automatic Merge
2021-06-30 18:05:02 +02:00
darkLord19
e7726f0f79
move migration to future release as 536 is already done ( #17853 )
...
Automatic Merge
2021-06-30 17:35:02 +02:00
Agniva De Sarker
97e3c550a4
Use forked version of gziphandler ( #17852 )
2021-06-30 14:39:28 +05:30
Guillermo Vayá
f8fc5190ee
[MM-36481] Fix emoji regex to support thumbsup ( #17846 )
2021-06-29 19:37:15 +02:00
Agniva De Sarker
ec8aaec5ce
MM-36486: Bump dependencies ( #17830 )
...
* MM-36486: Bump dependencies
https://mattermost.atlassian.net/browse/MM-36486
```release-note
NONE
```
* Added collector dependency
* Trigger CI
* Trigger CI
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2021-06-29 20:49:19 +05:30
Agniva De Sarker
f74f3ec26e
Fix flaky test: TestSendAutoResponseIfNecessary ( #17847 )
...
The time needed to be converted to seconds before extracting
the year, month, an day.
Not sure how it passed CI for so long.
```release-note
NONE
```
https://focalboard-community.octo.mattermost.com/workspace/zyoahc9uapdn3xdptac6jb69ic?id=285b80a3-257d-41f6-8cf4-ed80ca9d92e5&v=495cdb4d-c13a-4992-8eb9-80cfee2819a4&c=de13d489-9e10-4fcc-896c-0d738a21f28f
2021-06-29 15:48:23 +05:30
Ahmad Karlam
081f4a5123
[MM-11143] Strip markdown formatting characters from push notifications ( #17775 )
...
* WIP: trim markdown for push notification
* fix: golangci
* fix: table regex
* fix: regex code block
* doc: add license
* WIP: custom renderer with goldmark
* WIP: update goldmark version to 1.38
* fix: use goldmark as parser
* fix: remove table extension
* fix: change buf to `strings.Builder`
* fix: return original string, log warning if error
* refactor: change `WriteString` to `WriteByte`
* refactor: change if condition
* refactor: use assertion
* refactor: move to inline
* fix: remove handle multiline
Already handled by mobile
* refactor: wrap same function
* refactor: move strip markdown to `sendPushNotificationSync`
* refactor: renaming variable aren't used
* fix: move log to func `sendPushNotificationSync`
* docs: add comment to `StripMarkdown`
* fix: move assign message to else
* appErr to err rename
Co-authored-by: Agniva De Sarker <agnivade@yahoo.co.in >
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2021-06-29 08:54:13 +05:30
Mattermod
2d8857b72e
Update minor version to 5.37.0 ( #17841 )
...
Co-authored-by: Mmbot <mmbot@mattermost>
2021-06-28 14:26:44 +02:00
Weblate (bot)
2c5fa87f27
Translations update from Weblate ( #17839 )
...
* Translated using Weblate (Hungarian)
Currently translated at 100.0% (2308 of 2308 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/hu/
Translated using Weblate (Hungarian)
Currently translated at 100.0% (2307 of 2307 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/hu/
* Translated using Weblate (Korean)
Currently translated at 78.8% (1819 of 2307 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/ko/
* Translated using Weblate (English (Australia))
Currently translated at 100.0% (2308 of 2308 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/en_AU/
* Translated using Weblate (Bulgarian)
Currently translated at 100.0% (2308 of 2308 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/bg/
* Translated using Weblate (Dutch)
Currently translated at 100.0% (2308 of 2308 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/nl/
* Translated using Weblate (Turkish)
Currently translated at 100.0% (2308 of 2308 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/tr/
* Translated using Weblate (French)
Currently translated at 81.3% (1877 of 2308 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/fr/
* Translated using Weblate (Chinese (Simplified))
Currently translated at 95.3% (2201 of 2308 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/zh_Hans/
Co-authored-by: Tóth Csaba // Online ERP Hungary Kft <csaba.toth@online-erp.hu >
Co-authored-by: Ji-Hyeon Gim <potatogim@potatogim.net >
Co-authored-by: Matthew Williams <Matthew.Williams@outlook.com.au >
Co-authored-by: Nikolai Zahariev <nikolaiz@yahoo.com >
Co-authored-by: Tom De Moor <tom@controlaltdieliet.be >
Co-authored-by: Kaya Zeren <kayazeren@gmail.com >
Co-authored-by: Nathanaël <contact@nathanaelhoun.fr >
Co-authored-by: aeomin <lin@aeomin.net >
2021-06-28 09:55:47 +02:00
Madhav Hugar
b4f6cb8cb7
MM-32421: Extend channel sidebar category APIs for Plugins ( #17821 )
...
* extend plugin api with sidebar functionalities
* include generated mocks for tests
* bump up version requirements for plugin api
* update tag to 'ChannelSidebar'
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2021-06-25 18:52:09 +02:00
Harrison Healey
a9b3e423e6
MM-36654 Re-add Mattermost emoji ( #17829 )
2021-06-24 22:24:41 -04:00
Joram Wilander
e08ebf3871
MM-36429 Do not increment mention counts when marking root posts with no replies as unread ( #17826 )
...
Automatic Merge
2021-06-24 22:35:03 +02:00
Elisabeth Kulzer
33e2ae4775
Image as env var. ( #17828 )
2021-06-24 09:59:52 +02:00
Joram Wilander
fcf1b16fe0
Fix thread mention counts ( #17824 )
2021-06-23 13:41:50 -04:00
Miguel de la Cruz
c26393421e
Bump focalboard prepackaged plugin version to v0.7.0 ( #17822 )
2021-06-23 19:21:27 +02:00
Elisabeth Kulzer
232329a5e2
Update .gitlab-ci.yml ( #17823 )
2021-06-23 17:24:38 +02:00
Elisabeth Kulzer
0765f27483
Enable e2e testing with docker-compose on GitLab ( #17765 )
...
* Make testing with docker-compose work on GitLab.
* Comment heavy jobs.
* Make testing with docker-compose work on GitLab.
* Comment heavy jobs.
* Fix images
* Addressing review.
2021-06-23 15:31:57 +02:00
Max Erenberg
58d5d51f7a
[MM-30831] granular data retention wireup ( #17417 )
...
* pre-checkout commit
* add API endpoints for retention policies
* allow deleting multiple teams/channels from a policy in a single request
* pre-checkout commit
* add auditing in API functions
* add permission checks
* update the store layers
* update storetest
* add check constraint on PostDuration column
* pre-checkout commit
* add query to delete posts under the scope of a granular retention policy
* add suggestions from sbishel
* allow clients to specify channels/teams when creating a new policy
* remove foreign keys referencing Channels and Teams tables
* add checks for whether teams and channels exist
* pre-checkout commit
* remove data referencing the Posts table
* pre-checkout commit
* write data store tests
* sort results of buildGetPoliciesQuery
* add missing test cases for teams
* pre-checkout commit
* add Client4 methods for data retention policy endpoints
* add uint and uint64 to app/layer_generators
* make granular policies override global policies
* fix lint errors
* pre-checkout commit
* add license to top of files
* add tests for data store layer
* add missing test cases for store layer
* run make i18n-extract
* add query to delete ChannelMemberHistory
* work in progress
* add test for old reply to old post
* fix lint error
* use COALESCE on each Posts column
* begin implementing orphaned rows worker
* split PR
* pre-checkout commit
* use RetentionPolicyWithTeamAndChannelCounts
* update app and api layers
* run make i18n-extract
* add RetentionPolicy to retrylayer_test.go
* Revert "split PR"
This reverts commit b316f03dd307a30deae931944ca7e4a1cc904605.
* fix errors caused by revert
* add suggestions from sbishel
* fix copy-paste error
* fix lint errors
* pre-checkout commit
* add function to delete orphaned rows
* use -1 for infinite retention
* remove check constraint
* copy i18n entries from master
* re-run tests with newer enterprise branch
* add team data to channel list
* add search for channels and teams in a policy
* add store tests for channel and team search
* add suggestions from mkraft
* run make einterfaces-mocks
* fix lint errors
* add suggestions from mkraft
* move removeOrphanedRows method to wireup branch
* Revert "move removeOrphanedRows method to wireup branch"
This reverts commit 94605c9b4a5378ffa44a3dec4d3f8e3306b9d33e.
* use DeleteOrphanedRows where possible
* run make i18n-extract
* use COMPLIANCE permissions
* run make migrations-bindadta
* clean up teams before test
* fix tests for TestRetentionPolicyStore
* add API endpoints for mobile
* fix lint error
* fix some of the lint errors
* move user/data_retention endpoints to data_retention.go
* Revert "fix some of the lint errors"
This reverts commit b5b2dc27566c427187db942c5c0afe319e7679c4.
* add exclude_policy_constrained parameter for /channels and /teams
* fix lint errors
* add policy_id field to GET endpoints for channels and teams
* use PolicyWithTeamID in RetentionPolicy layer
* fix lint errors
* run make i18n-extract
* update mock call in telemetry_test.go
* return status:OK in JSON instead of 204
* pre-checkout commit
* add policy_id field on channels/teams
* fix lint errors
* use sq.Eq instead of '?'
* use new subsection permissions
* update channels and teams endpoints to use new subsection permissions
* add extra search opts for channels in a policy
* fix lint errors
* allow negative post duration in patch
* remove DELETE FROM query in retention policy tests
* use *int64 for PostDuration
* re-run CI tests
* use 3-step deletion strategy for each table
* fix lint errors
* run make store-layers
* re-run CI tests
* add test with channel, team and global policies
* use common function for SQL queries
* add pagination test
* use struct for args to common SQL function
* fix lint errors
* run make i18n-extract
* check if Channels.TeamId is "" or nil
* use three OR clauses
* write separate genericRetentionPoliciesDeletion function
* add config setting for BatchSize
* add telemetry for BatchSize
* use feature flag
* add old i18n messages back in
* re-run CI tests
* update call signature in storetest
* MM-30831: Adds constant for retention default batch size.
* MM-30831: Removes comment re: optimization.
* MM-30831: Converts days to milliseconds.
* MM-30831: Reverts change to test.
* Revert "MM-30831: Reverts change to test."
This reverts commit 6d14275a1ceae682bb9e17ec69b39252b44e0c0c.
* Revert "MM-30831: Converts days to milliseconds."
This reverts commit a0cb6ec09d854a05194c1daee1c5333f260231c3.
* MM-30831: Fixes tests.
* MM-30381: Fix for change to method sig.
Co-authored-by: Max Erenberg <max.erenberg@mattermost.com >
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
Co-authored-by: Martin Kraft <martin@upspin.org >
2021-06-23 07:55:12 -04:00
Mattermod
71ef1c5386
Bump version ( #17819 )
...
Co-authored-by: Mmbot <mmbot@mattermost>
2021-06-22 13:08:49 +02:00
Harrison Healey
fcf8f3d92b
MM-36590 Re-add old emoji aliases ( #17806 )
...
* Re-add old emoji aliases
* Fix unit tests
2021-06-21 14:13:12 -04:00
Joram Wilander
f1913115b6
Follow threads without memberships if marked as unread ( #17800 )
2021-06-21 09:47:17 -04:00
Weblate (bot)
036cede080
Translations update from Weblate ( #17808 )
...
* Translated using Weblate (German)
Currently translated at 77.0% (1775 of 2305 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/de/
* Translated using Weblate (Dutch)
Currently translated at 100.0% (2307 of 2307 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/nl/
Translated using Weblate (Dutch)
Currently translated at 100.0% (2305 of 2305 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/nl/
* Translated using Weblate (Turkish)
Currently translated at 100.0% (2307 of 2307 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/tr/
Translated using Weblate (Turkish)
Currently translated at 100.0% (2305 of 2305 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/tr/
* Translated using Weblate (Swedish)
Currently translated at 100.0% (2307 of 2307 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/sv/
Translated using Weblate (Swedish)
Currently translated at 100.0% (2305 of 2305 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/sv/
* Translated using Weblate (Bulgarian)
Currently translated at 100.0% (2307 of 2307 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/bg/
Translated using Weblate (Bulgarian)
Currently translated at 100.0% (2305 of 2305 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/bg/
* Translated using Weblate (Hungarian)
Currently translated at 99.9% (2306 of 2307 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/hu/
Translated using Weblate (Hungarian)
Currently translated at 100.0% (2305 of 2305 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/hu/
* Translated using Weblate (English (Australia))
Currently translated at 100.0% (2307 of 2307 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/en_AU/
Translated using Weblate (English (Australia))
Currently translated at 100.0% (2305 of 2305 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/en_AU/
Co-authored-by: Markus Hermann <markus.hermann@uni-marburg.de >
Co-authored-by: Tom De Moor <tom@controlaltdieliet.be >
Co-authored-by: Kaya Zeren <kayazeren@gmail.com >
Co-authored-by: MArtin Johnson <martinjohnson@bahnhof.se >
Co-authored-by: Nikolai Zahariev <nikolaiz@yahoo.com >
Co-authored-by: Tóth Csaba // Online ERP Hungary Kft <csaba.toth@online-erp.hu >
Co-authored-by: Matthew Williams <Matthew.Williams@outlook.com.au >
2021-06-21 11:26:43 +02:00
Agniva De Sarker
df224571d8
Adding plugin.Driver mocks ( #17807 )
...
This is needed for plugin clients to mock tests.
```release-note
NONE
```
2021-06-21 12:48:17 +05:30
Joram Wilander
faf9e8725b
MM-35297 Add the ability to control if thread is followed when marking post as unread and don't autofollow from API ( #17799 )
...
* Add the ability to control if thread is followed when marking post as unread and don't autofollow from API
* Fix style
2021-06-18 15:54:17 -04:00
Ibrahim Serdar Acikgoz
f69b28610a
user service: add oauth and profile images ( #17784 )
...
* users: add cache to service
* reflect review comments
* add oauth
* move profile picture genaration
* reflect review comments
* move default bot image to users package
* add missing wraps and apply suggestions
* add comment for app.GetSession
2021-06-18 19:25:03 +03:00
Agniva De Sarker
79d4e9e9a9
DB RPC driver: add master/replica support ( #17792 )
...
Automatic Merge
2021-06-17 17:40:22 +02:00
James Addison
030543fed9
Fixup: app_test: remove unused search engine initialization ( #17718 )
...
Automatic Merge
2021-06-17 15:40:22 +02:00
Guillermo Vayá
bbebd14296
[34475] Support emoji 13.0 ( #17741 )
...
* generated data file from 'make emojis'
* format
* fix year
* fix tests
* fix header again
2021-06-17 08:31:12 -04:00
Anurag Shivarathri
e989ff0c2a
Prevent JS Execution on Pre-login OAUTH screen ( #17789 )
...
* Fixed invalid js execution
* Added data & vbscript
* Added javascript protocol in mixed case
* Updated the test
2021-06-17 17:50:43 +05:30