Fix/mos 0004#9
Merged
Merged
Conversation
…asset_price Rename tables, FK column, indexes, and constraints so the schema matches the unified asset domain model (stocks, ETFs, indexes, future crypto). All operations are metadata-only ALTER RENAME instant regardless of table size, no data copy required. Changes: - stocks asset - stock_prices asset_price - stock_id column asset_id - 6 indexes renamed (idx_stocks_* idx_asset_*, idx_stock_prices_* idx_asset_price_*) - uq_stock_price_date uq_asset_price_date - Table/column comments updated
Rename all Java classes, interfaces, and references: - Stock -> Asset, StockPrice -> AssetPrice (domain model) - StockRepository -> AssetRepository, StockPriceRepository -> AssetPriceRepository - StockService -> AssetService, StockController -> AssetController - StockDTO -> AssetDTO, StockNotFoundException -> AssetNotFoundException - StockPriceUpdateScheduler -> AssetPriceUpdateScheduler - CsvStockDataImporter -> CsvAssetDataImporter - StockServiceTest -> AssetServiceTest Update all JPQL queries, field names, method names, imports, log messages, javadoc, and test mocks to use new naming. Add CRYPTO to AssetType enum with -USD/-USDT symbol detection. API endpoint changed: /api/stocks -> /api/assets Note: StockDataProvider interface retained (renamed in next commit).
Rename provider interface and inner types: - StockDataProvider -> MarketDataProvider - StockProfile -> AssetProfile - StockDataException -> MarketDataException - getStockProfile() -> getAssetProfile() Update all implementations and consumers: - TwelveDataClient: implements MarketDataProvider - AlphaVantageClient: implements MarketDataProvider - AssetPriceUpdateScheduler: MarketDataProvider field - TwelveDataSeederService: MarketDataProvider field, all qualified type references updated
…ices, and tests - Rename stockApi.ts -> assetApi.ts with updated method names - Rename StockSelector.tsx/css -> AssetSelector.tsx/css - Update all component props: stocks -> assets, Stock -> Asset - Update SimulatorPage, InvestmentBuilder, InvestmentForm consumers - Update SectorFilter to use assetApi - Update PortfolioHeader variable names and CSS classes - Update SimulationResults table header and CSS class - Update test file with new API names and endpoints - Update cosmetic references in comments and tooltips - Add CRYPTO to AssetType union in api.types.ts
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.
No description provided.