Skip to content

fix: restore get_firestore_client & get_state_doc_ref, align cloud param names#78

Merged
Pigbibi merged 1 commit into
mainfrom
fix/live-services-import-error
Jun 28, 2026
Merged

fix: restore get_firestore_client & get_state_doc_ref, align cloud param names#78
Pigbibi merged 1 commit into
mainfrom
fix/live-services-import-error

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Jun 28, 2026

Copy link
Copy Markdown
Collaborator

Summary

Fixes ImportError: cannot import name 'get_firestore_client' from 'live_services' that broke Runtime workflow #3208.

Root Cause

Refactoring of live_services.py removed get_firestore_client and get_state_doc_ref in favor of _get_document_store(), but trend_pool_support.py and main.py still import those functions.

Changes

  • Restored get_firestore_client() wrapping DocumentStore.client (GcpDocumentStore)
  • Restored get_state_doc_ref() using the Firestore client
  • Renamed gcs_prefix_uricloud_prefix_uri, gcp_project_idproject_id in cycle_service.py

Verification

  • from live_services import get_firestore_client, get_state_doc_ref
  • from trend_pool_support import infer_base_asset ✅ (full import chain)

🤖 Generated with Claude Code

…s, align param names

- Add back get_firestore_client() wrapping DocumentStore.client (GcpDocumentStore)
- Add back get_state_doc_ref() using the Firestore client
- Keep _get_document_store() for internal use in load/save_trade_state
- Rename gcs_prefix_uri → cloud_prefix_uri, gcp_project_id → project_id in cycle_service

Fixes ImportError in trend_pool_support.py → live_services import chain.

Co-Authored-By: Claude <noreply@anthropic.com>
@Pigbibi Pigbibi force-pushed the fix/live-services-import-error branch from 85206f8 to da0f31d Compare June 28, 2026 23:31
@Pigbibi Pigbibi merged commit 6b16cf6 into main Jun 28, 2026
1 of 2 checks passed
@Pigbibi Pigbibi deleted the fix/live-services-import-error branch June 28, 2026 23:32
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