Skip to content

List at most 10 duplicate slots per locale in Discord - #70

Merged
Bilb merged 1 commit into
mainfrom
feat/summarise-duplicate-bursts
Oct 6, 2026
Merged

Bilb merged 1 commit into
mainfrom
feat/summarise-duplicate-bursts

Conversation

@Bilb

@Bilb Bilb commented Oct 6, 2026 •

Copy link
Copy Markdown
Collaborator

On 2026-10-06 crowdin-duplicates found 462 new duplicate slots in Korean and split them over 14 Discord messages. Discord rate-limited message 13, so the run failed without writing its state.

Each locale is now one embed: up to 10 slots with editor links, or the first 9 and …and N more: open <locale> in the editor linking to the locale in the Crowdin editor. That applies to new and resolved slots alike. The state still records every slot.

Burst Before After
462 slots in one locale 14 messages 1
50 slots in each of 80 locales 160 20

Bursts across many locales still post several messages back to back. Pacing posts in post_to_discord is the fix for that, and is not in this PR.

Testing

  • python -m unittest discover -s tests -t .: 778 OK; ruff clean.
  • New tests: a 462-slot locale is one message ending in the count and the locale link; a locale at exactly 10 is listed in full; 80 locales of 50 stay within Discord's per-message limits.

A locale past 10 new or resolved slots lists the first 9, then the count left and a
link to the locale in the Crowdin editor, rather than splitting into "(cont.)" embeds.
A one-locale burst like Korean's 462 slots is one message instead of 14, which ran
into Discord's per-channel rate limit and failed the run.
@Bilb
Bilb merged commit b6fb151 into main Oct 6, 2026
3 checks passed
@Bilb
Bilb deleted the feat/summarise-duplicate-bursts branch October 6, 2026 04:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants