You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the PR. I found four issues to address before merging:
Preserve newer revisions (dankmemer/_stored_events.py:277). Skipping an unchanged value also skips saving its newer revision. Accepting revision 1, then revision 3 with the same value, leaves revision 1 saved—so a stale revision 2 can subsequently be accepted, including after restarting. Please keep persisting advancing revisions.
Distinguish rate limits from server cooldowns (dankmemer/http/_budget.py:68). _cooldown_until also covers HTTP 503 backoff. The new logic can turn a subsequent request’s deadline failure into RateLimited(429) even though no rate limit occurred. Please preserve that distinction.
Fix strict Pyright errors (dankmemer/resources/_queries.py:42). Removing the cast leaves the iterable’s elements typed as Unknown, producing two errors. Explicitly narrowing to Iterable[object] before validating each element should resolve this while preserving support for iterable tags.
Fix the Mypy redefinition error (dankmemer/http/_budget.py:67). retry_after is already defined in the daily-limit branch. Please declare it once or use a separate variable name.
Both behavior bugs reproduce with the PR changes and pass against main. Please add regression tests for those cases, update existing tests for the intentional behavior changes, and get the test suite and quality checks green.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does:
Catch closed sessions and preserve network error causes.
Keep rate limit details when waits exceed request deadlines.
Skip unchanged event commits and retry failed interval polls sooner.
Cache normalized catalog names for autocomplete.