Commit Graph
64 Commits
Author SHA1 Message Date
dongfang 1f0876dd71 use stringService in requestHttp 2025-02-12 03:16:07 +00:00
dongfang c3d92ec812 return early if not json 2025-02-12 03:05:58 +00:00
dongfang 4d12608a22 return early instead of nesting if/else blocks 2025-02-12 02:53:09 +00:00
dongfang 9fe2de8969 Use JSON.stringify instead of toString 2025-02-12 02:53:09 +00:00
dongfang 05e448c4c5 Add job name and id in log 2025-02-12 02:53:09 +00:00
dongfang b263e2746c Convert result to string 2025-02-12 02:53:09 +00:00
dongfang 8b49603382 Support jsonPath and expectedValue 2025-02-12 02:53:09 +00:00
dongfang 81a0ec8b23 Replace variable declarations with destructuring 2025-02-12 02:52:35 +00:00
cihatata 7b6eed96f4 fix: remove fetch requests 2025-02-11 07:43:39 +03:00
cihatata dea8c4fdd8 fix: use new structure 2025-02-11 07:43:39 +03:00
cihatata 88df88891c fix: use new structure 2025-02-11 07:43:38 +03:00
cihatata 6fc0e31743 fix: create stringService 2025-02-11 07:43:38 +03:00
cihatata 10713428b9 feat: i18n support for backend 2025-02-11 07:43:36 +03:00
Alex Holliday f4b87daa7f Add DU to network service 2025-02-05 12:48:57 -08:00
Alex Holliday 4ed995692d Refactor incident endpoints to use aggregation 2025-01-21 15:30:51 -08:00
Alex Holliday 9571af4dba Add port monitoring operation to network service 2024-12-27 10:49:31 -08:00
Alex Holliday 8b0af64761 Add static name exports to all services 2024-12-24 11:58:26 -08:00
Alex Holliday a14e88ef29 Allow partial matches for docker IDs 2024-11-13 15:16:31 +08:00
Alex Holliday b2c43955f8 Add more robust error handling to networkService 2024-11-13 14:56:15 +08:00
Alex Holliday 7639dd2e80 Refactored switch statement, extracted error building 2024-11-13 12:34:53 +08:00
Alex Holliday 11b84610c5 safe object access 2024-11-13 11:07:03 +08:00
Alex Holliday 922c4d38d6 Build docker response 2024-11-13 11:00:16 +08:00
Alex Holliday 2548742f31 Inject dockerode, instantiate instance 2024-11-13 10:36:42 +08:00
Alex Holliday 2f4189382a Add hanlder for Docker types 2024-11-13 10:34:05 +08:00
Alex Holliday b417b72450 Refactor requestPagespeed to simply call requestHttp with an updated job object 2024-10-29 14:47:54 +08:00
Alex Holliday 0c321cf484 Add optional authorization config to HTTP request. Delegate handleHardware to handleHttp as they are identical 2024-10-29 13:51:00 +08:00
Alex Holliday cb5c7b2c73 Refactor network service 2024-10-28 14:18:27 +08:00
Alex Holliday 50c6e32d6e Fix variable assignment in 2024-10-25 10:49:08 +08:00
Alex Holliday cf032859a1 Merge branch 'develop' into feat/be/hardware-monitor-notifications 2024-10-25 10:44:30 +08:00
Alex Holliday a0248c81c2 standardize log statements 2024-10-24 15:28:13 +08:00
Alex Holliday 8d9803fef0 Added methods for handleHardwareUpdates, refactored sending notifications to allow for arbitrary templates 2024-10-23 13:46:27 +08:00
Alex Holliday 6f358d297d Update service and tests to use new 2024-10-22 10:11:02 +08:00
Alex Holliday 7e0bc44ba6 Update networkService to handle hardware type monitors, add tests for full coverage 2024-10-21 11:55:44 +08:00
Alex Holliday 64d2d9b3ce Move opeartion back to 2024-10-18 14:21:22 +08:00
Alex Holliday f5265b140c Minor refactor for correctness 2024-10-18 13:36:39 +08:00
Alex Holliday 1c30c309a7 Refactor network service to inject dependencies 2024-10-18 11:12:18 +08:00
Alex Holliday fd2d16cf78 Format all files on BE with perttier config 2024-10-17 12:07:30 +08:00
Alex Holliday f057807b56 migrate to esm 2024-10-15 11:57:37 +08:00
Alex Holliday f724997b02 Add JSdocs to SettingsService, add descriptions of services 2024-10-01 09:55:14 +08:00
Alex Holliday 38ee162f61 improve error handling in network service, fix username form errors 2024-09-26 11:01:38 +08:00
Alex Holliday 9381f842f3 Add service name and method name to errors in misc services and middleware 2024-09-15 12:28:11 +08:00
Alex Holliday 65cc70cbdd remove unresponsive sites from demo list 2024-09-11 11:39:32 +08:00
Alex Holliday 3270d61624 Add period total checks 2024-09-04 12:00:01 -07:00
Alex Holliday ffc132e19a Add missing else block 2024-09-04 11:45:54 -07:00
Alex Holliday c490722eae restore netowrk service 2024-09-03 15:45:11 -07:00
Alexander Holliday 1bde8fdb86 Revert "Add indeterminate state to monitors, resolves #765" 2024-09-03 09:30:43 -07:00
Alex Holliday d2528a694e simplified conditionals for updating status and sending notifications 2024-09-02 11:00:59 -07:00
Alex Holliday 4d61ecfe35 Add error handling to notifications 2024-09-02 10:52:11 -07:00
Alex Holliday 071a7fc9cf Add indeterminate state to monitors 2024-09-02 10:45:07 -07:00
Alex Holliday 8ac53a9e16 Add safety check for monitor 2024-08-31 16:48:02 -07:00