Skip to content

Fix rate limiting groups with zero int group - #731

Merged
hansott merged 4 commits into
mainfrom
fix-rate-limiting-groups-with-zero-int-group-id
Oct 7, 2026
Merged

hansott merged 4 commits into
mainfrom
fix-rate-limiting-groups-with-zero-int-group-id

Conversation

@marksmith

Copy link
Copy Markdown
Contributor

This change addresses an issue with set_rate_limiting_group, where the group_id is 0; when the group_id is 0 set_rate_limiting_group logs the warning Group ID cannot be empty. and returns early, because Python considers 0 to be falsy and this "empty". This is an error because 0 is a valid (and common, first) group id.

Comment thread aikido_zen/middleware/set_rate_limit_group.py Outdated
@hansott
hansott merged commit caf37ee into main Oct 7, 2026
125 checks passed
@hansott
hansott deleted the fix-rate-limiting-groups-with-zero-int-group-id branch October 7, 2026 08:14
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.

3 participants