Commit Graph

  • 6128922e80 Merge branch 'main' of 145.223.23.187:DigitalTwin/be-lcca main Cizz22 2026-03-09 11:10:17 +0700
  • f9c8b0d749 fix pydantic error list MrWaradana 2026-03-06 16:27:21 +0700
  • 3a7124386b refactor: Centralize `search` and `items_per_page` query parameters into `CommonParams` and remove redundant definitions from specific schema query classes. MrWaradana 2026-03-06 15:58:55 +0700
  • 85eca71bf8 fix optional dependencies MrWaradana 2026-03-06 15:39:07 +0700
  • fca4d18d2b fix items_per_page problem MrWaradana 2026-03-06 15:33:03 +0700
  • 33e85cface fix master data Depends dependecies MrWaradana 2026-03-06 14:32:19 +0700
  • 53cf29822b refactor: Update `QueryParams` to inherit from `DefaultBase` with an `itemsPerPage` alias and inject it as a dependency in the masterdata router. MrWaradana 2026-03-05 15:24:51 +0700
  • aaabe1b8c4 fix middleware MrWaradana 2026-03-02 16:25:57 +0700
  • 8fc47edc1b security revision MrWaradana 2026-03-02 13:45:21 +0700
  • 760aa0229e Merge branch 'main' of 145.223.23.187:CIzz22/be-lcca Cizz22 2026-02-26 11:45:57 +0700
  • 0df6225624 feat: Add admin notification functionality for rate limit exceedances and integrate it into the rate limit exception handler. Cizz22 2026-02-26 11:45:50 +0700
  • 589d5f099f add equipment master schema MrWaradana 2026-02-25 17:11:29 +0700
  • 6e479406b9 add export route and add image data on response for equipment master MrWaradana 2026-02-25 16:57:46 +0700
  • 7a4050ee4a feat: Add request validation middleware to enforce security and data integrity checks on items_per_page limitation MrWaradana 2026-02-25 10:59:23 +0700
  • 18df242c6b feat: route for export all data MrWaradana 2026-02-25 10:51:08 +0700
  • b11edfd98c jenkins MrWaradana 2026-02-24 16:16:17 +0700
  • fa22434416 clean uneccesary testing MrWaradana 2026-02-24 16:03:34 +0700
  • 00c0cc0edc clean uneccesary testing MrWaradana 2026-02-24 16:03:34 +0700
  • 6268859798 Merge pull request 'chore: Comment out all test setup and fixtures in `conftest.py`.' (#3) from CIzz22/be-lcca:main into main CIzz22 2026-02-24 08:28:19 +0000
  • f4fee20c1f chore: Comment out all test setup and fixtures in `conftest.py`. Cizz22 2026-02-24 15:26:05 +0700
  • 1c6176c1f7 Merge pull request 'fix dockerfile' (#2) from CIzz22/be-lcca:main into main CIzz22 2026-02-24 08:22:56 +0000
  • b20b8d5f47 fix dockerfile Cizz22 2026-02-24 15:20:58 +0700
  • 2dd0ce14ec Merge pull request 'main' (#1) from CIzz22/be-lcca:main into main CIzz22 2026-02-24 08:17:45 +0000
  • 36a1a60c2d Merge branch 'main' of 145.223.23.187:DigitalTwin/be-lcca Cizz22 2026-02-24 15:17:23 +0700
  • f26c4a736f Merge branch 'main' of 145.223.23.187:CIzz22/be-lcca Cizz22 2026-02-24 14:50:00 +0700
  • 99023ef295 add test guide markdown MrWaradana 2026-02-24 10:01:53 +0700
  • 20786afa06 refactor: Update Pydantic schemas by removing redundant `nullable` attributes and add comprehensive test execution documentation. MrWaradana 2026-02-23 16:23:46 +0700
  • 8d9ce1ae90 feat: Improve logging with user context and error IDs, enhance request tracing, and strengthen security middleware with RCE/path traversal detection and pagination validation. Cizz22 2026-02-23 15:46:13 +0700
  • b0b68b06d3 unit test MrWaradana 2026-02-23 14:51:27 +0700
  • f0142044cd update replace cost equipment logic MrWaradana 2026-02-20 10:22:52 +0700
  • f978d883f6 Update 'Jenkinsfile' CIzz22 2026-02-18 08:39:20 +0000
  • 07e2d75cb5 Update 'Jenkinsfile' CIzz22 2026-02-18 08:39:00 +0000
  • 9f9ef4e99d remove starletteHTTPException MrWaradana 2026-02-13 13:34:15 +0700
  • f1fab9b1a3 fix to add starlette error handler import MrWaradana 2026-02-13 13:28:29 +0700
  • 9876a4147d add sql alchemy error handler MrWaradana 2026-02-13 13:23:12 +0700
  • 886fdaf3d2 configure exception handlers MrWaradana 2026-02-13 13:22:27 +0700
  • 783841d37e add validation errors MrWaradana 2026-02-12 15:14:18 +0700
  • 512031bf88 fix loggin level no error MrWaradana 2026-02-12 14:48:03 +0700
  • 090dd1ff64 feat: Implement a simulation mode for equipment prediction and EAC, and extract execution time formatting into a helper function. MrWaradana 2026-02-11 14:59:08 +0700
  • 498244052b feat: Implement reliability-based CM cost prediction using historical cost per failure and document the new prediction logic. MrWaradana 2026-02-11 14:49:39 +0700
  • fbab85ff50 fix: Correct double backslash escaping of newlines in SSE responses. MrWaradana 2026-02-11 11:39:56 +0700
  • 75bec015ea feat: Add token parameter to simulation endpoints and remove sign-in retry logic from Prediksi module. MrWaradana 2026-02-10 18:25:36 +0700
  • 4ce0ad9765 feat: Set forecasting start year to acquisition year, archive historical data only when the acquisition year changes, and prevent duplicate history entries. MrWaradana 2026-02-10 18:13:18 +0700
  • 8797b8cd96 feat: Enhance logging by defaulting request ID to SYSTEM, filtering internal attributes, and adding request lifecycle logs in the middleware. MrWaradana 2026-02-10 13:10:03 +0700
  • c81bb21ef5 feat: Implement ANSI color formatting for JSON log output when writing to a terminal. MrWaradana 2026-02-10 11:44:59 +0700
  • 1e8633ac5d add location logger json format MrWaradana 2026-02-10 11:28:27 +0700
  • dac589ad9a refactor: standardise API update and delete endpoints to use POST method with `/update` and `/delete` paths. MrWaradana 2026-02-09 10:46:02 +0700
  • 762460baa5 feat: Introduce `DEV_USERNAME` and `DEV_PASSWORD` configuration variables and use them as default credentials for sign-in functions. rest-api MrWaradana 2026-02-06 19:46:38 +0700
  • 0c4e62a761 feat: Compile XSS and SQLi string patterns into regex objects. MrWaradana 2026-02-06 16:37:45 +0700
  • 67342b463c feat: Add JSON logging, centralize request ID context management, and introduce schema validation for year and sequence fields. MrWaradana 2026-02-06 13:29:05 +0700
  • 7bcc102f1b Refactor attribute access for clarity and robustness, and enhance subprocess command execution by using a list for arguments. MrWaradana 2026-02-04 17:26:22 +0700
  • f381a46186 feat: Introduce `EquipmentHistoricalMasterData` model and expose replacement history in equipment details. MrWaradana 2026-02-04 16:48:35 +0700
  • 8913ba6611 feat: Localize server-sent event messages from English to Indonesian. MrWaradana 2026-02-04 16:26:50 +0700
  • bc56649e0f fix: Add lowercase `Content-type` header to event-stream responses for improved compatibility. MrWaradana 2026-02-04 16:20:36 +0700
  • 27954e3a17 fix: Add standard Server-Sent Events headers to StreamingResponse for improved client compatibility. MrWaradana 2026-02-04 16:16:18 +0700
  • 50153ef230 refactor: reorder the `get_equipment` endpoint definition within the router. MrWaradana 2026-02-04 15:44:08 +0700
  • 3d0df4408b refactor: relocate the `get_equipment` endpoint to an earlier position in the router. MrWaradana 2026-02-04 15:33:42 +0700
  • 0af5cceabd feat: Implement acquisition data change detection, historical archiving, and conditional re-insertion before simulation. MrWaradana 2026-02-04 15:18:13 +0700
  • 47c333b318 fix: Re-insert actual data using `query_data` after database commit. MrWaradana 2026-02-04 15:08:37 +0700
  • 6995aca3db Fix: Corrected `raw_loss_output_MW` parameter to be a string literal in data insertion and service functions. MrWaradana 2026-02-04 14:59:49 +0700
  • 8f3a74c597 feat: Implement historical data archiving for equipment when acquisition year or cost is updated. MrWaradana 2026-02-04 14:41:20 +0700
  • 151489a642 feat: Stream real-time status updates during equipment processing, enhance prediction robustness by validating asset data, and remove `await` from EAC calculation calls. MrWaradana 2026-02-04 13:12:16 +0700
  • 9e9b526d46 feat: Move and enhance `update_initial_simulation_data` to fetch acquisition year and cost from `wo_maximo` and update equipment records before simulation. MrWaradana 2026-02-03 17:04:34 +0700
  • 68182c42b8 clean comments schema MrWaradana 2026-02-03 15:33:23 +0700
  • 08b3f4e5f8 Update 'src/middleware.py' CIzz22 2026-02-03 07:42:42 +0000
  • 4a0fc31925 feat: Include acquisition cost in equipment update logic and database updates. MrWaradana 2026-02-02 16:49:18 +0700
  • c42c54aad1 refactor: Switch to using `query_data` instead of `insert_actual_data` for retrieving equipment data. MrWaradana 2026-02-02 16:02:47 +0700
  • 1e27adfa31 feat: Implement historical data archiving for equipment and transaction records when the acquisition year is updated. MrWaradana 2026-02-02 14:59:58 +0700
  • e1db01f9a8 feat: Add `acquisition_year_ref` column to the equipment model and update the historical data schema to use `HistoricalBase`. MrWaradana 2026-02-02 14:08:28 +0700
  • d10f9a2bde feat: Implement historical transaction records and refine actual data processing logic with acquisition year handling and targeted execution. MrWaradana 2026-02-02 13:37:51 +0700
  • 9f9238c088 remove the acquisition_year_ref MrWaradana 2026-02-02 13:08:35 +0700
  • 10cab6d4be removing unnecessary notes MrWaradana 2026-02-02 11:30:33 +0700
  • 3fbf941cfd update for new acquisition year replacement calculation minimum eac MrWaradana 2026-02-02 11:23:13 +0700
  • 4ff7e29d31 feat: Dynamically update equipment acquisition year from production data and link prediction records to this reference. MrWaradana 2026-01-30 16:22:02 +0700
  • 9cda4512c4 fix update equipment recalculation error MrWaradana 2026-01-30 15:25:45 +0700
  • 82120c26f4 remove debug print MrWaradana 2026-01-29 15:18:50 +0700
  • 1f38f1a80f feat: Standardize equipment API responses to `EquipmentDataMaster` and optimize LCC calculations by pre-fetching parameters and including new material cost fields. MrWaradana 2026-01-29 15:15:50 +0700
  • b72e1ec51d feat: Implement `/simulate-all` endpoint to run predictions and EAC for all equipment, and refine `is_actual` determination logic. MrWaradana 2026-01-27 16:03:32 +0700
  • ab54c61416 remove raise exception MrWaradana 2026-01-27 13:27:14 +0700
  • c35ec7df6b fix items_per_page params MrWaradana 2026-01-27 12:53:53 +0700
  • 7cad6cc8c4 add validation Cizz22 2026-01-26 16:47:59 +0700
  • bbfa010b39 Update middleware code in main.py CIzz22 2026-01-12 06:44:00 +0000
  • da2ce29c45 add middleware CIzz22 2026-01-12 06:34:54 +0000
  • 0087f66367 fix import credentials MrWaradana 2026-01-09 18:47:03 +0700
  • 2aae6bc073 add the missing import MrWaradana 2026-01-09 18:42:20 +0700
  • b90202214b fix config env credentials MrWaradana 2026-01-09 18:41:55 +0700
  • 63110dd412 fix env missing MrWaradana 2026-01-09 18:36:52 +0700
  • 022d2d0fc7 fix env import lookup MrWaradana 2026-01-09 18:30:08 +0700
  • eba0d1565f fix src import MrWaradana 2026-01-09 18:25:56 +0700
  • 9df47dfbfb fix import config MrWaradana 2026-01-09 18:19:17 +0700
  • 44a154c38d fix dynamic env database hostname and port MrWaradana 2026-01-09 15:21:39 +0700
  • e3963ff5f2 feat: Add field validator to convert empty strings to None for specific numeric fields. MrWaradana 2026-01-07 12:09:47 +0700
  • 25288d18f5 refactor: improve EAC calculation output clarity and adjust Yeardata query year sorting from descending to ascending. MrWaradana 2026-01-07 12:03:10 +0700
  • 619969987a Perubahan run2.py -> proyeksi sf dan auxelary sesuai rumus pak Stefy ariwahyunahar 2026-01-06 21:22:34 +0700
  • 3e7543d3ad Perubahan run2.py -> proyeksi sf dan auxelary sesuai rumus pak Stefy ariwahyunahar 2026-01-06 20:24:55 +0700
  • 020dd2254b fix count remaining life MrWaradana 2026-01-06 19:40:07 +0700
  • 13a0273b75 refactor: rename `get_count_remaining_life` to `get_count_remaining_life_equipment` for clarity. MrWaradana 2026-01-06 19:11:45 +0700
  • 04bba31670 feat: Add equipment remaining life count API, refine actual data insertion logging, and enhance prediction data fetching. MrWaradana 2026-01-06 19:09:25 +0700
  • bd6efc2a3a feat: Add `get_where_query_sql_labour_cost` to filter out 'T' wonums and update `get_yearly_labour_cost_total_by_worktype` to use it. MrWaradana 2026-01-06 11:20:13 +0700
  • 04b7977c78 update run plant simulation MrWaradana 2026-01-06 10:34:01 +0700