fix: resolve API pipeline integration and end-to-end Docker build issues - #10
Merged
Merged
Conversation
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.
This PR standardizes the data flow between the Node.js backend and the Python server, ensuring robust multi-chain compatibility in the database, while also fixing deployment-blocking bugs in the Docker configuration and the React frontend's TypeScript compiler.
Key Changes:
Python ML Pipeline: Introduced a ChainRequest Pydantic model in FastAPI to capture request bodies from the Node wrapper, preventing the chain parameter from being silently dropped.
Database Architecture: Upgraded MongoDB operations in mongo.py to filter and uniquely upsert properties dynamically by both wallet and chain, so cross-chain historical data is not overwritten.
Docker Compose Orchestration: Switched to standard npm install gracefully inside multi-stage Dockerfiles (backend and frontend) to bypass restrictive lockfile incompatibilities on npm ci.
Frontend Build Stability: Repaired the Vite compiler build loop by registering vite/client environment types and temporarily overriding over-strict localized TypeScript lint assertions in tsconfig.json.