mattermost/server
Sven Hüster 65d42edf75
fix guest user import when guest user doesn't have any memberships (#30975)
* fix guest user import when guest user doesn't have any memberships

This PR fixes an issue where a guest user without channel or team memberships
is not being imported and the importer will then throw an error and abort.

Key changes:
1. Updated validateGuestRoles function to allow system guests without any teams/channels
2. Improved error handling with specific error messages for different validation failures
3. Updated tests to reflect new behavior allowing system guests with no team memberships
4. Added new i18n error messages for better user feedback

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

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

* Extract i18n strings and update English locale

- Ran 'make i18n-extract' to extract translation strings from source code
- Alphabetically sorted translation keys in server/i18n/en.json
- Moved guest user validation error messages to proper alphabetical positions
- Removed obsolete/unused translation entries for cleaner locale file

Co-authored-by: Jesse Hallam <lieut-data@users.noreply.github.com>

* Revert "Extract i18n strings and update English locale"

This reverts commit 9d3887cb2e.

* actually fix i18n, needs enterprise access

* add integration test for importing guest user without team/channel memberships

---------

Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Jesse Hallam <lieut-data@users.noreply.github.com>
Co-authored-by: Jesse Hallam <jesse@mattermost.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2026-02-16 09:40:49 -04:00
..
bin
build bumps base image version to build new mattermost-build-server images (#35281) 2026-02-13 15:26:32 +01:00
channels fix guest user import when guest user doesn't have any memberships (#30975) 2026-02-16 09:40:49 -04:00
cmd MM-67335 Fix export files having mismatched permissions (#35182) 2026-02-11 11:04:58 -05:00
config MM-66625 - Drop EnableChannelScopeAccessControl; use permission system only (#35232) 2026-02-12 01:07:15 -05:00
einterfaces [MM-65979] Add Prometheus metrics for plugin webapp performance (#35075) 2026-02-13 18:07:54 +05:30
enterprise [MM-65979] Add Prometheus metrics for plugin webapp performance (#35075) 2026-02-13 18:07:54 +05:30
fips MM-65959: Add FIPS indicator to about dialog (#34463) 2025-12-11 18:37:29 -04:00
fonts
i18n fix guest user import when guest user doesn't have any memberships (#30975) 2026-02-16 09:40:49 -04:00
platform Force membership sync on reconnect (#35299) 2026-02-16 09:02:36 +00:00
public [MM-67488] Set autotranslation feature flag default to true (#35288) 2026-02-16 12:53:29 +01:00
scripts [MM-67030] Remove newsletter signup and replace with terms/privacy agreement (#34801) 2026-01-23 18:24:27 +00:00
templates MM-59966 - Compliance Export overhaul - feature branch (#29789) 2025-01-10 16:56:02 -05:00
tests Remove vestigial MySQL support (#34865) 2026-01-20 21:01:59 +00:00
.gitignore Update .server/gitignore to ignore all JSON files under the directory (#27593) 2024-07-11 09:12:57 +02:00
.go-version bumps go version to 1.24.13 (#35289) 2026-02-13 17:39:39 +01:00
.golangci.yml support for Elastic(Open)search CJK analysis plugins (#34784) 2026-02-12 10:05:23 +01:00
.sass-lint.yml
config.mk Enabling Prometheus, Grafana, Loki and Promtail running as containers by default in local dev environments (#34263) 2025-10-23 14:08:53 +02:00
copyright.txt
docker-compose.makefile.m1.yml support for Elastic(Open)search CJK analysis plugins (#34784) 2026-02-12 10:05:23 +01:00
docker-compose.makefile.yml Explicitly name Postgres container volume (#33954) 2025-10-02 09:29:00 -04:00
docker-compose.pgvector.yml Add support for pgvector in local dev (#33900) 2025-09-15 18:58:43 +00:00
docker-compose.yaml selinux security context fixes in docker compose (#34394) 2025-11-14 17:32:56 +01:00
go.mod bumps go version to 1.24.13 (#35289) 2026-02-13 17:39:39 +01:00
go.sum Add Default Agent Support and promote Agents to be part of suite (#35091) 2026-02-12 02:59:20 +00:00
Makefile Bumping prepackaged version of GitHub plugin (#35223) 2026-02-10 15:11:09 +02:00
path.go Centralize the GetPackagePath (#27004) 2024-05-15 12:05:13 -03:00