Skip to content

v1.3.0: Automatic Wiki Size Limit Handling

Choose a tag to compare

@bakerboy448 bakerboy448 released this 18 Oct 02:44
· 28 commits to main since this release

What's New

This release fixes the critical issue where the OpenSignups wiki couldn't update due to Reddit's 524KB size limit.

✨ Features

  • Automatic content trimming: Bot now automatically removes older days when approaching Reddit's wiki size limit
  • Smart trimming at 90% threshold: Ensures wiki never exceeds limits while keeping maximum content
  • Enhanced error reporting: Better error messages without requiring debug mode
  • Size tracking: Shows wiki size percentage in all update logs

🐛 Bug Fixes

  • Fixed 403 errors when wiki pages exceed Reddit's size limit
  • Fixed OpenSignups wiki update failures
  • Improved error context for troubleshooting

📊 How It Works

When wiki content approaches 90% of Reddit's 524KB limit:

  1. Bot automatically identifies oldest days
  2. Trims content day-by-day until under threshold
  3. Adds note showing how many days were trimmed
  4. Continues normal operation

Example Output

Wiki approaching size limit - trimming 28 oldest day(s) of entries
Wiki content size after trimming: 463,643 bytes (88.4% of limit)
Successfully updated wiki page: /r/OpenSignups/wiki/modlog

No manual intervention required - the bot handles size limits automatically!