Skip to content

Added SnapshotAutoUpdater to handle snapshot updates#20

Merged
petruki merged 1 commit into
masterfrom
staging
Sep 30, 2025
Merged

Added SnapshotAutoUpdater to handle snapshot updates#20
petruki merged 1 commit into
masterfrom
staging

Conversation

@petruki
Copy link
Copy Markdown
Member

@petruki petruki commented Sep 30, 2025

This pull request introduces a snapshot auto-update mechanism to the Switcher client, enabling periodic background updates of snapshots. It also refines context and authentication initialization, and improves the test suite to cover the new functionality. The most important changes are grouped below:

Snapshot Auto-Update Feature:

  • Added the SnapshotAutoUpdater class to handle periodic snapshot updates in a background thread, with methods to schedule and terminate updates. (switcher_client/lib/snapshot_auto_updater.py)
  • Updated the Client class to use SnapshotAutoUpdater for scheduling and terminating snapshot auto-updates, removing the previous check logic. (switcher_client/client.py) [1] [2] [3]

Context and Authentication Improvements:

  • Refactored ContextOptions and Context constructors to use type annotations and improved parameter handling. (switcher_client/lib/globals/global_context.py)
  • Simplified GlobalAuth.init and RemoteAuth.init to remove the unused url parameter. (switcher_client/lib/globals/global_auth.py, switcher_client/lib/remote_auth.py) [1] [2]

@petruki petruki self-assigned this Sep 30, 2025
@sonarqubecloud
Copy link
Copy Markdown

@petruki petruki merged commit 63b8ac9 into master Sep 30, 2025
13 checks passed
@petruki petruki deleted the staging branch September 30, 2025 23:25
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.

1 participant