Joremy Sh
ff4df47cb1
Migrated from gorp to sqlx in store/sqlstore/plugin_store.go ( #18729 )
...
* Migrated from gorp to sqlx in store/sqlstore/plugin_store.go
* fixed lint
* updated QueryRowx and keys type
* used QueryRowX
* Fix query
Co-authored-by: Agniva De Sarker <agnivade@yahoo.co.in >
2021-10-21 09:57:49 +05:30
Shobhit Gupta
e36d0576a6
Migrate from gorp to sqlx in store/sqlstore/command_store.go ( #18728 )
2021-10-21 09:57:33 +05:30
Anusha Bhat
f5bcb12aab
[MM-39232] Migrate from gorp to sqlx in store/sqlstore/reaction_store.go ( #18657 )
...
* [MM-39232] Migrate from gorp to sqlx in store/sqlstore/reaction_store.go
* Fix failing mysql tests
* Fix failing postgres specs
* Use struct instead of params
2021-10-21 09:55:49 +05:30
Nathaniel Allred
176f8d5511
set default feature flag values ( #18784 )
2021-10-20 14:23:47 -05:00
Nathaniel Allred
3365f56584
support auto tour ab test ( #18695 )
2021-10-20 12:48:08 -05:00
Carlos Tadeu Panato Junior
3e0ab2d386
ci: remove image push to the official image repository and use the test instead ( #18738 )
2021-10-20 16:54:23 +02:00
Mattermod
d4e08e26fd
Update minor version to 6.1.0 ( #18658 )
...
Co-authored-by: Mmbot <mmbot@mattermost>
2021-10-20 16:29:15 +02:00
Claudio Costa
01f2b2089b
Explicitly handle values in audit type conversion ( #18768 )
2021-10-20 14:52:48 +02:00
Joe
dea8610f1e
[MM-35863] Add IsEnterpriseReady Plugin API ( #18676 )
...
Automatic Merge
2021-10-20 12:12:58 +02:00
Daniel Espino García
5928e4f9e0
Fix race condition in telemetry ( #18734 )
...
* Fix race condition in telemetry
* Fix tests
2021-10-20 09:58:25 +02:00
Maria A Nunez
c75058d4bc
Added sales-serve billing scheme ( #18697 )
2021-10-19 16:04:24 -04:00
Archit Mathur
8ac9a3a5b6
[MM-39157] Thread participant removal with just one query using DB's JSON functions ( #18725 )
...
* feat: removes thread participant with just one query using DB's native JSON functions
* fix: corrects syntax post test failure
2021-10-19 14:07:17 -04:00
Agniva De Sarker
acd08f0a48
Fix migration scripts ( #18756 )
...
* Fix migration scripts
Set the DB schema version in DB prior to running migration
https://community-daily.mattermost.com/boards/workspace/zyoahc9uapdn3xdptac6jb69ic/285b80a3-257d-41f6-8cf4-ed80ca9d92e5/495cdb4d-c13a-4992-8eb9-80cfee2819a4?c=c2525dbb-23eb-4fe7-8fb4-e9a5f503dc8c
```release-note
NONE
```
* Revert schema to 6.0.0 and update CI scripts
* Fix typo
* Add missing default
* Fix extra comma
Co-authored-by: Claudio Costa <cstcld91@gmail.com >
2021-10-19 19:56:09 +05:30
Penthaa Patel
078fdd8422
[MM-39229] - Migrate from gorp to sqlx in store/sqlstore/link_metadata_store.go ( #18702 )
...
* migrate from gorp to sqlx
Signed-off-by: Penthaa Patel <penthaapatel@gmail.com >
* fix INSERT query
Signed-off-by: Penthaa Patel <penthaapatel@gmail.com >
* fixes
Signed-off-by: Penthaa Patel <penthaapatel@gmail.com >
* fix Get function
Signed-off-by: Penthaa Patel <penthaapatel@gmail.com >
* fixes - serialize metadata_Data to JSON
Signed-off-by: Penthaa Patel <penthaapatel@gmail.com >
* fixes - wrap metadataBytes with string
Signed-off-by: Penthaa Patel <penthaapatel@gmail.com >
2021-10-19 19:49:45 +05:30
Shobhit Gupta
e12e0df447
Migrate from gorp to sqlx in store/sqlstore/job_store.go ( #18518 )
2021-10-19 19:29:24 +05:30
Igor German
93f956e478
[GH-18504] Migrate from gorp to sqlx in store/sqlstore/file_info_store.go ( #18637 )
...
* Migrate from gorp to sqlx in store/sqlstore/file_info_store.go
Signed-off-by: Igor German <germanenak@gmail.com >
* Use separate structs for FileInfo
Signed-off-by: Igor German <germanenak@gmail.com >
* Fix CR comments
Signed-off-by: Igor German <germanenak@gmail.com >
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2021-10-19 19:29:10 +05:30
Puerco
bc19bb33b0
Merge pull request #18759 from weblate/weblate-mattermost-mattermost-server_master
...
Translations update from Weblate
2021-10-19 08:57:03 -05:00
Agniva De Sarker
fdf1afadf3
Fix Flaky test UpdateUserEmail ( #18750 )
...
Since the email sending would run in a separate goroutine,
it was possible that during the second th.App.UpdateUser call
the goroutine would run much later.
So the secondToken would be the same as the firstToken,
and the test would fail.
The fix is to ensure that the token received is different
from the firstToken.
https://community-daily.mattermost.com/boards/workspace/zyoahc9uapdn3xdptac6jb69ic/285b80a3-257d-41f6-8cf4-ed80ca9d92e5/495cdb4d-c13a-4992-8eb9-80cfee2819a4?c=254a9782-a59b-4d38-8886-4927f593e715
```release-note
NONE
```
2021-10-19 19:17:08 +05:30
jprusch
709f3e783e
Translated using Weblate (German)
...
Currently translated at 100.0% (2311 of 2311 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/de/
2021-10-19 15:27:38 +02:00
Tom De Moor
d03c566853
Translated using Weblate (Dutch)
...
Currently translated at 100.0% (2311 of 2311 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/nl/
2021-10-19 15:27:37 +02:00
Michel Engelen
38e17c5eba
[MM-38749]: fix failing tests MM-T506, MM-T4062 and MM-T929 ( #18757 )
2021-10-19 14:01:45 +02:00
Matthew Williams
f68ba02e32
Translated using Weblate (English (Australia))
...
Currently translated at 100.0% (2311 of 2311 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/en_AU/
2021-10-18 11:26:49 -05:00
Zsolt Godó
125767e905
Translated using Weblate (Hungarian)
...
Currently translated at 100.0% (2311 of 2311 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/hu/
2021-10-18 11:26:49 -05:00
MArtin Johnson
ca6e387e7e
Translated using Weblate (Swedish)
...
Currently translated at 100.0% (2311 of 2311 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/sv/
2021-10-18 11:26:49 -05:00
master7
2a18f5e313
Translated using Weblate (Polish)
...
Currently translated at 100.0% (2311 of 2311 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/pl/
2021-10-18 11:26:49 -05:00
Kaya Zeren
e5caaf33c0
Translated using Weblate (Turkish)
...
Currently translated at 100.0% (2311 of 2311 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/tr/
2021-10-18 11:26:49 -05:00
jprusch
676cebd459
Translated using Weblate (German)
...
Currently translated at 100.0% (2311 of 2311 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/de/
2021-10-18 11:26:49 -05:00
Tóth Csaba // Online ERP Hungary Kft
c3569b7c6b
Translated using Weblate (Hungarian)
...
Currently translated at 100.0% (2310 of 2310 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/hu/
2021-10-18 11:26:49 -05:00
Tom De Moor
e6528fdcc4
Translated using Weblate (Dutch)
...
Currently translated at 100.0% (2310 of 2310 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/nl/
2021-10-18 11:26:49 -05:00
aeomin
ecd4917241
Translated using Weblate (Chinese (Simplified))
...
Currently translated at 100.0% (2310 of 2310 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/zh_Hans/
2021-10-18 11:26:49 -05:00
Pierre JENICOT
ec9f8df72d
Translated using Weblate (French)
...
Currently translated at 95.8% (2214 of 2310 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/fr/
2021-10-18 11:26:49 -05:00
Agniva De Sarker
2a07d4641a
Remove global variables and fix racy test ( #18733 )
...
https://community.mattermost.com/boards/workspace/zyoahc9uapdn3xdptac6jb69ic/285b80a3-257d-41f6-8cf4-ed80ca9d92e5/495cdb4d-c13a-4992-8eb9-80cfee2819a4?c=65b44de0-1a9c-4643-84c1-5d803593f314
This PR improves on two things at once:
- It fixes the race condition by removing global variables.
- But instead of moving them to Server, it moves them inside Channels,
thereby making one more step towards the multi-product architecture.
```release-note
NONE
```
2021-10-18 19:38:16 +05:30
Jesse Hallam
c5811939c4
Pre-package Playbooks 1.20.2 ( #18703 )
2021-10-18 11:00:11 -03:00
Carlos Tadeu Panato Junior
fc712f5fdf
default mm package to release 6.0.0 ( #18667 )
2021-10-18 13:48:55 +02:00
Agniva De Sarker
d949bd1638
Remove app initialization from WebHub ( #18687 )
...
- Make it a Server method.
- Pass Server instead of App.
- Remove global app instance from NewServer, rather
create local instances whenever needed.
- Remove App from Websocket router, and create dynamically
on every request.
- Remove HubStart and HubStop from App methods.
- Explicitly using s.Log instead of the global logger
to indicate dependency on Server. We could have passed the logger
explicitly but it doesn't look ideal.
```release-note
NONE
```
2021-10-18 12:36:13 +05:30
Allan Guwatudde
609fea0002
[MM-39205] Check that emails match during sign-up ( #18635 )
2021-10-18 09:34:10 +03:00
Agniva De Sarker
e6f36f0649
Pre-fill CreateAt to let link previews work. ( #18698 )
...
* Pre-fill CreateAt to let link previews work.
Because of the fact that getEmbedsAndImages has been now
refactored to work _before_ a post is saved. So the CreateAt
field of a post was absent.
This led to link previews being failed to save in the DB
because the timestamp wasn't there. So we just pre-fill
the field for it to work.
At the store layer, if the timestamp is present, it will just
reuse that.
https://community-daily.mattermost.com/boards/workspace/zyoahc9uapdn3xdptac6jb69ic/285b80a3-257d-41f6-8cf4-ed80ca9d92e5/495cdb4d-c13a-4992-8eb9-80cfee2819a4?c=305651ab-a96f-40d3-8bcf-8391c0d3e306
```release-note
NONE
```
* Do not override existing time
```release-note
NONE
```
2021-10-16 09:09:22 +05:30
Jesús Espino
63ece5a29b
Adding the feature flag to enable/disable calls in the mobile app ( #18689 )
2021-10-15 19:13:28 +02:00
Kyriakos Z
0f16c59b0a
MM-36862: should remove user from participants ( #18451 )
...
* MM-36862: should remove user from participants
When deleting a reply in a thread we should also delete the participant
from the participants array. This should happen if they have no other
replies in that thread.
This commit fixes that.
* Adds warning logs
* Delete Post: fetches participants only when needed
* Minor refactor
* Remove participant should check for error in count
* Fixes error when binary_parameters=true
* Fixes: removes ArrayToJSON so we can handle the error
* Satisfies the linter
* Better error handling
* Satisfy govet
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2021-10-15 19:40:09 +03:00
Penthaa Patel
c02cdd842a
[MM-38996] - Migrate from gorp to sqlx in store/sqlstore/compliance_store.go ( #18633 )
...
* migrate from gorp to sqlx in store/sqlstore/compliance_store.go
Signed-off-by: Penthaa Patel <penthaapatel@gmail.com >
* fix SQL syntax
Signed-off-by: Penthaa Patel <penthaapatel@gmail.com >
* fix SQL syntax
Signed-off-by: Penthaa Patel <penthaapatel@gmail.com >
* fix SQL syntax
Signed-off-by: Penthaa Patel <penthaapatel@gmail.com >
* fix SQL syntax error
Signed-off-by: Penthaa Patel <penthaapatel@gmail.com >
* Fixes
```release-note
NONE
```
Co-authored-by: Agniva De Sarker <agnivade@yahoo.co.in >
2021-10-15 20:06:57 +05:30
Agniva De Sarker
c27814393d
Improve API4 initialization ( #18680 )
...
* Improve API4 initialization
- Refactored openGraphDataCache to be inside app layer.
- Moved the cache instance from global variable to be inside server.
- Moved out the app instantiation from the global commands package
to be instantiated on every call. Only the server instance is passed.
- Moved InitLocal to be called from inside Init.
```release-note
NONE
```
* Remove commented line
```release-note
NONE
```
2021-10-15 19:57:05 +05:30
Agniva De Sarker
43a99a5783
Move cloud init back to initEnterprise ( #18668 )
...
* Move cloud init back to initEnterprise
```release-note
NONE
```
* Remove debug lines
```release-note
NONE
```
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2021-10-15 19:29:06 +05:30
Ibrahim Serdar Acikgoz
ba3a911c99
[MM-39299] Remove outdated translations and update go-i18n library ( #18674 )
...
* Remove outdated translations
* update go-i18n dependency
* reflect review comments
* add message count for languages which has two translations for plurals
2021-10-15 16:26:25 +03:00
Agniva De Sarker
99e6039472
Add functionality to cleanup old jobs ( #18646 )
...
* Add functionality to cleanup old jobs
Historically, we never cleaned up old jobs from the DB
leading to them being accumulated forever.
This PR introduces functionality to cleanup old jobs
older than a defined threshold.
The functionality is set to false by default and has
to be enabled for it to work.
```release-note
2 new config settings were added.
JobSettings.CleanupOldJobs: This indicates whether to clean up old jobs
from the DB or not. Default is false.
JobSettings.CleanupJobsThresholdHours: This defines the time gap in hours beyond
which older jobs will be removed. This has no effect if the above config
setting is set to false. Default is -1
```
* fix copy pasta
```release-note
NONE
```
* address review comments
```release-note
NONE
```
* Fix lint
```release-note
NONE
```
* Use single config option for everything
```release-note
NONE
```
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2021-10-15 11:03:54 +05:30
Scott Bishel
60b20dbd92
update focalboard to 0.9.3 ( #18688 )
...
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2021-10-14 14:57:03 -06:00
darkLord19
98284a79eb
remove timedDND feature flag ( #18346 )
2021-10-14 11:54:09 -04:00
Claudio Costa
9d8214c72a
Drop existing default on Users.Timezone prior to column type change ( #18669 )
2021-10-14 17:18:18 +02:00
Agniva De Sarker
850fef1ad1
Move ImageProxy inside Channels ( #18656 )
...
* Move ImageProxy inside Channels
```release-note
NONE
```
* Move back httpService
```release-note
NONE
```
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2021-10-14 13:57:04 +05:30
Kyriakos Z
4b85f9ee6a
MM-36743: adds last_root_post_at in channels table ( #18366 )
...
* MM-36743: adds last_root_post_at in channels table
Channel recency for CRT users should not count replies,
this commit solves that issue by adding a new column to the channels
table: LastRootPostAt.
With that new info CRT users can have recent channels to work as
expected.
* Adds the 'LastRootPostAt' to the SQL scripts
* Fixes tests
* Adds LastRootPostAt migration to v6.1
* Fixes index
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2021-10-13 15:20:44 -04:00
Agniva De Sarker
ff10bf1068
Fix small typo ( #18675 )
...
Automatic Merge
2021-10-13 19:33:56 +02:00