Commit graph

238 commits

Author SHA1 Message Date
Mattermost Build
280180d0a5
Update Calls to v1.11.0 (#34399) (#34403)
Some checks are pending
Server CI / Compute Go Version (push) Waiting to run
Server CI / Check mocks (push) Blocked by required conditions
Server CI / Check go mod tidy (push) Blocked by required conditions
Server CI / check-style (push) Blocked by required conditions
Server CI / Check serialization methods for hot structs (push) Blocked by required conditions
Server CI / Vet API (push) Blocked by required conditions
Server CI / Check migration files (push) Blocked by required conditions
Server CI / Generate email templates (push) Blocked by required conditions
Server CI / Check store layers (push) Blocked by required conditions
Server CI / Check mmctl docs (push) Blocked by required conditions
Server CI / Postgres with binary parameters (push) Blocked by required conditions
Server CI / Postgres (push) Blocked by required conditions
Server CI / Postgres (FIPS) (push) Blocked by required conditions
Server CI / Generate Test Coverage (push) Blocked by required conditions
Server CI / Run mmctl tests (push) Blocked by required conditions
Server CI / Run mmctl tests (FIPS) (push) Blocked by required conditions
Server CI / Build mattermost server app (push) Blocked by required conditions
Web App CI / check-lint (push) Waiting to run
Web App CI / check-i18n (push) Waiting to run
Web App CI / check-types (push) Waiting to run
Web App CI / test (push) Waiting to run
Web App CI / build (push) Waiting to run
(cherry picked from commit 5418102f68)

Co-authored-by: Bill Gardner <billg@wavearts.com>
2025-11-05 02:30:38 +00:00
Mattermost Build
cfcdb7b767
chore(server): bump prepackaged playbooks to v2.5.1 (#34396) (#34402)
* chore(server): bump prepackaged playbooks to v2.5.1

🤖 Generated with [Claude Code](https://claude.com/claude-code)



* chore(server): bump FIPS playbooks to v2.5.1

Updated FIPS version from v2.5.0+c140653 to v2.5.1+fe08fbc

🤖 Generated with [Claude Code](https://claude.com/claude-code)



---------


(cherry picked from commit 6801a9e785)

Co-authored-by: Caleb Roseland <caleb@calebroseland.com>
Co-authored-by: Claude <noreply@anthropic.com>
2025-11-04 17:59:58 -06:00
Mattermost Build
6391152eb6
Bump prepackage MsTeams plugin version to 2.3.0 (#34347) (#34356)
Some checks are pending
Server CI / Compute Go Version (push) Waiting to run
Server CI / Check mocks (push) Blocked by required conditions
Server CI / Check go mod tidy (push) Blocked by required conditions
Server CI / check-style (push) Blocked by required conditions
Server CI / Check serialization methods for hot structs (push) Blocked by required conditions
Server CI / Vet API (push) Blocked by required conditions
Server CI / Check migration files (push) Blocked by required conditions
Server CI / Generate email templates (push) Blocked by required conditions
Server CI / Check store layers (push) Blocked by required conditions
Server CI / Check mmctl docs (push) Blocked by required conditions
Server CI / Postgres with binary parameters (push) Blocked by required conditions
Server CI / Postgres (push) Blocked by required conditions
Server CI / Postgres (FIPS) (push) Blocked by required conditions
Server CI / Generate Test Coverage (push) Blocked by required conditions
Server CI / Run mmctl tests (push) Blocked by required conditions
Server CI / Run mmctl tests (FIPS) (push) Blocked by required conditions
Server CI / Build mattermost server app (push) Blocked by required conditions
Web App CI / check-lint (push) Waiting to run
Web App CI / check-i18n (push) Waiting to run
Web App CI / check-types (push) Waiting to run
Web App CI / test (push) Waiting to run
Web App CI / build (push) Waiting to run
Automatic Merge
2025-10-31 11:59:10 +02:00
Mattermost Build
3f463e514a
Update FIPS flavor of Playbooks, Agents and Boards (#34312) (#34323)
(cherry picked from commit ab12fbca34)

Co-authored-by: Alejandro García Montoro <alejandro.garciamontoro@gmail.com>
2025-10-29 10:47:19 +00:00
Mattermost Build
7cffe0933a
Upgraded board prepackaged version to v9.1.7 (#34187) (#34189)
Some checks failed
Server CI / Compute Go Version (push) Has been cancelled
Web App CI / check-lint (push) Has been cancelled
Web App CI / check-i18n (push) Has been cancelled
Web App CI / check-types (push) Has been cancelled
Web App CI / test (push) Has been cancelled
Web App CI / build (push) Has been cancelled
Server CI / Check mocks (push) Has been cancelled
Server CI / Check go mod tidy (push) Has been cancelled
Server CI / check-style (push) Has been cancelled
Server CI / Check serialization methods for hot structs (push) Has been cancelled
Server CI / Vet API (push) Has been cancelled
Server CI / Check migration files (push) Has been cancelled
Server CI / Generate email templates (push) Has been cancelled
Server CI / Check store layers (push) Has been cancelled
Server CI / Check mmctl docs (push) Has been cancelled
Server CI / Postgres with binary parameters (push) Has been cancelled
Server CI / Postgres (push) Has been cancelled
Server CI / Postgres (FIPS) (push) Has been cancelled
Server CI / Generate Test Coverage (push) Has been cancelled
Server CI / Run mmctl tests (push) Has been cancelled
Server CI / Run mmctl tests (FIPS) (push) Has been cancelled
Server CI / Build mattermost server app (push) Has been cancelled
Automatic Merge
2025-10-17 17:13:39 +03:00
Mattermost Build
f8dacee20e
Update playbooks plugin to v2.5.0 (#34133) (#34138)
Automatic Merge
2025-10-14 11:43:38 +03:00
Mattermost Build
dfb4044865
Update Agents plugin to v1.4.0 (#34129) (#34131)
Some checks are pending
Server CI / Compute Go Version (push) Waiting to run
Server CI / Check mocks (push) Blocked by required conditions
Server CI / Check go mod tidy (push) Blocked by required conditions
Server CI / check-style (push) Blocked by required conditions
Server CI / Check serialization methods for hot structs (push) Blocked by required conditions
Server CI / Vet API (push) Blocked by required conditions
Server CI / Check migration files (push) Blocked by required conditions
Server CI / Generate email templates (push) Blocked by required conditions
Server CI / Check store layers (push) Blocked by required conditions
Server CI / Check mmctl docs (push) Blocked by required conditions
Server CI / Postgres with binary parameters (push) Blocked by required conditions
Server CI / Postgres (push) Blocked by required conditions
Server CI / Postgres (FIPS) (push) Blocked by required conditions
Server CI / Generate Test Coverage (push) Blocked by required conditions
Server CI / Run mmctl tests (push) Blocked by required conditions
Server CI / Run mmctl tests (FIPS) (push) Blocked by required conditions
Server CI / Build mattermost server app (push) Blocked by required conditions
Web App CI / check-lint (push) Waiting to run
Web App CI / check-i18n (push) Waiting to run
Web App CI / check-types (push) Waiting to run
Web App CI / test (push) Waiting to run
Web App CI / build (push) Waiting to run
Automatic Merge
2025-10-13 19:13:38 +03:00
Abbas Mehdi Naqvi
c597b4c70f
Bump prepackage Github plugin version to 2.5.0 (#34101) 2025-10-10 09:52:51 -04:00
Abbas Mehdi Naqvi
7f117d20ca
Bump prepackage Jira plugin version to 4.4.0 (#34091) 2025-10-08 17:38:51 -04:00
Doug Lauder
ab516db964
MM-65962: remove plugin-msteams (aka msteams-sync) from prepackaged plugins (#33994) 2025-09-29 10:22:35 -04:00
Abbas Mehdi Naqvi
0eeac66eef
Bump prepackage Gitlab plugin version to 1.11.0 (#33867) 2025-09-25 10:28:01 -04:00
Alejandro García Montoro
e87ee7fd9e
Prepackage Playbooks FIPS v2.4.2 (#33934) 2025-09-19 16:55:37 +02:00
Julien Tant
3f5665f324
Update playbooks plugin to v2.4.2 (#33927)
Updated mattermost-plugin-playbooks from v2.4.1 to v2.4.2 in the Makefile plugin packages list.
2025-09-18 18:38:01 +00:00
Eva Sarafianou
75d5371cd8
Update msteams plugin (#33899) 2025-09-16 13:35:26 +03:00
Nick Misasi
d1b7ccc454
Add support for pgvector in local dev (#33900) 2025-09-15 18:58:43 +00:00
Jesse Hallam
06b1bf3a51
MM-64878: FIPS Build (#33809)
* pin to ubuntu-24.04

* always use FIPS compatible Postgres settings

* use sha256 for remote cluster IDs

* use sha256 for client config hash

* rework S3 backend to be FIPS compatible

* skip setup-node during build, since already in container

* support FIPS builds

* Dockerfile for FIPS image, using glibc-openssl-fips

* workaround entrypoint inconsistencies

* authenticate to DockerHub

* fix FIPS_ENABLED, add test-mmctl-fips

* decouple check-mattermost-vet from test/build steps

* fixup! decouple check-mattermost-vet from test/build steps

* only build-linux-amd64 for fips

* rm entrypoint workaround

* tweak comment grammar

* rm unused Dockerfile.fips (for now)

* ignore gpg import errors, since would fail later anyway

* for fips, only make package-linux-amd64

* set FIPS_ENABLED for build step

* Add a FIPS-specific list of prepackaged plugins

Note that the names are still temporary, since they are not uploaded to
S3 yet. We may need to tweak them when that happens.

* s/golangci-lint/check-style/

This ensures we run all the `check-style` checks: previously,
`modernize` was missing.

* pin go-vet to @v2, remove annoying comment

* add -fips to linux-amd64.tz.gz package

* rm unused setup-chainctl

* use BUILD_TYPE_NAME instead

* mv fips build to enterprise-only

* fixup! use BUILD_TYPE_NAME instead

* temporarily pre-package no plugins for FIPS

* split package-cleanup

* undo package-cleanup, just skip ARM, also test

* skip arm for FIPS in second target too

* fmt Makefile

* Revert "rm unused Dockerfile.fips (for now)"

This reverts commit 601e37e0ff.

* reintroduce Dockerfile.fips and align with existing Dockerfile

* s/IMAGE/BUILD_IMAGE/

* bump the glibc-openssl-fips version

* rm redundant comment

* fix FIPS checks

* set PLUGIN_PACKAGES empty until prepackaged plugins ready

* upgrade glibc-openssl-fips, use non-dev version for final stage

* another BUILD_IMAGE case

* Prepackage the FIPS versions of plugins

* relocate FIPS_ENABLED initialization before use

* s/Config File MD5/Config File Hash/

* Update the FIPS plugin names and encode the + sign

* add /var/tmp for local socket manipulation

---------

Co-authored-by: Alejandro García Montoro <alejandro.garciamontoro@gmail.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2025-09-15 10:53:28 -03:00
Maria A Nunez
1a713021c6
Post history limit banner (#33846)
* Support for Entry license with limits + updates to Edition & License screen

* Refactor message history limit to use entry sku limits

* Fixed missing update on license change

* Fix typo in limit types

* Revert unnecessary thread change

* Revert merge issue

* Cleanup

* Fix CTAs of limit notifications

* Linting

* More linting

* Linting and fix tests

* More linting

* Fix tests

* PR feedback and fix tests

* Fix tests

* Fix test

* Fix test

* Linting

* Initial commit

* Cleanup

* PR Feedback

* Fix merge conflict

* PR feedback

* Fix bad merge

* PR feedback, Fix test

* PR feedback

* Fixed stacking banner issue

* Revert unnecessary change

* Linting

---------

Co-authored-by: Nick Misasi <nick.misasi@mattermost.com>
2025-09-13 21:20:02 -04:00
Alejandro García Montoro
2ed93b8b77
Increase timeout in test-server-race to two hours (#33883) 2025-09-12 17:41:16 +00:00
Rajat Dabade
e8288b8b71
Upgrade board prepackage version v9.1.6 (#33871) 2025-09-12 18:10:15 +05:30
Ben Schumacher
d78d59babe
Standardize request.CTX parameter naming to rctx (#33499)
* Standardize request.CTX parameter naming to rctx

- Migrate 886 request.CTX parameters across 147 files to use consistent 'rctx' naming
- Updated function signatures from 'c', 'ctx', and 'cancelContext' to 'rctx'
- Updated function bodies to reference the new parameter names
- Preserved underscore parameters unchanged as they are unused
- Fixed method receiver context issue in store.go

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Use request.CTX interface in batch worker

* Manual fixes

* Fix parameter naming

* Add linter check

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-09-10 15:11:32 +02:00
Julien Tant
21da322a92
Bump Playbooks plugin to v2.4.1 (#33859) 2025-09-08 18:46:01 -07:00
Jesse Hallam
8cace74692
MM-64486: Remove telemetry (#33606)
* MM-64486: Remove telemetry

Remove telemetry from Mattermost. We're no longer relying on Rudder upstream, and no longer making use of this information.

* recover mock for SystemStore.Get

* Fix TestClearPushNotificationSync by adding missing SystemStore mock

The test was failing because the SystemStore mock was missing the Get()
method that's required by the ServerId() function. Added the missing mock
to return a StringMap with SystemServerId.

* fix mocking issue

* Remove now-unused telemetry and constants

* Remove "Disable telemetry events" debug setting

* Remove empty functions

* Remove most "Telemetry tracking removed" comments

* Remove remains of DataPrefetch telemetry

* Remove now-unused prop from InviteMembersButton

* Remove trackDotMenuEvent

* Remove some more leftover comments

* Remove lingering logic related to trackingLocation

* Remove now-unused argument from useCopyText

* Remove lingering telemetry references from PreparingWorkspace

* fixup Remove trackDotMenuEvent

* Remove lingering telemetry references from signup page and password check

* Update snapshots and fix test broken by my changes

* Fix unintended behavior change in thread list filtering

Remove handleSetFilter wrapper that was accidentally modified during
telemetry removal. The function was calling clear() when switching to
unread filter, which was not the original behavior. Use setFilter
directly instead, restoring the original functionality.

* Remove unused useOpenDowngradeModal hook

The useOpenDowngradeModal hook was not being used anywhere in the codebase.

* Remove unused expandableLink from useExpandOverageUsersCheck

The expandableLink return value was not being used by any components.

* Re-add missing TeamLinkClicked performance telemetry

The mark(Mark.TeamLinkClicked) call was accidentally removed from the
handleSwitch function. This telemetry is needed for Looker-based
performance tracking.

* drop LogSettings.VerboseDiagnostics

---------

Co-authored-by: Harrison Healey <harrisonmhealey@gmail.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2025-09-04 18:46:18 +00:00
Christopher Speller
0f6623f4d8
Update Agents plugin to v1.3.1 (#33808) 2025-09-03 08:18:40 -07:00
Jesse Hallam
f56d02406c
consolidate go version computation (#33679)
* consolidate go version computation

* use Go from mattermost-build-server

* work around "error obtaining VCS status: exit status 128" in a container"

* no longer require sudo

* fix config-reset for GOFLAGS

* only test-postgres-binary on master/release

* add check-prereqs-enterprise to test-mmctl* to ensure go.work setup
2025-08-29 12:01:12 -03:00
Julien Tant
ec4a6235d4
MM-64518: Update Playbooks license requirements from Enterprise to Professional+ and unprepackage playbooks v1 (#31323)
* Remove TestPlaybooksLicenseChecking test function

Co-Authored-By: Claude <noreply@anthropic.com>

* fix test

* Remove playbooks v1 from prepackaged plugins

- Remove mattermost-plugin-playbooks-v1.41.1 from Makefile
- Remove license-based logic for choosing between playbooks v1/v2
- Remove obsolete test TestGetPrepackagedPlaybooksPluginIn
- Clean up transitionally prepackaged plugins logic
- Only ship playbooks v2.3.0 as regular prepackaged plugin

* Fix formatting with gofmt

* Fix linting issues

- Fix formatting in plugin_test.go
- Remove unnecessary blank line in plugin.go
- Use slices.Contains instead of manual loop

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2025-08-27 13:07:31 -07:00
Julien Tant
fc2a8d939a
prepackaged playbooks v2.4.0 (#33760)
Co-authored-by: Mattermost Build <build@mattermost.com>
2025-08-21 15:18:43 -07:00
Julien Tant
da8cedbd19
Prepackage playbooks v2.3.0 (#33574) 2025-07-28 15:17:25 -07:00
Agniva De Sarker
9dd8c056e7
MM-63368: Remove MySQL (#33458)
https://mattermost.atlassian.net/browse/MM-63368

```release-note
Remove MySQL support from the codebase entirely.
```
2025-07-22 20:40:55 +05:30
Christopher Poile
59f7432454
update calls (#33477)
Automatic Merge
2025-07-21 08:28:42 +03:00
Ben Schumacher
9add320011
[MM-64654] Migrate to modern Go features (#31820) 2025-07-18 12:54:51 +02:00
Rajat Dabade
4df1b70418
Upgrading board prepackage version to v9.1.5 (#33447) 2025-07-18 11:42:12 +05:30
Christopher Speller
c11df2ff7a
Update Agents plugin to v1.2.4 (#33273) 2025-07-04 08:28:48 +03:00
Christopher Speller
b3724d1151
Update Agents plugin to v1.2.2 (#32481) 2025-06-30 05:45:34 -07:00
Christopher Speller
124ceb54ee
Update Agents plugin to v1.2.1 (#32124) 2025-06-26 03:54:39 -07:00
Christopher Speller
48ec3fe473
Update Agents plugin to v1.2.0 (#31806)
* Update Agents plugin to v1.2.0

* Rename
2025-06-23 04:57:28 -07:00
Maria A Nunez
ec7c1e6d51
Removed NPS plugin (#31418)
Co-authored-by: Mattermost Build <build@mattermost.com>
2025-06-20 11:39:29 -04:00
Rajat Dabade
f980a538c5
Updated board prepackaged version to v9.1.4 (#31771) 2025-06-19 23:43:18 +05:30
Claudio Costa
8949a5c91c
Prepackage Calls v1.9.1 (#31652) 2025-06-17 11:31:37 -06:00
Rajat Dabade
9fe44bfa6a
Updated board prepackaged version to v9.1.3 (#31306)
Automatic Merge
2025-06-11 13:16:06 +03:00
Jesse Hallam
e6d8bf5835
Upgrade Go to 1.24.3 (#31220)
* Upgrade Go to 1.24.3

Updates the following files:
- server/.go-version: 1.23.9 → 1.24.3
- server/build/Dockerfile.buildenv: golang:1.23.9-bullseye → golang:1.24.3-bullseye
- server/go.mod: go 1.23.0 → go 1.24.3, toolchain go1.23.9 → go1.24.3
- server/public/go.mod: go 1.23.0 → go 1.24.3, toolchain go1.23.9 → go1.24.3

Also fixes non-constant format string errors introduced by Go 1.24.3's stricter format string checking:
- Added response() helper function in slashcommands/util.go for simple string responses
- Removed unused responsef() function from slashcommands/util.go
- Replaced responsef() with response() for translated strings that don't need formatting
- Fixed fmt.Errorf and fmt.Fprintf calls to use proper format verbs instead of string concatenation
- Updated marketplace buildURL to handle format strings conditionally

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Update generated mocks for Go 1.24.3

Regenerated mocks using mockery v2.53.4 to ensure compatibility with Go 1.24.3.
This addresses mock generation failures that occurred with the Go upgrade.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Update to bookworm and fix non-existent sha

Signed-off-by: Stavros Foteinopoulos <stafot@gmail.com>

* fix non-constant format string

---------

Signed-off-by: Stavros Foteinopoulos <stafot@gmail.com>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Stavros Foteinopoulos <stafot@gmail.com>
2025-06-10 15:04:57 -03:00
Caleb Roseland
949b45a0f9
bump playbooks 1.41.1 (#31276) 2025-06-02 15:47:32 -05:00
Jesse Hallam
e04f487cb8
adopt golangci-lint v2 (#31222)
* adopt golangci-lint v2

No actual linting changes in this commit, just upgraded tooling and
directives to ignore new linter rules. Adopting v2 solves some
gosec issues in v1 and also happens to be a nice performance boost!
As part of this PR, we also drop support for `MM_NO_ENTERPRISE_LINT`
which hasn't been need for a while anyway.

* simplify: go install is fine!

* missing GOBIN

* golangci-lint: drop legacy preset exclusion
2025-05-30 15:31:30 +00:00
Claudio Costa
611b2a8e79
[MM-62408] Server Code Coverage with Fully Parallel Tests (#30078)
* TestPool

* Store infra

* Store tests updates

* Bump maximum concurrent postgres connections

* More infra

* channels/jobs

* channels/app

* channels/api4

* Protect i18n from concurrent access

* Replace some use of os.Setenv

* Remove debug

* Lint fixes

* Fix more linting

* Fix test

* Remove use of Setenv in drafts tests

* Fix flaky TestWebHubCloseConnOnDBFail

* Fix merge

* [MM-62408] Add CI job to generate test coverage (#30284)

* Add CI job to generate test coverage

* Remove use of Setenv in drafts tests

* Fix flaky TestWebHubCloseConnOnDBFail

* Fix more Setenv usage

* Fix more potential flakyness

* Remove parallelism from flaky test

* Remove conflicting env var

* Fix

* Disable parallelism

* Test atomic covermode

* Disable parallelism

* Enable parallelism

* Add upload coverage step

* Fix codecov.yml

* Add codecov.yml

* Remove redundant workspace field

* Add Parallel() util methods and refactor

* Fix formatting

* More formatting fixes

* Fix reporting
2025-05-30 13:58:26 +02:00
Claudio Costa
56c6d8a9ab
Prepackage Calls v1.8.0 (#31124) 2025-05-21 09:21:39 +02:00
kshitij katiyar
14dfc71e10
Bump prepackage Jira plugin version to 4.3.0 (#31098)
Co-authored-by: Mattermost Build <build@mattermost.com>
2025-05-20 18:26:29 -04:00
Caleb Roseland
5021fc72c6
Prepackage Playbooks 2.2.0 (#31067) 2025-05-19 16:42:22 -05:00
kshitij katiyar
bc561620cb
Bump prepackage Github plugin version to 2.4.0 (#30668)
Co-authored-by: Doug Lauder <wiggin77@warpmail.net>
2025-05-16 00:15:09 -04:00
kshitij katiyar
7aa94ce95a
Bump prepackage GitLab plugin version to 1.10.0 (#30797)
* Bump prepackage Zoom plugin version to 1.9.0

* Bump prepackage GitLab plugin version to 1.10.0

* fixed zoom version

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2025-05-15 23:00:37 -04:00
Ibrahim Serdar Acikgoz
fbdecd806c
Prepackage Metrics Plugin v0.7.0 (#31039) 2025-05-15 14:24:44 +02:00
Ibrahim Serdar Acikgoz
a344b3225b
[MM-61756] Attribute Based Access Control - Phase 1 (#30785)
Attribute Based Access Control - Base
* MM-63662

* MM-63919

* MM-63954

* MM-63955 

* MM-63425

* MM-63426

* MM-63458

* MM-63459

* MM-63603

* MM-63845

* MM-64146

* MM-64199

* MM-64201

* MM-64233

* MM-64247

* MM-64268

---------

Co-authored-by: Harshil Sharma <harshilsharma63@gmail.com>
Co-authored-by: Pablo Andrés Vélez Vidal <pablovv2012@gmail.com>
Co-authored-by: abhijit-singh <abhijitsingh0702@gmail.com>
Co-authored-by: Harrison Healey <harrisonmhealey@gmail.com>
2025-05-15 11:33:08 +02:00