fix(demo): cleanup and fix some features of ShiftIQ demo#22
Open
tylerhutcherson wants to merge 1 commit intomainfrom
Open
fix(demo): cleanup and fix some features of ShiftIQ demo#22tylerhutcherson wants to merge 1 commit intomainfrom
tylerhutcherson wants to merge 1 commit intomainfrom
Conversation
🛡️ Jit Security Scan Results✅ No security findings were detected in this PR
Security scan by Jit
|
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Note
Medium Risk
Touches Redis Streams SSE handling and the data import pipeline (batching + optional Redis key deletion), which could affect demo runtime behavior and data integrity if misconfigured.
Overview
Improves the ShiftIQ finance-researcher demo’s live update flow by adding an internal tool,
recent_watchlist_events, that reads the newest Redis Stream entries and normalizes legacy event fields (payload JSON,company_id,document_id, andimportance_score). The finance-researcher prompt/docs are updated to route “what’s new” questions through this stream-backed tool, and the random event publisher now emits compatible IDs and (for SEC filings) links to the latest loadedResearchDocument.Hardens backend streaming and loading: SSE event streaming now uses a shorter
DOMAIN_EVENT_BLOCK_MSand explicitly handles Redis timeouts with keepalive comments, andscripts/load_data.pynow supports configurable import batching plus an optional--clear-existingmode to delete domain-owned Redis keys before reimport. The Makefile threads throughLOAD_DATA_ARGSand setsDEMO_DOMAIN=$(DOMAIN)when running the backend.Reviewed by Cursor Bugbot for commit 607e622. Bugbot is set up for automated code reviews on this repo. Configure here.