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

2549 Коммитов

Автор SHA1 Сообщение Дата
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
Julian Mondragón
9156205178 MM-51711_Feature flag: APPS sidebar category (#22766) 2023-03-31 15:08:52 -05:00
Maria A Nunez
3b8a0f224b Added developer flags to be cloud restrictable (#22546)
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-03-31 16:01:08 -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
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
Pablo Andrés Vélez Vidal
bbf78c4ff6 make autolinked board ff false as default (#22714) 2023-03-29 18:42:09 +02:00
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
Nathaniel Allred
9105077ee1 Mm 50735 (#22626)
* add shipping address to self hosted signup model
* purchase modals allow scroll
* fix z-index issues with payment modal dropdowns
2023-03-24 14:46:22 -05:00
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
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
Colton Shaw
63e7c29343 Additional support packet values (#22441)
* Added system console metrics and renamed database fields

* Added job data

* Added migration data
2023-03-17 16:20:23 +01:00
Christopher Speller
7804debb7f MM-51321 Refactor audit log application. (#22481)
* Refactor audit log application.

* Fix incorrect API Usage for Auditing

* Fixups.

* Rename Object audit to Auditable. Some small fixes.

---------

Co-authored-by: Daniel Schalla <daniel@schalla.me>
2023-03-16 09:50:00 -07:00
Mattermod
9a38a52392 Update minor version to 7.10.0 (#22523)
Automatic Merge
2023-03-16 15:25:16 +02:00
Allan Guwatudde
a14958096d [MM-51090] - Notify Admin post fails plugin hook (#22508) 2023-03-15 15:18:33 +03:00
Maria A Nunez
b6d13806a7 Updated Local Mode settings for cloud (#22480)
* Added cloud restristable for

* Added cloud_restrictable to Enable Local Mode
2023-03-13 13:55:05 -04:00
Agniva De Sarker
2f1d964735 Optimize precomputing of websocket event (#22465)
fmt.Sprintf was badly optimized and in cases of heavy traffic,
it was in the hot path and caused a lot of allocations.

We sacrifice readability for performance here.

```
    10:46:40-~/mattermost/mattermost-server/model] benchstat base.txt new.txt
    goos: linux
    goarch: amd64
    pkg: github.com/mattermost/mattermost-server/v6/model
    cpu: Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz
                 │  base.txt   │               new.txt               │
                 │   sec/op    │   sec/op     vs base                │
    EncodeJSON-8   2.061µ ± 1%   1.588µ ± 2%  -22.93% (p=0.000 n=10)

                 │  base.txt  │              new.txt               │
                 │    B/op    │    B/op     vs base                │
    EncodeJSON-8   545.0 ± 0%   472.0 ± 0%  -13.39% (p=0.000 n=10)

                 │  base.txt  │              new.txt               │
                 │ allocs/op  │ allocs/op   vs base                │
    EncodeJSON-8   6.000 ± 0%   3.000 ± 0%  -50.00% (p=0.000 n=10)
```

```release-note
Writes to websocket now take 13% less memory
and also 22% faster per message.
```
2023-03-13 22:32:12 +05:30
Doug Lauder
10ae28e320 Fix all occurances of checking for RemoteClusterServiceLicense (#22453) 2023-03-13 12:20:27 -04:00
Jesse Hallam
ea3ff49b35 Revert "Adding the debug bar logic in the server (#22410)" (#22478)
This reverts commit 280bc7f97e.
2023-03-10 14:30:17 -04:00
Jesús Espino
280bc7f97e Adding the debug bar logic in the server (#22410)
* Adding debugbar layer

* Adding sql debugbar info

* Make duration consistent across the debugbar lines

* Adding the debugbar/systeminfo endpoint

* Adding logs to the debugbar

* Improve the debugbar logger fields info

* Improving the debug bar architecture

* Allow to enable/disable debugbar in the backend

* Exposing the Debug Bar enable in the client config

* Adding more system information to the debugbar

* Adding params info to the store layer

* Organizing a bit the debugbar code in the server and adding some extra data to the system info api

* Adding debugbar email traces

* Changing the socket event name to 'debugbar'

* Adding explain support for the debugbar

* Adding missed file

* Omitting data related to the debugbar itself

* Removing unneeded functions

* Avoid arbitrary execution in explain api

* Moving debugbar inside the platform directory

* Replacing debugbar logger with a new logger Target

* Removed uneeded changes

* Fixing some linter errors

* Adding a debugbar log level to use it later for log events strictly related to the debug bar

* Fixing linter errors

* Fixing tests

* Adding i18n strings
2023-03-09 17:55:36 +01:00
Nathaniel Allred
de63ddfd9b configure public key and related license variables at build time (#22202)
Instead of being completely hardcoded, public key is now set at build time according to build tag (test key if `testlicensekey` tag is passed to go build, production key otherwise). A `isProdLicensePublicKey` is also available for determining if the prod license key is being used. It is needed for choosing whether to point to production or test environment CWS.

The test license key and CWS url values in this value are set to production values in this PR, but will be updated to the test values once we are ready to do the necessary updates to test environment spinwicks.
2023-03-08 09:14:14 -06:00
Amy Blais
b0064d9099 Revert "[MM-50996] Set WorkTemplate FF to true by default (#22427)" (#22442)
Automatic Merge
2023-03-06 18:29:09 +02:00
Agniva De Sarker
02a378be8c Revert "Revert "Revert "Set BoardsProduct FF to on by default" (#22177)" (#22213)" (#22437)
This reverts commit 9f7e361621.
2023-03-06 21:20:15 +05:30
Julien Tant
fc85f49e01 [MM-50996] Set WorkTemplate FF to true by default (#22427)
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-03-03 12:32:40 -07:00
Conor Macpherson
a9d9f95b24 Merge pull request #22421 from mattermost/MM-51019-add-feature-flag-for-in-product-expansion
* Add SelfHostedExpansion config/ff.
2023-03-03 11:05:40 -05:00
Allan Guwatudde
1f5a6e439e [MM-50534] - Renew email adds portal link when not eligible for self-serve renewal (#22350)
* [MM-50534] - Renew email adds portal link when not eligible for self-serve renewal

* fix translations

* make more checks

* improve endpoint to make checks

* use new checks

* fix translations

* fix lint

* add meaningful names

* rename struct

* rename endpoint
2023-03-03 18:33:18 +03:00
Mattermost Build
f45ba2e593 Merge branch 'master' into MM-51019-add-feature-flag-for-in-product-expansion 2023-03-02 22:40:26 +02:00
Conor Macpherson
871f35326c change config name to self hosted expansion to follow suit with self hosted purchase. 2023-03-02 15:07:56 -05:00
Conor Macpherson
46a693e421 Add in-product expansion config. 2023-03-01 17:17:23 -05:00
Nathaniel Allred
7a8c1f587b Mm 49495 Show past invoices for prior self-hosted purchases (#22397)
* future proof license queries
* add client method for fetching self-hosted invoices
2023-02-28 15:39:23 -06:00
Allan Guwatudde
d44065d4b3 [MM-49455] - Self-serve workspace deletion (#22200)
* [MM-49455] - Self-serve workspace deletion

* add subscription id to deletion request

* add server telemetry

* fix mocks

* feedback impl
2023-02-21 17:36:44 +03:00
Allan Guwatudde
cabcde12f7 [MM-50271] - Remove AnnualSubscription feature flag (#22338) 2023-02-16 11:46:35 +03:00
Mattermod
6ba5076a7d Update minor version to 7.9.0 (#22339)
Automatic Merge
2023-02-15 17:00:12 +02:00
na
7275887d14 Admin log table (#21153)
* Reformat Log Output for SysAdmin UI

* Restore old code

* Update

* Backend first pass

* PR feedback

* Set helpers to private

* Lint fix

* Fix mocks

* Fix another mock

* Fix lint again

* Fix i18n

* Update app/admin.go

Co-authored-by: Ibrahim Serdar Acikgoz <serdaracikgoz86@gmail.com>

* PR feedback

* FIx lint issue

---------

Co-authored-by: Daniel Schalla <daniel@schalla.me>
Co-authored-by: Nevyana Angelova <nevyangelova@Nevyanas-MacBook-Pro.local>
Co-authored-by: Devin Binnie <devin.binnie@mattermost.com>
Co-authored-by: Devin Binnie <52460000+devinbinnie@users.noreply.github.com>
Co-authored-by: Ibrahim Serdar Acikgoz <serdaracikgoz86@gmail.com>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-02-14 17:39:10 +07:00
Agniva De Sarker
9f7e361621 Revert "Revert "Set BoardsProduct FF to on by default" (#22177)" (#22213)
This reverts commit aa61f8dfbb.

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-02-10 22:05:25 +05:30
Agniva De Sarker
1cb1d8bd9e Add additional metadata to post reminder (#22306)
The webapp needs to construct the full message because
the team_name needs to be inserted into the permalink.

So we need to send everything in the metadata for the
client to construct the message.

Also, we set a custom post type for the client to easily
add a custom condition.

```release-note
NONE
```
2023-02-10 21:41:57 +05:30
Pablo Andrés Vélez Vidal
bd59b112a6 MM-48246 - AB test open RHS with linked board (#22201)
* MM-48246 - AB test open RHS with linked board

* fix linter

* fix go vet complain

* implement pr feedback

* fix mispelling

* remove unnecesary comment

* add pr feedback

* fix translation texts

* fallback for the first system stored value

* implement PR feedback

* prevent calling property from potential null object

* use the default hash id for welcome to boards template
2023-02-09 13:35:32 +01:00
Muhammad S
3ae70591d0 [MM-48029] notify admin for plugin install from work templates (#22007)
Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: Julien Tant <julien@craftyx.fr>
2023-02-08 14:08:33 -07:00
Mylon Suren
3d01be1d77 add feature flag to disable tour tips (#22263)
Automatic Merge
2023-02-07 21:08:34 +02:00
Sinan Sonmez (Chaush)
50fec7c892 MM-45494: Add endpoint for message history (#20945)
* add api url

* write sql in store

* update app and client golang driver

* update layers and tests

* change sql query sort

* update layers

* fix style

* fix style post_store.go

* fix comments

* add test for app/post_test.go

* update layers

* fix test

* fix style

* fix style again :)

* add permission check

* add additional checks and tests

* change from nil to empty

* update app-layers

* fix style

* add index for OriginalId for Posts table

* fix postgres query

* update migration file names

* update app-layers

* address PR reviews

* write tests for post store

* fix style

* Update file name

* Update file name 2

* Update file name 3

* Update file name 4

* change the error orders

* update migration file name

---------

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-02-07 16:30:37 +02:00
Harrison Healey
eabf454764 MM-49731 Regenerate emoji_data.go and gofmt it (#22158) 2023-02-07 09:12:18 -05:00
Nick Misasi
366962fe93 [MM-49921] Cloud export compliance (#22189)
* Support for export compliance screening in cloud

* i18n

* Refactor error

* Fix

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-02-03 10:18:35 -05:00
Nathaniel Allred
f713862041 Mm 49496 Add state and jobs for preventing screened purchase attempts from retrying (#22188)
* make signup unavailable when screening is in progress
2023-02-02 15:48:59 -06:00
Ben Schumacher
287bb8604f [MM-49991] Enable EnableOAuthServiceProvider by default (#22175) 2023-02-02 12:04:46 +01:00
Agniva De Sarker
aa61f8dfbb Revert "Set BoardsProduct FF to on by default" (#22177)
This reverts commit 6b6150d374.
2023-01-30 22:23:20 +05:30
Kyriakos Z
70800b2447 MM-49048: do not omit needed wsbroadcast vars (#22156)
* MM-49048: do not omit needed wsbroadcast vars

It seems that we are omitting ContainsSanitizedData, and
ContainsSensitiveData variables in WebsocketBroadcast.
This created a bug in cluster mode, in which we were sending duplicate
events to users whereas normally they would have access to only one of those.

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-01-30 18:10:39 +02:00
Ashish Bhate
58fda05349 MM-49486: Option to exclude file count in channel stats (#22096)
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-01-27 21:03:33 -05:00
Julien Tant
7bfca605e1 [MM-49929] Work templates: allow simple users to list marketplace plugins (#22151) 2023-01-26 09:08:05 -07:00