251 Commits (8797b8cd96d11231123b9104deedbb3fee82bac3)
 

Author SHA1 Message Date
MrWaradana 8797b8cd96 feat: Enhance logging by defaulting request ID to SYSTEM, filtering internal attributes, and adding request lifecycle logs in the middleware. 9 months ago
MrWaradana c81bb21ef5 feat: Implement ANSI color formatting for JSON log output when writing to a terminal. 9 months ago
MrWaradana 1e8633ac5d add location logger json format 9 months ago
MrWaradana dac589ad9a refactor: standardise API update and delete endpoints to use POST method with `/update` and `/delete` paths. 9 months ago
MrWaradana 762460baa5 feat: Introduce `DEV_USERNAME` and `DEV_PASSWORD` configuration variables and use them as default credentials for sign-in functions. 9 months ago
MrWaradana 0c4e62a761 feat: Compile XSS and SQLi string patterns into regex objects. 9 months ago
MrWaradana 67342b463c feat: Add JSON logging, centralize request ID context management, and introduce schema validation for year and sequence fields. 9 months ago
MrWaradana 7bcc102f1b Refactor attribute access for clarity and robustness, and enhance subprocess command execution by using a list for arguments. 9 months ago
MrWaradana f381a46186 feat: Introduce `EquipmentHistoricalMasterData` model and expose replacement history in equipment details. 9 months ago
MrWaradana 8913ba6611 feat: Localize server-sent event messages from English to Indonesian. 9 months ago
MrWaradana bc56649e0f fix: Add lowercase `Content-type` header to event-stream responses for improved compatibility. 9 months ago
MrWaradana 27954e3a17 fix: Add standard Server-Sent Events headers to StreamingResponse for improved client compatibility. 9 months ago
MrWaradana 50153ef230 refactor: reorder the `get_equipment` endpoint definition within the router. 9 months ago
MrWaradana 3d0df4408b refactor: relocate the `get_equipment` endpoint to an earlier position in the router. 9 months ago
MrWaradana 0af5cceabd feat: Implement acquisition data change detection, historical archiving, and conditional re-insertion before simulation. 9 months ago
MrWaradana 47c333b318 fix: Re-insert actual data using `query_data` after database commit. 9 months ago
MrWaradana 6995aca3db Fix: Corrected `raw_loss_output_MW` parameter to be a string literal in data insertion and service functions. 9 months ago
MrWaradana 8f3a74c597 feat: Implement historical data archiving for equipment when acquisition year or cost is updated. 9 months ago
MrWaradana 151489a642 feat: Stream real-time status updates during equipment processing, enhance prediction robustness by validating asset data, and remove `await` from EAC calculation calls. 9 months ago
MrWaradana 9e9b526d46 feat: Move and enhance `update_initial_simulation_data` to fetch acquisition year and cost from `wo_maximo` and update equipment records before simulation. 9 months ago
MrWaradana 68182c42b8 clean comments schema 9 months ago
CIzz22 08b3f4e5f8 Update 'src/middleware.py' 9 months ago
MrWaradana 4a0fc31925 feat: Include acquisition cost in equipment update logic and database updates. 9 months ago
MrWaradana c42c54aad1 refactor: Switch to using `query_data` instead of `insert_actual_data` for retrieving equipment data. 9 months ago
MrWaradana 1e27adfa31 feat: Implement historical data archiving for equipment and transaction records when the acquisition year is updated. 9 months ago
MrWaradana e1db01f9a8 feat: Add `acquisition_year_ref` column to the equipment model and update the historical data schema to use `HistoricalBase`. 9 months ago
MrWaradana d10f9a2bde feat: Implement historical transaction records and refine actual data processing logic with acquisition year handling and targeted execution. 9 months ago
MrWaradana 9f9238c088 remove the acquisition_year_ref 9 months ago
MrWaradana 10cab6d4be removing unnecessary notes 9 months ago
MrWaradana 3fbf941cfd update for new acquisition year replacement calculation minimum eac 9 months ago
MrWaradana 4ff7e29d31 feat: Dynamically update equipment acquisition year from production data and link prediction records to this reference. 9 months ago
MrWaradana 9cda4512c4 fix update equipment recalculation error 9 months ago
MrWaradana 82120c26f4 remove debug print 9 months ago
MrWaradana 1f38f1a80f feat: Standardize equipment API responses to `EquipmentDataMaster` and optimize LCC calculations by pre-fetching parameters and including new material cost fields. 9 months ago
MrWaradana b72e1ec51d feat: Implement `/simulate-all` endpoint to run predictions and EAC for all equipment, and refine `is_actual` determination logic. 9 months ago
MrWaradana ab54c61416 remove raise exception 9 months ago
MrWaradana c35ec7df6b fix items_per_page params 9 months ago
Cizz22 7cad6cc8c4 add validation 9 months ago
CIzz22 bbfa010b39 Update middleware code in main.py 10 months ago
CIzz22 da2ce29c45 add middleware 10 months ago
MrWaradana 0087f66367 fix import credentials 10 months ago
MrWaradana 2aae6bc073 add the missing import 10 months ago
MrWaradana b90202214b fix config env credentials 10 months ago
MrWaradana 63110dd412 fix env missing 10 months ago
MrWaradana 022d2d0fc7 fix env import lookup 10 months ago
MrWaradana eba0d1565f fix src import 10 months ago
MrWaradana 9df47dfbfb fix import config 10 months ago
MrWaradana 44a154c38d fix dynamic env database hostname and port 10 months ago
MrWaradana e3963ff5f2 feat: Add field validator to convert empty strings to None for specific numeric fields. 10 months ago
MrWaradana 25288d18f5 refactor: improve EAC calculation output clarity and adjust Yeardata query year sorting from descending to ascending. 10 months ago