Граф коммитов

35 Коммитов

Автор SHA1 Сообщение Дата
Ben Cooke
af4c98cdf9 [MM-51724] (#22740)
* createUserAccessToken updates

* lint
2023-04-03 14:30:07 -04:00
Agniva De Sarker
dacac2e3ed MM-51768: Scrub username/password from SQL datasource (#22731)
https://mattermost.atlassian.net/browse/MM-51768
```release-note
NONE
```
2023-04-03 23:41:51 +05:30
Doug Lauder
69657be9f2 Boards: Avoid panic in Boards file request handler when file not found. (#22792)
* Avoid panic in Boards file request handler when file not found.
2023-04-03 12:27:16 -04:00
Kyriakos Z
4d2ed469bf MM-49564: Drafts upsert in the Store vs App layer (#22530)
* MM-49564: Upsert in the Store vs App layer

Refactor drafts so that Upserting a draft would happen in the DB and not
in the app layer.

* Fixes mocks

* Fixes tests

* Fixes translations

* Fixes tests

* Update tests

* Fixes tests

* Addresses review comments

- renames Save => Upsert
- removes Sleep from tests

* Fixes flaky test

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-04-01 10:32:40 +03:00
Maria A Nunez
4a3c853636 Update Work Templates content and images (#22716)
* Enabled Work templates by default

* Remove board as product condition

* Removed playbook as a plugin condition

* Removed backend condition for playbook plugin/board product

* remove boards from templates

* Removed unnecessary translations after booards templates removal

* Removed template with no playbook or integration

* Updated entrypoint wording

* update texts

* update thumbnails

* update bigger pictures

* reorder i18n

* Copy updates. Add menu order

* Remove changed translations

* Updated casing for add menu

* Restored boards

* fix i18n

* Fix missing capital in text

* Added missing boards in template

* Updated feature release playbook image

* Updated channel preview for create a project

* Update title copy

* Updated create project thumbnail

* Generate updated work templates

* Updating snapshot

---------

Co-authored-by: Julien Tant <julien@craftyx.fr>
Co-authored-by: Julian Mondragon <bugshoo+github@gmail.com>
2023-03-31 16:12:56 -04:00
Doug Lauder
99467c6b68 MM-51792 Replace Boards feature flag with env var (#22739)
* remove Boards feature flag from server, makefile, and docker

* Update server/boards/server/boards_service_util.go

Co-authored-by: Miguel de la Cruz <miguel@mcrx.me>

---------

Co-authored-by: Miguel de la Cruz <miguel@mcrx.me>
2023-03-31 10:29:29 -04:00
Nick Misasi
957f999266 [MM-51233] Updates for Trial Requests (#22620)
* Add new trial form to enrich trial requests with more customer info

* Update snapshots

* One more addition

* Fixes from PR feedback

* Fix types, i18n, update e2e tests

* Fix linter

* Fix i18n?

* Fix blank translation

* update snapshot

* Update snapshot properly

* Remove inapplicable test

* Fix business email validation only happening once

* UX Feedback

* Fix linter

* Fix linter again, not working locally

* FIX LINTER

* Move isvalid check until after some fields are set

* Fix for overlapping modals

* Fix linter

* UX feedback

* UX Feedback

* Fix typo in error modal

* [MM-51551] Add new Trial Form to Playbooks trial requests (#22650)

* Playbooks start trial entrypoints opens new trial form modal

* Fix style

---------

Co-authored-by: Mattermost Build <build@mattermost.com>

* [MM-51347] Trial form error modal for embargoed and air gapped entities (#22656)

* Playbooks start trial entrypoints opens new trial form modal

* Add support for air gapped environments when making trial requests

* Add specific handling for embargoed entities

* undo some code

* Fix linter

* Fix types

* Fix style

* Updates because TE has to upgrade to E0 before it can activate a trial

---------

Co-authored-by: Mattermost Build <build@mattermost.com>

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-03-30 14:57:07 -04:00
Agniva De Sarker
e09d5690a7 Optimize JSON marshalling in playbooks (#22735)
While inspecting Pyroscope, the function api.ReturnJSON
was seen to take some chunk of the overall memory allocations.

Looking deeper, we can see that the entire object
is json marshalled into bytes, and then wrote to the network.

Instead, we can just do a streaming write to the network
which avoids pre-allocating the entire object.

A similar approach is taken in the server channels codebase
as well.

```release-note
NONE
```
2023-03-30 23:40:36 +05:30
Jesse Hallam
64051134b8 Remove Webapp Build Hash (#22706)
* Remove Webapp Build Hash

A discrete webapp build hash is no longer needed with the mono-repo.

* i18n-extract
2023-03-30 11:02:26 -03:00
Harshil Sharma
22b3d9e4cb Fixed MM-51060 (#22532)
* Fixed MM-51060

* Minor improvements

* Breaking bigger loops

* CI

* Removed an unintended line change

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-03-30 07:38:53 +05:30
Doug Lauder
40da76ddc8 MM-51705 Fixes Shared Channels issue due to SELECT('*') (#22660)
* remove all select('*') from shared channels store

* remove left join when fetching user
2023-03-29 11:17:51 -04:00
Allan Guwatudde
c70d85c9bc [MM-51330] - Sentry Crash: nil pointer dereference in getSelfHostedProducts (#22569)
* [MM-51330] - Sentry Crash: nil pointer dereference in getSelfHostedProducts

* feedback impl

* fix bool

* remove double check

* fix failing tests

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-03-29 18:11:45 +03:00
Harshil Sharma
5da458a16f Allowed searcginbg users by substring in admin console (#22505) 2023-03-29 17:11:55 +05:30
Agniva De Sarker
b7be613ed7 MM-51744: Ignore http.ErrServerClosed from Playbooks metricsServer (#22708)
https://mattermost.atlassian.net/browse/MM-51744

```release-note
NONE
```
2023-03-28 09:15:36 -07:00
Agniva De Sarker
2287dff298 MM-51700: Suppress websocket warnings with a threshold (#22637)
We log warnings whenever our websocket buffer sizes exceed
certain thresholds. The problem with that is, when this happens,
the logs are completely spammed with these lines
making it annoying for the customer.

To improve the situation, we use a timer that only gets reset
every minute.

https://mattermost.atlassian.net/browse/MM-51700

```release-note
NONE
```
2023-03-28 09:04:09 +05:30
Christopher Speller
ae6416e357 Remove configuration auto enable. (#22625)
* Remove configuration auto enable.

* i18n

* Fix diff tests.
2023-03-27 14:02:18 -07:00
Allan Guwatudde
0140e94d77 [MM-49751] - Turn off Inactive Server Email (#22648)
* [MM-49751] - Turn off Inactive Server Email

* remove unused var

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-03-27 22:38:19 +03:00
Jesse Hallam
1cf0cff9c6 Boards: Use custom placeholder for telemetry. (#22623)
Adopt `placeholder_boards_rudder_key` as the replacement value for injecting the telemetry key, allowing Boards to preserve its unique telemetry key.

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-03-27 13:20:39 -03:00
Jesse Hallam
e755ae8635 Adopt placeholder_ semantics for telemetry key (#22621)
Update playbooks to use the `placeholder_*` semantics in use by channels in boards. While debugging this, I realized the telemetry service isn't available until after `Start()` is called, so move most of the Playbooks initialization logic there.
2023-03-27 13:19:58 -03:00
Jesse Hallam
80c1431983 Revert testing workarounds (#22630)
* Revert "fix store issue take two"

This reverts commit 59f943c2c7ff7d88f7b36cc29e242042746e959e.

* Revert "fix store override issue"

This reverts commit 29c346757aa627c07d357c54991f9188c927dd1a.

* Revert "Fix TestPushNotificationRace"

This reverts commit 6d62dddf8679e82b02e8ad9fe7513217eef5b4ee.

* Revert "fix default DSN for CI"

This reverts commit e0e69cdbb0645bb50434f6b5bbd12bead1e7ce1d.

* Revert "disable playbooks from more unit tests"

This reverts commit a1e97a9e96bdd16537f5b6dbdc8335762617a9e0.

* Revert "disable playbooks for more tests"

This reverts commit 4d2dc74f05339f0b3cd28b997a2e35ae20f898be.

* Revert "disable playbooks for TestSAMLSettings"

This reverts commit 35c1a4312d0c6a0a64991520fa5b0892c083e6a1.

* Revert "disable playbooks for more unit tests"

This reverts commit c049631a1474cddf168b2be8feb24140e0dcfd48.

* Revert "disable playbooks for mocked enterprise tests"

This reverts commit 829317fddbd0e84866534a5a75e52dcffd2dbde7.

* Partially revert "disable playbooks for channel/apps mocked tests"

This reverts commit 52b4a0a6cf135d26f53298294ed23734aafae0d2.

* Revert "fix TestUnitUpdateConfig"

This reverts commit 8f134f2a8ae9765aa2b6f66d6827e10ef1f5109f.

* Revert "add plugin mock to TestUnitUpdateConfig"

This reverts commit 3ec5419092135f494fd04701b5cbbd15920e667b.

* Revert "disable Boards for more test helpers"

This reverts commit 5d4d0d02d9cf6f872f0304098c68a01a3aab0fbe.

* Revert "disable boards at correct place in test helpers"

This reverts commit 0c9e175f79293c8be4289c7424930388f207dc75.

* Partially revert "disable boards for slash cmd tests"

This reverts commit fad8d9de93f5ce351d2e50fd6448662e75f597ae.

* Revert "disable Boards for channels web tests"

This reverts commit 15540fdfc09cf927071af718d4ad0b2c58308328.

* Revert "Adds a teardown function to playbook server tests to disable and reenable boards"

This reverts commit 9a46e3d0f43f66d548994986b8c4029d58ad022f.

* Revert "Test disable boards through feature flag"

This reverts commit 787044add8ba8e2680a2c3c6ba11e709cebc8705.

* TestUnitUpdateConfig: restore callback check

* Revert "Revert "fix default DSN for CI""

This reverts commit 01b879d55ad1249265f23c6fd9ceb5d7730ddb3d.
2023-03-27 13:19:29 -03:00
master7
d62244aebb Translated using Weblate (Polish)
Currently translated at 100.0% (5759 of 5759 strings)

Translation: mattermost-languages-shipped/mattermost-webapp-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp-monorepo/pl/

Translated using Weblate (Polish)

Currently translated at 98.3% (2505 of 2546 strings)

Translation: mattermost-languages-shipped/mattermost-server-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server-monorepo/pl/
2023-03-27 18:47:05 +03:00
jprusch
5c4f1b5bde Translated using Weblate (German)
Currently translated at 100.0% (5759 of 5759 strings)

Translation: mattermost-languages-shipped/mattermost-webapp-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp-monorepo/de/

Translated using Weblate (German)

Currently translated at 100.0% (2546 of 2546 strings)

Translation: mattermost-languages-shipped/mattermost-server-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server-monorepo/de/
2023-03-27 18:47:05 +03:00
kaakaa
a6f5f0619c Translated using Weblate (Japanese)
Currently translated at 100.0% (5759 of 5759 strings)

Translation: mattermost-languages-shipped/mattermost-webapp-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp-monorepo/ja/

Translated using Weblate (Japanese)

Currently translated at 100.0% (2546 of 2546 strings)

Translation: mattermost-languages-shipped/mattermost-server-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server-monorepo/ja/
2023-03-27 18:47:05 +03:00
Frank Tang
ecf800edc1 Translated using Weblate (Chinese (Simplified))
Currently translated at 79.6% (4587 of 5759 strings)

Translation: mattermost-languages-shipped/mattermost-webapp-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp-monorepo/zh_Hans/

Translated using Weblate (Chinese (Simplified))

Currently translated at 79.5% (4583 of 5758 strings)

Translation: mattermost-languages-shipped/mattermost-webapp-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp-monorepo/zh_Hans/

Translated using Weblate (Chinese (Simplified))

Currently translated at 100.0% (2546 of 2546 strings)

Translation: mattermost-languages-shipped/mattermost-server-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server-monorepo/zh_Hans/
2023-03-27 18:47:05 +03:00
Pantelis Vratsalis
884e8e280a Translated using Weblate (Spanish)
Currently translated at 93.6% (2384 of 2546 strings)

Translation: mattermost-languages-shipped/mattermost-server-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server-monorepo/es/
2023-03-27 18:47:05 +03:00
Nathaniel Allred
b7f2c00554 return 404 if the enterprise library error returned is 404 (#22628) 2023-03-27 08:21:29 -05:00
Harshil Sharma
3e85a9bb3a Updated query to support old mysql version (#22606)
* Updated query to support old mysql version

* Added tests

* Using foundation for tests

* Removed unused override params

* Removed unused override params
2023-03-27 09:53:05 +02:00
Allan Guwatudde
ee068726bc [MM-51467] - NotifyAdmin job reports an error for unlicensed servers (#22568)
* [MM-51467] - Reduce frequency for notify install plugin job

* [MM-51467] - NotifyAdmin job reports an error for unlicensed servers

* .

* fix imports
2023-03-27 10:50:45 +03:00
Agniva De Sarker
d8d3c6e7a6 MM-51699: Skip flaky test (#22635)
https://mattermost.atlassian.net/browse/MM-51699

```release-note
NONE
```
2023-03-27 10:28:16 +05:30
Agniva De Sarker
176a58617d MM-51504: Control compliance export goroutine (#22604)
Spawn a goroutine from the server layer to have better
control for compliance tests.

https://mattermost.atlassian.net/browse/MM-51504

```release-note
NONE
```

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-03-24 13:56:19 +05:30
byigorv
017c51c246 fix mem leak in hubConnectionIndex (#22560) 2023-03-24 11:22:37 +05:30
Agniva De Sarker
56b18ca7bf MM-45956: Optimize FileInfo stats query (#22603)
* MM-45956: Optimize FileInfo stats query

We Denormalize Post.ChannelId on FileInfo.ChannelId

```release-note
The file info stats query is now optimized by denormalizing the channelID column into the table itself. This will speed up the query to get the file count for a channel on clicking the RHS.

Migration times:
On a MySQL 8.0.31 DB with
1405 rows in FileInfo and 11M posts, it took around 0.3s

On a Postgres 12.14 DB with
1731 rows in FileInfo and 11M posts, it took around 0.27s
```

https://mattermost.atlassian.net/browse/MM-45956
2023-03-23 22:14:04 +05:30
Agniva De Sarker
a31159257d Ran make modules-tidy (#22600)
* Ran make modules-tidy

* Removed go.tools.sum which is not needed anymore

* Upgrade golang.org/x/net
2023-03-23 16:59:50 +05:30
Agniva De Sarker
19c7c6fa7a MM-51486: Implementing UTS 46 to check for preview blocklist (#22601)
There is a standard IDNA2008 which defines how unicode characters
in domain names can be compared using UTS (Unicode Technical Standard) 46.

We use that to convert any links in messages to ASCII and
then compare with the domain list in config.

https://mattermost.atlassian.net/browse/MM-51486

```release-note
NONE
```
2023-03-23 13:03:59 +05:30
Doug Lauder
c943ed6859 Mono repo -> Master (#22553)
Combines the following repositories into one:

https://github.com/mattermost/mattermost-server
https://github.com/mattermost/mattermost-webapp
https://github.com/mattermost/focalboard
https://github.com/mattermost/mattermost-plugin-playbooks
2023-03-22 17:22:27 -04:00