Commit Graph

315 Commits

Author SHA1 Message Date
nguyentrungthat c5e3e796bf Add error handling for external service calls
Wrapped calls to axios, sendMessageToMail, and sendMessageToZulip in try-catch blocks to handle errors individually and log them. This prevents one failure from blocking the execution of subsequent service calls.
2026-01-17 11:31:49 +07:00
nguyentrungthat c86824e589 Refactor health check controller and improve error handling
Moves LINK_WIKI and ERP_URL constants outside the check method for reuse. Updates error handling to set status based on which API call failed, and removes console logging for cleaner output. Always returns code 200 for consistency.
2026-01-17 10:41:51 +07:00
nguyentrungthat a88ff44ebd Update modal terminal 2026-01-16 10:30:13 +07:00
nguyentrungthat c4a5b1c499 Update disable Station 2026-01-15 15:39:43 +07:00
nguyentrungthat f6620edc35 Update load license 2026-01-15 09:52:54 +07:00
nguyentrungthat 38b6cb4981 Update load License 2026-01-13 10:54:12 +07:00
nguyentrungthat a9dce43ab2 Update select license 2026-01-12 16:33:07 +07:00
nguyentrungthat 5586f8f930 Update load license 2026-01-09 16:08:50 +07:00
nguyentrungthat 9266b63823 Update .gitignore 2026-01-08 15:22:35 +07:00
nguyentrungthat 98f80c8005 Update ModalTerminal.tsx 2026-01-08 15:07:24 +07:00
nguyentrungthat 9bc0f96afc Update loading list log 2026-01-08 13:37:26 +07:00
nguyentrungthat 0650e012d8 Update ModalTerminal.tsx 2026-01-08 13:19:30 +07:00
nguyentrungthat 3bb72a19aa Update ModalSelectIOS.tsx 2026-01-08 11:02:45 +07:00
nguyentrungthat 5afc8701ab Update folder get ios 2026-01-08 10:34:29 +07:00
nguyentrungthat 429c570688 Update line_connection.ts 2026-01-07 16:47:58 +07:00
nguyentrungthat 8580f3c88a Update line_connection.ts 2026-01-07 16:04:35 +07:00
nguyentrungthat 28059f85ed Update physical test, load ios 2026-01-07 16:04:24 +07:00
nguyentrungthat 07cfde8c15 Update line_connection.ts 2026-01-06 16:46:29 +07:00
nguyentrungthat d2621ca86c Update line_connection.ts 2026-01-06 08:51:36 +07:00
nguyentrungthat 175a7d04e2 Update 2026-01-06 08:44:51 +07:00
nguyentrungthat 250ea1421b Update line_connection.ts 2026-01-06 07:49:07 +07:00
nguyentrungthat e14d4ca216 Update load IOS switch 2026-01-05 16:59:00 +07:00
nguyentrungthat f160cd2905 Update send report Load IOS 2026-01-05 09:28:00 +07:00
nguyentrungthat 5e22f4ea25 Update 2025-12-31 16:48:37 +07:00
nguyentrungthat e4687f27f9 Update physical test and load ios 2025-12-31 14:06:49 +07:00
nguyentrungthat ef1ba4ac99 Update scenario load ios 2025-12-30 16:04:24 +07:00
nguyentrungthat e55951d42c Update ios_license_controller.ts 2025-12-29 16:59:05 +07:00
nguyentrungthat dd32246f9f Update line_connection.ts 2025-12-27 10:10:33 +07:00
nguyentrungthat b1b4f1b907 Update physical test 2025-12-26 16:09:52 +07:00
nguyentrungthat 2f484e19b6 update physical test 2025-12-25 16:17:52 +07:00
nguyentrungthat ab7db61608 Update line_connection.ts 2025-12-24 16:18:58 +07:00
nguyentrungthat 42f67e5390 Enhance terminal clear options and update note handling
Added a 'Clear (scrollback)' option to the terminal modal, allowing users to clear only the scrollback buffer without emitting a clear event. Updated backend and helper logic to use 'testNotes' instead of 'notes' for serial number updates, and improved note formatting with timezone support. Also improved email content formatting and error reporting.
2025-12-24 14:27:52 +07:00
nguyentrungthat fd5d1628a5 Update note SN sau khi run dpelp và api heal check 2025-12-23 16:34:21 +07:00
nguyentrungthat e2e66f86bf Add health check endpoint and controller
Introduces HealCheckController to perform a health check by posting to a wiki API. Adds a new route at /atc/health-check for accessing the health check functionality.
2025-12-23 10:19:16 +07:00
nguyentrungthat 48a50b5628 Improve log handling and email reporting
Refactored log buffer management to use 'allBuffer' for complete log storage and updated email content to include raw logs. Enhanced log table formatting and removed status from email header. Commented out interface up/down rules in helper.ts to adjust log rule detection.
2025-12-23 09:36:46 +07:00
nguyentrungthat 0af1cd8747 Add email reporting for test errors and AI log analysis
Introduces functions to format test errors and AI log analysis as HTML tables and send them via email. Adds helper utilities for error mapping and HTML escaping, and updates types to support structured error rows. Also increases the log check interval and refactors buffer management for improved clarity.
2025-12-22 16:54:02 +07:00
nguyentrungthat 744472f3da Update 2025-12-20 10:13:33 +07:00
nguyentrungthat b9598f9351 Refactor log rule handling and enhance test session logic
Replaces per-rule application with a unified error-based approach in log processing. Expands and clarifies log rules, introduces deduplication and error counting in TestSession, and updates types to support richer error and result reporting. Improves final result output for better clarity and debugging.
2025-12-19 15:42:02 +07:00
nguyentrungthat b8ab1f0583 Update 2025-12-19 12:02:16 +07:00
nguyentrungthat 6c00e35072 Update switch_connection.ts 2025-12-19 08:41:30 +07:00
nguyentrungthat 52ef8f192f Update line_connection.ts 2025-12-18 15:23:55 +07:00
nguyentrungthat fef82cb233 Enhance scenario detection and tracking logic
Updated LineConnection to track processed scenario IDs and prevent duplicate scenario detection by passing a list of previously detected scenarios to detectScenarioByModel. Modified detectScenarioByModel to skip scenarios already in the list. Added a delay in waitUntilAllReady to ensure readiness before proceeding.
2025-12-18 09:00:03 +07:00
nguyentrungthat 6e282c42bd Enable scenario run and reporting, adjust UI elements
Uncommented code to run scenarios and send reports via email and Zulip in the backend, and commented out the scenario confirmation modal in the frontend. Also adjusted the height of the ScrollArea in the BottomToolBar component for improved UI layout.
2025-12-18 08:12:23 +07:00
nguyentrungthat 4b130df801 Update DrawerControl.tsx 2025-12-17 16:48:19 +07:00
nguyentrungthat 7c7778a0e1 Update run scenario DPELP theo flow mới 2025-12-17 16:45:33 +07:00
nguyentrungthat 7528da2f00 Add scenarioName to run scenario actions and logs
Pass scenarioName from frontend to backend when running scenarios, and include it in log titles, email subjects, and Zulip messages. Also, expand command matching in template utilities and update default '[ENTER]' handling in line_connection. Minor logging improvements included.
2025-12-16 15:37:16 +07:00
nguyentrungthat 76659b3e68 Update modal run scenario 2025-12-16 11:11:19 +07:00
nguyentrungthat 2729feed4e Update modal Scenario 2025-12-15 17:10:50 +07:00
nguyentrungthat 5a8cf4b999 Update migration table brand, category, scenario 2025-12-15 15:03:26 +07:00
nguyentrungthat 4a671658ff Update 2025-12-15 14:11:50 +07:00