Skip to content

[pull] master from mattermost:master - #895

Merged
pull[bot] merged 4 commits into
code:masterfrom
mattermost:master
Aug 7, 2026
Merged

[pull] master from mattermost:master#895
pull[bot] merged 4 commits into
code:masterfrom
mattermost:master

Conversation

@pull

@pull pull Bot commented Aug 7, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

cursor Bot and others added 4 commits August 7, 2026 11:27
…ings are not recommended for production (#37407)

* [MM-69737] Add production warning callouts to System Console settings

Add a reactive red danger SectionNotice under System Console settings when
they are configured to a value not recommended for production. Introduces an
optional production_warning descriptor on the admin schema pipeline (and the
LDAP wizard pipeline) that renders between the control and the help text.

Co-authored-by: mattermost-code <matty-code@mattermost.com>

* [MM-69737] Add tests for production warning callout rendering

Cover the schema pipeline rendering path: danger SectionNotice shows for the
insecure value, is absent for the recommended value, toggles reactively without
saving, and works for a wildcard text setting.

Co-authored-by: mattermost-code <matty-code@mattermost.com>

* [MM-69737] Suppress production warning for disabled settings; expand tests

Do not render the danger callout when the setting control is disabled (e.g. SAML
Verify while SAML sign-in is off), so the warning only appears for active,
editable settings. Add coverage for the disabled case, the warns-on-false
predicate, and the LDAP wizard render pipeline.

Co-authored-by: mattermost-code <matty-code@mattermost.com>

* [MM-69737] Address CodeRabbit nitpicks for production warning

Reuse isDisabled in renderHelpTextWithWarning and document that
production_warning is wired for bool/text settings only.

Co-authored-by: mattermost-code <matty-code@mattermost.com>

* [MM-69737] Fix eslint lines-around-comment on production_warning doc

Co-authored-by: mattermost-code <matty-code@mattermost.com>

* Fix SectionNotice title margin in admin console

Remove unwanted bottom margin on SectionNotice h4 titles caused by
admin console's general h4 styling rule.

Co-authored-by: Matthew Birtch <mattbirtch@gmail.com>

* Remove redundant banner warning and scope SectionNotice title fix

- Remove redundant top-level banner warning for testing commands on
  Developer Settings page, since inline production warnings now cover
  this functionality
- Scope SectionNoticeTitle margin fix to only production warning
  callouts (.admin-console__production-warning) rather than all
  SectionNotice components in admin console

Addresses feedback from @matthewbirtch and CodeRabbit review.

Co-authored-by: Matthew Birtch <mattbirtch@gmail.com>

* Remove unused i18n string admin.service.testingWarning

The banner using this string was removed in favor of inline
production warnings, so the i18n string is no longer needed.

Co-authored-by: Joram Wilander <joram@mattermost.com>

* Remove obsolete test for deleted warning banner

The test was checking for a warning banner before the EnableTesting
setting, but that banner was removed in favor of inline production
warnings. The remaining test (checking help text guidance) still passes
and provides the necessary validation.

Co-authored-by: Joram Wilander <joram@mattermost.com>

* Address PR feedback: copy changes to production warning text

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: mattermost-code <matty-code@mattermost.com>
Co-authored-by: Matthew Birtch <mattbirtch@gmail.com>
Co-authored-by: Joram Wilander <joram@mattermost.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
)

* Return error when inviting deactivated users to team

When a user account is deactivated, attempts to invite them to a team
via email should return an error rather than attempting to send the
invitation email.

Added deactivated user checks in:
- InviteNewUsersToTeamGracefully
- InviteNewUsersToTeam
- InviteGuestsToChannelsGracefully
- InviteGuestsToChannels
- localInviteUsersToTeam (mmctl path)

For each invite email, the code now calls GetUserByEmail and checks
whether the returned user has DeleteAt != 0 (deactivated). If so, the
invite is rejected with api.team.invite_members.account_deactivated.app_error.

Fixes MM-57390

Co-authored-by: mattermost-code <matty-code@mattermost.com>

* Add missing deactivated-user invite tests for CI coverage

Add tests for InviteGuestsToChannels (non-graceful) and
localInviteUsersToTeam (graceful and non-graceful) to satisfy
PR test analysis requirements.

Co-authored-by: mattermost-code <matty-code@mattermost.com>

* Handle GetUserByEmail errors in deactivated-user invite checks

Add IsDeactivatedUserEmail helper that distinguishes user-not-found
from lookup failures, and use it across invite paths to avoid
silently proceeding when email lookups fail.

Co-authored-by: mattermost-code <matty-code@mattermost.com>

* Extract checkForDeactivatedInvites helper to DRY up invite paths

* Tighten checkForDeactivatedInvites doc comment

* Fix govet err shadow in InviteGuestsToChannels

Reuse the existing err from prepareInviteGuestsToChannels instead of
redeclaring it when calling checkForDeactivatedInvites, which was
failing check-style (govet shadow). Apply the same pattern in
InviteNewUsersToTeam for consistency.

Co-authored-by: mattermost-code <matty-code@mattermost.com>

* chore: retrigger CI and CodeRabbit review

Co-authored-by: mattermost-code <matty-code@mattermost.com>

* Reuse CheckForDeactivatedInvites in local invite path

Export the helper and replace the duplicated non-graceful deactivated
email loop in localInviteUsersToTeam so it shares the same logic as
InviteNewUsersToTeam and InviteGuestsToChannels.

Co-authored-by: mattermost-code <matty-code@mattermost.com>

* chore: retrigger CodeRabbit after quiet period

Co-authored-by: mattermost-code <matty-code@mattermost.com>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: mattermost-code <matty-code@mattermost.com>
…keys (#37846)

* [MM-70130] Add permanent banner for non-production developer license keys

Co-authored-by: nick.misasi <nick.misasi@mattermost.com>

* [MM-70130] Update non-production license banner text

Co-authored-by: Nick Misasi <nick13misasi@gmail.com>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
@pull pull Bot locked and limited conversation to collaborators Aug 7, 2026
@pull pull Bot added the ⤵️ pull label Aug 7, 2026
@pull
pull Bot merged commit 68535c1 into code:master Aug 7, 2026
4 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants