mattermost/server/channels/store/sqlstore
Doug Lauder 5b76fb11a5
MM-67647: Rename shared_channel_manager roles to follow system_ prefix convention (#35944)
* Rename shared_channel_manager and secure_connection_manager roles to use system_ prefix

  The new roles added in PR #35354 broke the naming convention that all
  system-level roles stored in Users.Roles are prefixed with "system_".
  Client-side code (role.includes('system')) and server-side code (explicit
  switch cases in applyMultiRoleFilters) relied on this convention, causing
  users assigned to these roles to not appear in the System Console.

  Also adds both roles to the applyMultiRoleFilters switch statement in
  user_store.go, which was missing them entirely.
2026-04-08 08:01:33 -04:00
..
access_control_policy_store.go MM-63848: Enforce unique names for parent access control policies (#35676) 2026-03-25 05:12:13 -05:00
access_control_policy_store_test.go [MM-63428] add access control policy store (#30597) 2025-04-02 13:39:28 +02:00
adapters.go [MM-55595] Use annotated logger in search layer (#25468) 2023-12-04 18:34:57 +01:00
adapters_test.go Mono repo -> Master (#22553) 2023-03-22 17:22:27 -04:00
attributes_store.go Remove vestigial MySQL support (#34865) 2026-01-20 21:01:59 +00:00
attributes_store_test.go [MM-61756] Attribute Based Access Control - Phase 1 (#30785) 2025-05-15 11:33:08 +02:00
audit_store.go avoid SELECT * in audit store (#30829) 2025-04-23 08:37:06 +02:00
audit_store_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
autotranslation_store.go GetAllForObject, use Master instead of replica (#35356) 2026-02-20 14:47:55 -05:00
autotranslation_store_test.go MM-65756 Database Migrations, Indexes and Methods for Auto-Translation (#34047) 2025-11-22 09:32:01 +08:00
bot_store.go s/Get(Master|Replica)X/Get\1/g (#29520) 2024-12-10 09:57:19 -04:00
bot_store_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
bulk_insert_test.go MM-68076 Chunk bulk INSERTs to respect PostgreSQL parameter limit (#35767) 2026-03-30 22:40:40 -04:00
channel_bookmark_store.go MM-61375: Update file handling for bookmarks (#30034) 2025-02-13 17:11:13 -06:00
channel_bookmark_store_test.go Channel Bookmarks (#25449) 2024-03-12 08:36:05 -06:00
channel_member_history_store.go MM-67616: Refactor shared channel membership sync to use ChannelMemberHistory (#35619) 2026-03-23 10:12:17 -04:00
channel_member_history_store_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
channel_store.go MM-68076 Chunk bulk INSERTs to respect PostgreSQL parameter limit (#35767) 2026-03-30 22:40:40 -04:00
channel_store_categories.go Standardize request.CTX parameter naming to rctx (#33499) 2025-09-10 15:11:32 +02:00
channel_store_categories_test.go [MM-52969] Revert "MM-51482_Create Apps Category and link to bots DM (#22918)" (#23647) 2023-06-14 11:05:21 +02:00
channel_store_test.go Add endpoint to update channel member autotranslations (#35072) 2026-02-05 13:43:50 +01:00
cluster_discovery_store.go avoid SELECT * in cluster discovery store (#30830) 2025-04-23 05:08:43 +08:00
cluster_discovery_store_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
command_store.go MM-63368: Remove MySQL (#33458) 2025-07-22 20:40:55 +05:30
command_store_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
command_webhook_store.go avoid SELECT * in command stores (#30831) 2025-04-22 19:37:10 +00:00
command_webhook_store_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
compliance_store.go Standardize request.CTX parameter naming to rctx (#33499) 2025-09-10 15:11:32 +02:00
compliance_store_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
content_flagging_store.go Migrate content flagging settings to database (#33989) 2025-10-13 12:24:01 +05:30
content_flagging_store_test.go Migrate content flagging settings to database (#33989) 2025-10-13 12:24:01 +05:30
context.go Standardize request.CTX parameter naming to rctx (#33499) 2025-09-10 15:11:32 +02:00
context_test.go [MM-62408] Server Code Coverage with Fully Parallel Tests (#30078) 2025-05-30 13:58:26 +02:00
desktop_tokens_store.go s/Get(Master|Replica)X/Get\1/g (#29520) 2024-12-10 09:57:19 -04:00
desktop_tokens_store_test.go [MM-37984] Allow Desktop App to authenticate via external providers outside of the app on supported servers (#24140) 2023-08-30 11:21:43 -04:00
draft_store.go MM-67380: COALESCE Drafts.Type to the empty string if NULL (#35109) 2026-01-29 21:14:56 +01:00
draft_store_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
emoji_store.go Standardize request.CTX parameter naming to rctx (#33499) 2025-09-10 15:11:32 +02:00
emoji_store_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
file_info_store.go Remove vestigial MySQL support (#34865) 2026-01-20 21:01:59 +00:00
file_info_store_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
group_store.go MM-68076 Chunk bulk INSERTs to respect PostgreSQL parameter limit (#35767) 2026-03-30 22:40:40 -04:00
group_store_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
init_test.go [MM-62408] Server Code Coverage with Fully Parallel Tests (#30078) 2025-05-30 13:58:26 +02:00
integrity.go s/Get(Master|Replica)X/Get\1/g (#29520) 2024-12-10 09:57:19 -04:00
integrity_test.go Standardize request.CTX parameter naming to rctx (#33499) 2025-09-10 15:11:32 +02:00
job_store.go Remove vestigial MySQL support (#34865) 2026-01-20 21:01:59 +00:00
job_store_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
license_store.go Standardize request.CTX parameter naming to rctx (#33499) 2025-09-10 15:11:32 +02:00
license_store_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
link_metadata_store.go MM-63368: Remove MySQL (#33458) 2025-07-22 20:40:55 +05:30
link_metadata_store_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
main_test.go [MM-62408] Server Code Coverage with Fully Parallel Tests (#30078) 2025-05-30 13:58:26 +02:00
migrate.go Remove vestigial MySQL support (#34865) 2026-01-20 21:01:59 +00:00
migrate_test.go MM-63368: Remove MySQL (#33458) 2025-07-22 20:40:55 +05:30
notify_admin_store.go avoid SELECT * in notify admin store (#30834) 2025-04-22 17:27:33 -03:00
notify_admin_store_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
oauth_store.go Add support for resource parameter with OAuth (#33743) 2025-11-11 15:24:42 -05:00
oauth_store_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
outgoing_oauth_connection_store.go Standardize request.CTX parameter naming to rctx (#33499) 2025-09-10 15:11:32 +02:00
outgoing_oauth_connection_store_test.go [MM-55028] Added OAuthOutgoingConnection store (#25221) 2023-11-20 09:42:07 -05:00
plugin_store.go MM-63368: Remove MySQL (#33458) 2025-07-22 20:40:55 +05:30
plugin_store_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
post_acknowledgements_store.go Flag post API (#33765) 2025-10-02 20:24:29 +05:30
post_acknowledgements_store_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
post_persistent_notification_store.go MM-63368: Remove MySQL (#33458) 2025-07-22 20:40:55 +05:30
post_persistent_notification_store_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
post_priority_store.go MM-66909 - Fix BoR sender not seeing priority label on new post (#34964) 2026-02-17 20:10:30 -05:00
post_priority_store_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
post_store.go MM-68076 Chunk bulk INSERTs to respect PostgreSQL parameter limit (#35767) 2026-03-30 22:40:40 -04:00
post_store_test.go MM-63368: Remove MySQL (#33458) 2025-07-22 20:40:55 +05:30
preference_store.go Remove vestigial MySQL support (#34865) 2026-01-20 21:01:59 +00:00
preference_store_test.go s/Get(Master|Replica)X/Get\1/g (#29520) 2024-12-10 09:57:19 -04:00
product_notices_store.go Remove SELECT * from product notices store (#31246) 2025-05-31 14:53:42 +05:30
product_notices_store_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
property_field_store.go Adds COALESCE guard for property fields before PSAv2 migrations (#35830) 2026-03-27 12:05:15 +01:00
property_field_store_test.go Adds the main Property System Architecture components (#29644) 2025-01-13 11:41:44 +00:00
property_group_store.go MM-63368: Remove MySQL (#33458) 2025-07-22 20:40:55 +05:30
property_group_store_test.go Adds the main Property System Architecture components (#29644) 2025-01-13 11:41:44 +00:00
property_value_store.go Merge the Integrated Boards MVP feature branch (#35796) 2026-03-27 10:36:35 +01:00
property_value_store_test.go Adds the main Property System Architecture components (#29644) 2025-01-13 11:41:44 +00:00
reaction_store.go Remove vestigial MySQL support (#34865) 2026-01-20 21:01:59 +00:00
reaction_store_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
read_receipt_store.go [MM-61758] Burn on read feature (#34703) 2025-12-11 07:59:50 +01:00
read_receipt_store_test.go [MM-61758] Burn on read feature (#34703) 2025-12-11 07:59:50 +01:00
recap_store.go [MM-66359] Recaps MVP (#34337) 2026-01-13 11:59:22 -05:00
recap_store_test.go [MM-66359] Recaps MVP (#34337) 2026-01-13 11:59:22 -05:00
remote_cluster_store.go MM-62751: [Shared Channels] Allow remote users to be discoverable in the create DM/GM modal (#30918) 2025-06-13 16:51:12 +02:00
remote_cluster_store_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
retention_policy_store.go Remove vestigial MySQL support (#34865) 2026-01-20 21:01:59 +00:00
retention_policy_store_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
role_store.go [MM-67741] Scope role_updated WS events to affected team/channel (#35497) 2026-03-16 14:36:55 -04:00
role_store_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
scheduled_post_store.go Handled null column for scheduled post type in database (#35193) 2026-02-23 08:45:07 +05:30
scheduled_post_store_test.go Feature scheduled messages (#28932) 2024-11-04 11:39:35 +05:30
schema_dump.go Remove vestigial MySQL support (#34865) 2026-01-20 21:01:59 +00:00
schema_dump_test.go MM-65756 Database Migrations, Indexes and Methods for Auto-Translation (#34047) 2025-11-22 09:32:01 +08:00
scheme_store.go [MM-67741] Scope role_updated WS events to affected team/channel (#35497) 2026-03-16 14:36:55 -04:00
scheme_store_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
session_store.go Remove vestigial MySQL support (#34865) 2026-01-20 21:01:59 +00:00
session_store_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
shared_channel_store.go MM-68158: Fix shared channel remote display and notify UI on invite completion (#35908) 2026-04-03 02:06:01 -04:00
shared_channel_store_membership.go MM-67616: Refactor shared channel membership sync to use ChannelMemberHistory (#35619) 2026-03-23 10:12:17 -04:00
shared_channel_store_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
sqlx_wrapper.go Remove vestigial MySQL support (#34865) 2026-01-20 21:01:59 +00:00
sqlx_wrapper_test.go MM-63368: Remove MySQL (#33458) 2025-07-22 20:40:55 +05:30
status_store.go MM-68076 Chunk bulk INSERTs to respect PostgreSQL parameter limit (#35767) 2026-03-30 22:40:40 -04:00
status_store_test.go MM-62142: remove SELECT * from status store (round 2) (#30060) 2025-02-06 12:36:31 -04:00
store.go MM-68076 Chunk bulk INSERTs to respect PostgreSQL parameter limit (#35767) 2026-03-30 22:40:40 -04:00
store_test.go fix: prevent sql.DB connectionCleaner race and harden flaky tests (#35891) 2026-03-31 16:58:09 -04:00
system_store.go MM-65960: Avoid replica race lag when accessing TelemetryID (#34586) 2025-12-11 17:34:36 -04:00
system_store_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
team_store.go MM-68076 Chunk bulk INSERTs to respect PostgreSQL parameter limit (#35767) 2026-03-30 22:40:40 -04:00
team_store_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
temporary_post_store.go Changes for BoR post soft-deletion (#35100) 2026-02-12 05:25:49 -05:00
temporary_post_store_test.go [MM-61758] Burn on read feature (#34703) 2025-12-11 07:59:50 +01:00
terms_of_service_store.go MM-62160: Avoid SELECT * in user_terms_of_service.go and terms_of_service_store.go (#30423) 2025-03-28 15:44:52 -03:00
terms_of_service_store_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
testpool.go [MM-67671] Add CJK Post search support for PostgreSQL (#35260) 2026-02-25 10:18:51 -05:00
thread_store.go MM-68076 Chunk bulk INSERTs to respect PostgreSQL parameter limit (#35767) 2026-03-30 22:40:40 -04:00
thread_store_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
tokens_store.go Magic link (passwordless) authentication for guests (#34264) 2025-11-20 14:06:23 +01:00
tokens_store_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
upload_session_store.go Standardize request.CTX parameter naming to rctx (#33499) 2025-09-10 15:11:32 +02:00
upload_session_store_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
user_access_token_store.go MM-63368: Remove MySQL (#33458) 2025-07-22 20:40:55 +05:30
user_access_token_store_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
user_store.go MM-67647: Rename shared_channel_manager roles to follow system_ prefix convention (#35944) 2026-04-08 08:01:33 -04:00
user_store_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
user_terms_of_service.go MM-62160: Avoid SELECT * in user_terms_of_service.go and terms_of_service_store.go (#30423) 2025-03-28 15:44:52 -03:00
user_terms_of_service_store_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
utils.go MM-68076 Chunk bulk INSERTs to respect PostgreSQL parameter limit (#35767) 2026-03-30 22:40:40 -04:00
utils_test.go MM-68076 Chunk bulk INSERTs to respect PostgreSQL parameter limit (#35767) 2026-03-30 22:40:40 -04:00
view_store.go Merge the Integrated Boards MVP feature branch (#35796) 2026-03-27 10:36:35 +01:00
view_store_test.go Merge the Integrated Boards MVP feature branch (#35796) 2026-03-27 10:36:35 +01:00
webhook_store.go MM-62154: Avoid SELECT * in webhook_store.go (#30463) 2025-03-28 21:58:26 +00:00
webhook_store_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30