Claudio Costa
0509e78744
[MM-48523] Expose resumable uploads API to plugins ( #21700 )
...
* Expose resumable uploads API to plugins
* Update translations
2022-11-22 15:26:22 -06:00
Nick Misasi
a1e16f7b02
Call Cloud HandleLicenseChange when license is changed in Cloud ( #21583 )
...
* Call Cloud HandleLicenseChange when license is changed in a cloud context
* Remove UpdateSubscriptionFromHook as its no longer necessary
* Update mocks
* Remove another reference
* Remove translation
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2022-11-22 13:22:45 -05:00
Vishal
c78b78ed5e
[MM-5046] Fix emails search for Postgres DB ( #21590 )
...
* Support emails search in Postgres
* Add @ exception for postgres
* update comment
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2022-11-22 12:02:33 -05:00
Ben Cooke
76f7872a50
[MM-46692] Channel group member count ( #21270 )
...
* tools updates
* Revert "tools updates"
This reverts commit 6293297b55803c5a263e200ebd80192899666ae9.
* adding channel member count to groups request
* fixing models
* adding a new test
* removing unused var
Co-authored-by: Benjamin Cooke <benjamincooke@Benjamins-MacBook-Pro.local >
Co-authored-by: Benjamin Cooke <benjamincooke@Benjamins-MBP.ht.home >
Co-authored-by: Benjamin Cooke <benjamincooke@Benjamins-MBP.fritz.box >
Co-authored-by: Benjamin Cooke <benjamincooke@Benjamins-MacBook-Pro.fritz.box >
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2022-11-22 11:31:04 -05:00
Amy Blais
afc2dcebe1
Update minimum supported MacOS and Edge versions ( #21520 )
...
Automatic Merge
2022-11-22 16:09:11 +02:00
Ben Cooke
65e731e1b7
[MM-42335] Fix in RenderMobileError ( #21536 )
...
* tools updates
* Revert "tools updates"
This reverts commit 6293297b55803c5a263e200ebd80192899666ae9.
* fix
Co-authored-by: Benjamin Cooke <benjamincooke@Benjamins-MacBook-Pro.local >
Co-authored-by: Benjamin Cooke <benjamincooke@Benjamins-MBP.ht.home >
Co-authored-by: Benjamin Cooke <benjamincooke@Benjamins-MBP.fritz.box >
Co-authored-by: Benjamin Cooke <benjamincooke@Benjamins-MacBook-Pro.fritz.box >
2022-11-22 08:43:26 -05:00
Shivashis Padhi
ee40eb956c
[MM-47384] Make OpenID Connect free for all ( #21556 )
...
* wip: make OpenID Connect free-for-all
* Deprecation note: GoogleOAuth, Office365OAuth
* Improve deprecation comments
Co-authored-by: Martin Kraft <martin@upspin.org >
* Lint fix
* Add model/oauthproviders, move google, openid, office365 from enterprise
* Vet fixes
* Remove redundant log
Co-authored-by: Martin Kraft <martin@upspin.org >
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2022-11-22 11:09:04 +05:30
Martin Kraft
fcd45de73b
MM-48186: Add a new API endpoint to add a user to their default GroupChannels and GroupTeams. ( #21591 )
...
* MM-48186: Add a new API endpoint to add a user to their default GroupChannels and GroupTeams.
* MM-48186: Removed unrelated lint fixes.
* MM-48186: Removed variable from previous iteration.
* MM-48186: Adds translation.
* MM-48186: Not upgrading golang.org/x/text in this pr.
* MM-48186: Validate user ID and auth service.
* MM-48186: Use user id from struct.
* MM-48186: Added basic client test.
* MM-48186: Adds empty translation.
* MM-48186: Added translations.
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2022-11-21 13:36:41 -05:00
Ben Cooke
25bb1d0ebd
[MM-47145] My Insights license change ( #21443 )
...
* tools updates
* Revert "tools updates"
This reverts commit 6293297b55803c5a263e200ebd80192899666ae9.
* remove license checks for my insights endpoints
* removing new config
* remove license checks from insights test
* adding some license tests for team endpoints
* fixing tests
Co-authored-by: Benjamin Cooke <benjamincooke@Benjamins-MacBook-Pro.local >
Co-authored-by: Benjamin Cooke <benjamincooke@Benjamins-MBP.ht.home >
Co-authored-by: Benjamin Cooke <benjamincooke@Benjamins-MBP.fritz.box >
Co-authored-by: Benjamin Cooke <benjamincooke@Benjamins-MacBook-Pro.fritz.box >
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2022-11-18 11:29:06 -05:00
mattermod
2386571c89
Update latest version to 7.5.1
2022-11-18 15:50:15 +00:00
mattermod
753ca610b3
Update latest version to 7.5.0
2022-11-18 15:35:54 +00:00
Ibrahim Serdar Acikgoz
1edbf67bb2
migrations: bump morph dependency and reflect changes ( #21670 )
2022-11-17 19:36:08 +03:00
Agniva De Sarker
06ad69a406
MM-47465: Fix flaky TestDeleteChannel ( #21686 )
...
Creating the post in a separate goroutine would create a race condition
because that method also calls GetChannel. This can cause a bug
if the cache was wiped before the the other goroutine would get
a chance to update the cache. And if that happens, then
it would populate the cache with the old value.
Pseudo-code
```
func deleteChannel() {
go func() {
getFromCache()
}()
updateDB()
wipeCache() // a
}
func getFromCache() {
err := checkCache()
if err == ErrNotFound {
getFromDB() // x
updateCache() // y
}
}
func Test() {
deleteChannel()
getFromCache()
}
```
If the sequence of events happen like
- x
- a
- y
Then the getFromCache() call later will get the wrong
value from cache.
The fix is to make the call synchronous.
https://mattermost.atlassian.net/browse/MM-47465
Special thanks to @noxer for finding the root cause.
```release-note
NONE
```
2022-11-17 20:44:18 +05:30
Shivashis Padhi
5be8557247
[MM-44168] Add feature to restore archived user groups ( #20369 )
...
* Add undelete feature, add mocks, tests
* Rename undelete->restore
* make store-layers
* make app-layers
* Store -> Store()
* Lint fixes
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2022-11-17 14:53:54 +05:30
Agniva De Sarker
17332035fa
MM-47034: Update dependencies ( #21676 )
...
https://mattermost.atlassian.net/browse/MM-47034
```release-note
NONE
```
2022-11-17 09:27:08 +05:30
Miguel de la Cruz
be46be4985
Prepackage boards v7.5.1 ( #21681 )
2022-11-16 19:54:15 +01:00
Shota Gvinepadze
98e685f07c
Move Thread.GetPosts to PostStore.GetPostsByThread ( #21633 )
...
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2022-11-16 13:42:26 +04:00
Mattermod
ab5137395c
Update minor version to 7.6.0 ( #21664 )
...
Automatic Merge
2022-11-15 20:28:52 +02:00
Alejandro García Montoro
10bdea85a5
Skip flaky test in TestRequestTrialLicense ( #21665 )
...
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2022-11-15 10:52:54 +01:00
Shota Gvinepadze
9f9e19e05d
[MM-48161] Change data types for collections and topics ( #21634 )
...
* Change data types for collections and topics
* Address suggestions
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2022-11-15 00:57:04 +04:00
Shivashis Padhi
2171ad8abf
[MM-46216] P3 Bugfix - Oauth redirectURI with query parameters generates malformed redirect URL ( #20854 )
...
* Parse and reconstruct URI, instead of using string concatenation
* Rename parse error, add test
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2022-11-14 10:27:47 +05:30
Agniva De Sarker
91f7eb0957
Filter by templated schema name for postgres queries ( #21635 )
...
There were certain queries which did not filter
by the current schema, but hardcoded public schema.
Apart from that, we always filter with the current schema
which allows connection proxies to run multiple MM within
a single DB.
```release-note
NONE
```
2022-11-11 13:03:28 +05:30
Pablo Andrés Vélez Vidal
f07de38cc5
MM-47866 - remove deprecated inviteToTeam FF ( #21600 )
2022-11-10 10:59:11 +01:00
Shota Gvinepadze
44dd185506
Fix bad merge ( #21632 )
2022-11-10 11:30:49 +04:00
Pablo Andrés Vélez Vidal
e5828b6da0
MM-47865 - remove guided channel ff ( #21599 )
2022-11-09 20:06:52 +01:00
Jesse Hallam
5a0a3e6d13
Inline ThreadStore.MarkAllAsUnreadByTeam ( #20958 )
...
* Add teamId to Threads table
* Get rid of multiple teamId reads
* Fix failed test
* Inline ThreadStore.MarkAllAsUnreadByTeam
The query to `MarkAllAsUnreadByTeam` first fetched all thread memberships, then fed just the ids back to a second query to ensure all are marked as unread. Optimize this by simply doing a single `UPDATE` query with the necessary joins.
Co-authored-by: iomodo <wineson@gmail.com >
2022-11-09 14:00:07 -04:00
Christopher Poile
597bf9fcad
Calls v0.9.0 -> v0.10.0 ( #21622 )
2022-11-09 12:42:18 -05:00
Scott Bishel
19c57ade00
update pre-package boards to v7.5.0 ( #21623 )
2022-11-09 09:39:31 -07:00
Konstantin
6f5d3fef30
Translated using Weblate (Russian)
...
Currently translated at 100.0% (2389 of 2389 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/ru/
2022-11-09 16:03:39 +02:00
Hosted Weblate
8951779aa8
Update translation files
...
Updated by "Cleanup translation files" hook in Weblate.
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/
2022-11-09 16:03:39 +02:00
Matthew Williams
bcd0094cb7
Translated using Weblate (English (Australia))
...
Currently translated at 100.0% (2389 of 2389 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/en_AU/
2022-11-09 16:03:39 +02:00
Angel Mendez Cano
61e94ddbd0
Translated using Weblate (Spanish)
...
Currently translated at 100.0% (2389 of 2389 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/es/
Translated using Weblate (Spanish)
Currently translated at 100.0% (2389 of 2389 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/es/
2022-11-09 16:03:39 +02:00
Tom De Moor
36cd2a84b3
Translated using Weblate (Dutch)
...
Currently translated at 100.0% (2389 of 2389 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/nl/
2022-11-09 16:03:39 +02:00
master7
7c09924ede
Translated using Weblate (Polish)
...
Currently translated at 100.0% (2389 of 2389 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/pl/
Translated using Weblate (Polish)
Currently translated at 100.0% (2389 of 2389 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/pl/
2022-11-09 16:03:39 +02:00
jprusch
049d4e6407
Translated using Weblate (German)
...
Currently translated at 100.0% (2389 of 2389 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 100.0% (2389 of 2389 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/de/
2022-11-09 16:03:39 +02:00
aeomin
8dd1aed4fd
Translated using Weblate (Chinese (Simplified))
...
Currently translated at 97.3% (2323 of 2387 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/zh_Hans/
2022-11-09 16:03:39 +02:00
MArtin Johnson
0a53518fdf
Translated using Weblate (Swedish)
...
Currently translated at 100.0% (2389 of 2389 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% (2387 of 2387 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/sv/
2022-11-09 16:03:39 +02:00
Kaya Zeren
e1fd394310
Translated using Weblate (Turkish)
...
Currently translated at 100.0% (2389 of 2389 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% (2389 of 2389 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% (2387 of 2387 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/tr/
2022-11-09 16:03:39 +02:00
Shota Gvinepadze
b9d00a1f28
Simplify thread_store/GetThreadForUser ( #21588 )
2022-11-09 12:16:20 +04:00
Said Atrahouch
534a9bcbf0
Merge pull request #21507 from mattermost/mm-47415-email-templates-cloud-starter-to-free
...
[MM-47415] remove all mentions from Cloud Starter to Cloud Free
2022-11-08 14:46:59 +01:00
Tim Scheuermann
033bdd6f1a
Fix unchecked request when saving channel ( #21043 )
2022-11-07 11:28:31 +01:00
Ben Cooke
d855916c6e
[MM-48049] Including users who were removed from group in not_in_group response ( #21559 )
...
Automatic Merge
2022-11-04 19:10:26 +02:00
Tim Scheuermann
b73bf144aa
MM-47171 Export direct channel favorites ( #21570 )
2022-11-04 17:13:14 +01:00
Jesse Hallam
279754c6b0
Refactor common JoinThread helper struct ( #21511 )
...
* Refactor common JoinThread helper struct
* avoid exporting ToThreadResponse
2022-11-04 12:05:59 -03:00
Tim Scheuermann
08d00209ee
MM-46610 Ignore the reader timeout for S3 files when importing ( #21578 )
2022-11-04 11:19:46 +01:00
Julien Tant
da124abcb9
[MM-47843] Feature Flag for Work Template Modal ( #21553 )
2022-11-03 16:50:59 -07:00
Shota Gvinepadze
b8da473da7
[MM-47542] Extend Plugin API ( #21446 )
...
* Extend Plugin API
* Use Error, NoError in tests
* Address suggestions
* Simplify code
* Add new line
* Add featureflag and GetCollectionMetadataByIds hook
* Add enter at the end of file
* make build-templates
* Fix test
* Fix GetCollectionMetadataByIds ret type
* Add GetTopicMetadataByIds hook
* Add log
* Extract i18n
* Add experimental notice on hooks
* Update model/feature_flags.go
* Swap user to userId
* Change userId to userID
Co-authored-by: Jesse Hallam <jesse.hallam@gmail.com >
2022-11-03 22:43:30 +04:00
Agniva De Sarker
cc69c917f2
Run go vet before golangci ( #21580 )
...
golangci has terrible error messages
if the code doesn't compile or there
are some basic errors. Doing a go vet
check is a quick way to eliminate any
head scratching.
```release-note
NONE
```
2022-11-03 22:56:42 +05:30
Tim Scheuermann
8844ed1c1c
[MM-48060] Added context for emoji ( #21561 )
...
Co-authored-by: Tim Scheuermann <tim.scheuermann@mattermost.com >
2022-11-03 08:54:59 +01:00
Ben Schumacher
a4103f8c77
Set OwnerId for bots created via EnsureBotUser ( #21560 )
2022-11-03 06:31:38 +01:00