Commit graph

297 commits

Author SHA1 Message Date
Ben Schumacher
3ee5432664
[MM-53968] Includes mattermost-plugin-api into the mono repo (#24235)
Include https://github.com/mattermost/mattermost-plugin-api into the mono repo

Co-authored-by: Jesse Hallam <jesse.hallam@gmail.com>
Co-authored-by: Michael Kochell <mjkochell@gmail.com>
Co-authored-by: Alejandro García Montoro <alejandro.garciamontoro@gmail.com>
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
Co-authored-by: Alex Dovenmuehle <alex.dovenmuehle@mattermost.com>
Co-authored-by: Michael Kochell <6913320+mickmister@users.noreply.github.com>
Co-authored-by: Christopher Poile <cpoile@gmail.com>
Co-authored-by: İlker Göktuğ Öztürk <ilkergoktugozturk@gmail.com>
Co-authored-by: Shota Gvinepadze <wineson@gmail.com>
Co-authored-by: Ali Farooq <ali.farooq0@pm.me>
Co-authored-by: Maria A Nunez <maria.nunez@mattermost.com>
Co-authored-by: Daniel Espino García <larkox@gmail.com>
Co-authored-by: Christopher Speller <crspeller@gmail.com>
Co-authored-by: Alex Dovenmuehle <adovenmuehle@gmail.com>
Co-authored-by: Szymon Gibała <szymongib@gmail.com>
Co-authored-by: Lev <1187448+levb@users.noreply.github.com>
Co-authored-by: Jason Frerich <jason.frerich@mattermost.com>
Co-authored-by: Agniva De Sarker <agnivade@yahoo.co.in>
Co-authored-by: Artur M. Wolff <artur.m.wolff@gmail.com>
Co-authored-by: Madhav Hugar <16546715+madhavhugar@users.noreply.github.com>
Co-authored-by: Joe <security.joe@pm.me>
Co-authored-by: Ibrahim Serdar Acikgoz <serdaracikgoz86@gmail.com>
Co-authored-by: José Peso <trilopin@users.noreply.github.com>
2023-08-21 09:50:30 +02:00
Jesse Hallam
b814d76488
config-reset: -tags production (#24277)
Somewhere in the build pipeline, we run `make config-reset` to generate a default `config.json` to include with the tarball. Unfortunately, this was being built without the `-tags production` signal that changes the default service environment to `production`, and in turn caused the `CWS` environment to default to testing. The trial licenses returned by the testing environment aren't compatible with the production environment, preventing new customers from starting trials by themselves.

As an immmediate workaround, customers can simply delete the `config.json` included with the tarball and start the server anew. Without any further configuration, it will correctly default to the `production` service environment and use the correct `CWS` environment.

Fix the tarball generation by adding `-tags production` to the `config-reset` Makefile target. We don't add a dev version of this for now, as it's not really needed given the server creates the right value on startup.

Fixes: https://mattermost.atlassian.net/browse/CLD-6137
2023-08-17 11:16:16 -03:00
Ibrahim Serdar Acikgoz
83652aa3c2
[MM-53840] Add migration workflow (#24211) 2023-08-16 10:09:11 +03:00
Christopher Poile
7bca8b11d2
calls -> v0.18.0 (#24186) 2023-08-04 08:35:59 -06:00
Jesse Hallam
9b05bfa8dc
Pre-package Playbooks v1.38.0 (#24106) 2023-07-25 22:22:47 -03:00
Scott Bishel
0c4ac8b201
prepackage boards v7.11.2 (#24085)
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-07-24 11:49:12 +02:00
Ibrahim Serdar Acikgoz
38fd8cd6aa
tools/mmgotool: move into monorepo (#24010) 2023-07-17 16:15:58 +03:00
Scott Bishel
993ce5a5cc
prepackage boards v7.11.1 (#23991)
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-07-13 15:50:26 +02:00
Christopher Poile
b5a3eee739
calls -> v0.17.0 (#23975) 2023-07-09 20:41:45 -06:00
Jesse Hallam
c506e01a97
server: automatically retry CI testing failures (#23820)
* server: --rerun-fails=3 for test-server(-race)?

* --rerun-fails=3 for IS_CI=true and -race as well
2023-06-30 15:00:37 -03:00
Jesse Hallam
53731f95ff
Pre-package Playbooks v1.37.0 (#23880) 2023-06-29 10:49:48 -03:00
Ben Schumacher
c6916c7047
Bump Apps plugin version to 1.2.2 (#23622) 2023-06-29 09:26:33 +02:00
Scott Bishel
4e0c9eb163
Prepackage boards v7.11.0 (#23844) 2023-06-27 11:31:29 -06:00
Ben Schumacher
fe8d66bc98
[MM-53254] Fix make pluginapi (#23803) 2023-06-23 12:24:52 +02:00
Jesse Hallam
2765d92991
Gotestsum (#22826)
* disable coverage

This reduces runtime of the server test suite from ~30m to ~10m, and as far as I can see: we discarded the coverage output anyway.

* allow morph 60s to migrate when running tests

* scripts/test.sh: drop COVERMODE

Stop generating coverage data when running unit tests. It's likely we'll want this data back at some point, but for now it's unused and removing simplifies invoking tests for developers.

* scripts/test.sh: remove cleanup steps

* scripts/test.sh: drop TESTS parameter

* scripts/test.sh: drop TESTFLAGS parameter

* switch to gotestsum
2023-06-15 15:27:52 -03:00
Miguel de la Cruz
44a99d1736
Move playbooks to plugin (#23732)
* Remove build references

* Remove playbooks webapp and server, and add the prepackaged plugin

* Remove translations

* Add ProductSettings to the playwright type

* Restore playbooks as a prepackaged plugin for cypress e2e tests
2023-06-14 23:33:26 +02:00
Scott Bishel
bc66807acc
MM-53028 - Swap out todo plugin with snow in onboarding (#23681)
* swap out todo plugin with snow in onboarding

* Updating servicenow svg

* update name to be single word

---------

Co-authored-by: Asaad Mahmood <asaadmahmood@users.noreply.github.com>
2023-06-13 17:48:27 -06:00
Miguel de la Cruz
1215584665
Prevent boards product from being included automatically (#23539)
* Prevent boards product from being included automatically

* Fix config diff test

* Update prepackaged plugin version

Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>

* Readd boards/dist to the gitignore

* Does not enable the focalboard plugin by default

* Update plugin version to v7.10.3

---------

Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>
2023-06-12 18:51:43 +02:00
Maria A Nunez
d8cb5f3a6e
Update prepackaged version for NPS (#23699) 2023-06-12 12:30:10 -04:00
Agniva De Sarker
efaa6264cc
MM-53032: Fix module path after repo rename (#23689)
It was a good decision in hindsight to keep the public module as 0.x
because this would have been a breaking change again.

https://mattermost.atlassian.net/browse/MM-53032
```release-note
Changed the Go module path from github.com/mattermost/mattermost-server/server/v8 to github.com/mattermost/mattermost/server/v8.

For the public facing module, it's path is also changed from github.com/mattermost/mattermost-server/server/public to github.com/mattermost/mattermost/server/public
```
2023-06-11 10:54:35 +05:30
Jesse Hallam
8194817d54
disable coverage (#23686)
* disable coverage

This reduces runtime of the server test suite from ~30m to ~10m, and as far as I can see: we discarded the coverage output anyway.

* allow morph 60s to migrate when running tests
2023-06-09 12:29:08 +02:00
Ibrahim Serdar Acikgoz
a9645b634a
server/Makefile: update morph usage in new-migration target (#23363) 2023-06-08 16:30:21 +03:00
Jesse Hallam
305fac6507
Service environment (#23443)
* fix fileutils.TestFindFile on MacOS

* introduce model.ExternalServiceEnvironment

* pick license public key from external service env

* pick Stripe public key from external service env

* pick Rudder key from external service env

* configure Sentry DSN from external service env

* always log external_service_environment, Unsetenv

* clear faked BuildEnv, improve logging

* strip out unset GOTAGS

* fix Sentry tests

* simplify to just ServiceEnvironment

* relocate ServiceEnvironment in client config

* initialize CWS URLs based on service environment

* unset rudder key for boards dev

* harden service environment to avoid accidental production

* fix TestSentry again

* fix DEFAULT -> ENTERPRISE

* s/dev/test when naming playbooks rudder key

* simplify boards rudder key switch

* use uniform rudderKey variable names

* retain compatibility with existing pipeline

* reduce to just production/test

* unit test with valid test license

* simplify Playbooks telemetry initialization

* restore dev service environment

* emit ServiceEnvironment when running e2e tests
2023-06-07 10:15:33 -03:00
Julien Tant
0468e772a9
[MM-52926] Deprecating work templates (#23466)
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-06-05 18:42:03 -07:00
Miguel de la Cruz
951456c780
Includes mmctl into the mono-repo (#23091)
* Includes mmctl into the mono-repo

* Update to use the new public module paths

* Adds docs check to the mmctl CI

* Fix public utils import path

* Tidy up modules

* Fix linter

* Update CI tasks to use the new file structure

* Update CI references
2023-06-05 12:42:55 +02:00
Agniva De Sarker
c7295b01e5
Enable golangci-lint (attempt 2) (#23517)
This time we are just using the Makefile command
to see if that makes a difference
```release-note
NONE
```
2023-05-30 15:16:42 +05:30
Christopher Poile
d7cf652504
MM-52936 - Update prepackaged calls to v0.16.1 (#23504) 2023-05-25 13:10:28 -04:00
Michael Kochell
c4cea950f7
bump welcomebot plugin version to 1.3.0 (#23447) 2023-05-23 10:23:52 -04:00
José Peso
e1a2443f1a
GitHub v2.1.6 and Jira v3.2.5 prepackaged (#23334) 2023-05-15 21:07:23 +02:00
Christopher Poile
831d51569e
prepackage calls v0.16.0 (#23374)
Automatic Merge
2023-05-11 18:34:29 +03:00
Jesse Hallam
bb02b35048
Expose public/ API as submodule (#23345)
* model -> public/model

* plugin -> public/plugin

* public/model/utils -> public/utils

* platform/shared/mlog -> public/shared/mlog

* platform/shared/i18n -> public/shared/i18n

* platform/shared/markdown -> public/shared/markdown

* platform/services/timezones -> public/shared/timezones

* channels/einterfaces -> einterfaces

* expose public/ submodule

* go mod tidy

* .github: cache-dependency-path, setup-go-work

* modules-tidy for public/ too

* remove old gomodtidy
2023-05-10 13:07:02 -03:00
Ibrahim Serdar Acikgoz
2d61ec0b1d
[MM-52551] Makefile: revert makefile on 067e36c (#23300)
* revert make file on 067e36c

* Avoid disabling the products

* run tests separated only on race tests

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: Miguel de la Cruz <miguel@mcrx.me>
2023-05-05 15:03:12 +02:00
Agniva De Sarker
9f11fc59b5
Revert "Run golangci in server CI (#23240)" (#23299)
This reverts commit 349e5d4573.
2023-05-05 10:08:35 +05:30
Agniva De Sarker
349e5d4573
Run golangci in server CI (#23240)
* Run golangci in server CI

Also reordered the checks in check-style target to run vet check
first which has far better error messages in case of unsynced branch failures.
```release-note
NONE
```
2023-05-04 19:37:30 +05:30
Michael Kochell
f6598c2d32
bump github plugin version to 2.1.5 (#22575)
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-04-27 10:38:30 -04:00
Ibrahim Serdar Acikgoz
fc50bd450e
Makefile: bump golangci-lint version (#23160)
Co-authored-by: Ibrahim Serdar Acikgoz <ibrahim@ibrahims-mac.local>
2023-04-26 16:50:54 -06:00
Michael Kochell
8e359790a7
Bump Apps plugin version to 1.2.1 (#22619)
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-04-26 13:24:17 -04:00
Harrison Healey
1cee3b7987
Add Makefile target to update development Docker container configuration (#22813)
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-04-20 14:34:36 -04:00
Michael Kochell
9729641823
Bump autolink plugin version to 1.4.0 (#22966) 2023-04-18 11:01:52 -04:00
Miguel de la Cruz
067e36c23c
Enable products for tests (#22757)
* Enable products for channels tests

* increase unit test timeout; check IsConfigReadOnly

* make app-layers

* Avoid loading boards tempaltes between tests to improve speed

* Fix delete query to be compatible with both databases

* Avoid preserving the templates for boards store tests

* Run all tests in one command

* Revert "Run all tests in one command"

This reverts commit 0330f7cd8f.

* concurrent pkg group tests in CI

* Revert "Revert "Run all tests in one command""

This reverts commit 73892fec77.

* Revert "concurrent pkg group tests in CI"

This reverts commit 550fb6cdd4.

* try testing 3 subsets of packages concurrently to improve time taken

* Revert "try testing 3 subsets of packages concurrently to improve time taken"

This reverts commit 97475f3c4e.

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: wiggin77 <wiggin77@warpmail.net>
2023-04-18 13:58:33 +02:00
Agniva De Sarker
b200a07881
v8.0 module release (#22975)
https://mattermost.atlassian.net/browse/MM-52079

```release-note
We upgrade the module version to 8.0. The new module path is github.com/mattermost-server/server/v8.
```


Co-authored-by: Doug Lauder <wiggin77@warpmail.net>
2023-04-18 11:05:28 +05:30
Christopher Poile
4aa2648888
Prepackage calls v0.15.1 (#22936) 2023-04-12 15:15:24 -04:00
Christopher Poile
cefb6f0419
MM-51461 - Prepackage calls v0.15.0 (#22913) 2023-04-11 11:55:17 -04:00
Agniva De Sarker
bcf115e315
Upgrade mockery to fix errors (#22892)
Mockery started to throw errors like "Unexpected package creation during export data loading".

This was consistently reproducible locally and on upgrade, it has gone away.

```release-note
NONE
```
2023-04-10 14:20:57 +05:30
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
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
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