Skip to content

test(database): cover Timeout read as Mute in storage - #397

Merged
RedStar071 merged 1 commit into
V7from
fix/mute-timeout-review
Nov 13, 2026
Merged

RedStar071 merged 1 commit into
V7from
fix/mute-timeout-review

Conversation

@RedStar071

@RedStar071 RedStar071 commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Follow-up to #396, from its pullfrog review. Stacked on #208.

🔗 Linked issue

None.

❓ Type of change

  • 🧪 Tests
  • 📖 Documentation (locale string)

📚 Description

  • Adds projects/database/tests/settings/timeout-as-mute.test.ts. A rule or a warning threshold saved as Timeout, before the migration or after a rollback, now has a test that it reads as Mute.
  • The description of moderation.default-warn-thresholds now says the default mute is a timeout when moderation.mute-timeout is on or there is no muted role.

moderation.mute-timeout stays on for every server after the migration, including servers that only used the muted role. This is intended, and the Breaking Changes section of #396 now says so.

🤖 AI disclosure: Wolfstar Agent Kit modified this description. AI open source policy.

RetriggerView in GreptileConfidence Score: 5/5

This PR appears safe to merge; no actionable issues were found.

Reviews (1) · Last reviewed commit: "test(database): cover Timeout read as Mu..." · Reviewed by Greptile

Rows saved before the migration, or after a rollback, still hold Timeout.
Also point the default warn thresholds description at moderation.mute-timeout.
@coldtea-pr-lens

Copy link
Copy Markdown

Note

The title starts with test(database):, so PR Lens left this pull request undrawn. Comment @pr-lens draw to draw it

github.comment.notice: false in .github/pr-lens.yml turns this note off

@github-project-automation github-project-automation Bot moved this to Todo in Wolfstar Nov 12, 2026

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes: the single commit on top of #208, covering the new test and a one-clause wording fix to a locale string.

  • timeout-as-mute.test.ts: Adds two tests showing that a Timeout stored on a GuildAutoModerationRule row or a GuildWarnThreshold row reads back as Mute. The stubbed ORM matches how fetchAutoModerationRules (takes the orm) and fetchWarnThresholds (takes the db) call it. It follows the style of the existing tests/legacy files.
  • moderationDefaultWarnThresholds string: The description now says the default mute is a timeout when moderation.mute-timeout is on or there is no muted role. That matches moderationMuteTimeout defaulting to true in constants.ts. en-US/settings.json and the generated i18next.d.ts are updated identically.

Pullfrog  | View workflow run | Using claude-sonnet-5-5 | 𝕏

@github-project-automation github-project-automation Bot moved this from Todo to Review Approved in Wolfstar Nov 12, 2026
@RedStar071
RedStar071 merged commit 4583fc3 into V7 Nov 13, 2026
8 checks passed
@RedStar071
RedStar071 deleted the fix/mute-timeout-review branch November 13, 2026 09:16
@github-project-automation github-project-automation Bot moved this from Review Approved to Done in Wolfstar Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant