Jérôme Benoit [Fri, 10 Feb 2023 10:30:43 +0000 (11:30 +0100)]
refactor(simulator): random float generator signature simplification
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 9 Feb 2023 21:51:17 +0000 (22:51 +0100)]
refactor(simulator): make OCPPIncomingRequestService class inherit from
AsyncResource instead of needlessly proxying it
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 9 Feb 2023 18:26:13 +0000 (19:26 +0100)]
Merge branch 'main' of github.com:SAP/e-mobility-charging-stations-simulator
Jérôme Benoit [Thu, 9 Feb 2023 17:48:22 +0000 (18:48 +0100)]
chore: apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 9 Feb 2023 09:55:43 +0000 (10:55 +0100)]
Merge pull request #393 from SAP/dependabot/npm_and_yarn/ui/web/sideway/formula-3.0.1
dependabot[bot] [Thu, 9 Feb 2023 07:32:31 +0000 (07:32 +0000)]
Bump @sideway/formula from 3.0.0 to 3.0.1 in /ui/web
Bumps [@sideway/formula](https://github.com/sideway/formula) from 3.0.0 to 3.0.1.
- [Release notes](https://github.com/sideway/formula/releases)
- [Commits](https://github.com/sideway/formula/compare/v3.0.0...v3.0.1)
---
updated-dependencies:
- dependency-name: "@sideway/formula"
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Jérôme Benoit [Tue, 7 Feb 2023 22:47:38 +0000 (23:47 +0100)]
refactor(simulator): use proper type for log format
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 7 Feb 2023 22:15:56 +0000 (23:15 +0100)]
refactor(simulator): remove unneeded ternary operator
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 7 Feb 2023 21:05:01 +0000 (22:05 +0100)]
fix(simulator): detect string emptiness properly without helper usage
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 7 Feb 2023 20:20:10 +0000 (21:20 +0100)]
fix(simulator): detect string emptyness properly
Close #390
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 6 Feb 2023 21:19:01 +0000 (22:19 +0100)]
chore: apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 6 Feb 2023 11:15:36 +0000 (12:15 +0100)]
chore: apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 6 Feb 2023 10:50:16 +0000 (11:50 +0100)]
refactor(simulator): propagate and handle startup error at callee
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Jérôme Benoit [Fri, 3 Feb 2023 19:30:53 +0000 (20:30 +0100)]
chore: apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 3 Feb 2023 13:46:07 +0000 (14:46 +0100)]
refactor(simulator): remove unneeded intermediate variable in firmware
upgrade simulation code
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 2 Feb 2023 23:53:18 +0000 (00:53 +0100)]
fix(simulator): fix default version bump scale at firmware upgrade
simulation
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 2 Feb 2023 22:13:54 +0000 (23:13 +0100)]
refactor(simulator): remove unneeded intermediate variables in startup
code
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 2 Feb 2023 22:07:47 +0000 (23:07 +0100)]
perf(simulator): remove unneeded nullish check at startup
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 2 Feb 2023 21:43:28 +0000 (22:43 +0100)]
chore(ui): apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 2 Feb 2023 21:04:53 +0000 (22:04 +0100)]
fix(simulator): fix delayed initialization in promise at startup
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 2 Feb 2023 20:39:53 +0000 (21:39 +0100)]
refactor(simulator): remove unneeded duplicate initialization at startup
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 2 Feb 2023 20:15:08 +0000 (21:15 +0100)]
refactor(simulator): move main process unhandled or uncaught error
logging at initialization
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 2 Feb 2023 20:04:09 +0000 (21:04 +0100)]
fix(simulator): initialize charging station worker outside the
constructor
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 2 Feb 2023 19:45:00 +0000 (20:45 +0100)]
refactor(simulator): move configuration checks at initialization
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 2 Feb 2023 19:17:03 +0000 (20:17 +0100)]
fix(simulator): calculate LRU cache capacity dynamically at startup to
avoid heavy evictions load
Properly calculate the number of charging stations and templates in use
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Jérôme Benoit [Wed, 1 Feb 2023 21:07:29 +0000 (22:07 +0100)]
chore: enforce conventionnal commits with commitlint
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 1 Feb 2023 19:46:50 +0000 (20:46 +0100)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 31 Jan 2023 20:17:53 +0000 (21:17 +0100)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 29 Jan 2023 16:13:32 +0000 (17:13 +0100)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 27 Jan 2023 21:50:02 +0000 (22:50 +0100)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 27 Jan 2023 20:43:24 +0000 (21:43 +0100)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 26 Jan 2023 23:42:04 +0000 (00:42 +0100)]
Fix nullish checks
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 26 Jan 2023 23:31:03 +0000 (00:31 +0100)]
UTs cleanup
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 26 Jan 2023 22:42:51 +0000 (23:42 +0100)]
Improve log messages prefixing
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 26 Jan 2023 21:45:30 +0000 (22:45 +0100)]
Use arrow function for log messages prefixing
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 26 Jan 2023 19:54:55 +0000 (20:54 +0100)]
Version 1.1.92
Jérôme Benoit [Thu, 26 Jan 2023 19:44:15 +0000 (20:44 +0100)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 26 Jan 2023 19:38:27 +0000 (20:38 +0100)]
Improve isIterable() UT
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 26 Jan 2023 18:27:54 +0000 (19:27 +0100)]
Improve isIterable() UT
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 26 Jan 2023 15:34:07 +0000 (16:34 +0100)]
Factor out JSON schemas parsing with per OCPP stack version
specialisation
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 26 Jan 2023 00:33:34 +0000 (01:33 +0100)]
Add error handling to JSON schemas file reading
Close #369
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 25 Jan 2023 23:17:18 +0000 (00:17 +0100)]
Revert incorrect isEmptyString() semantic change
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 25 Jan 2023 23:07:26 +0000 (00:07 +0100)]
Fix isEmptyString() UT
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 25 Jan 2023 23:02:59 +0000 (00:02 +0100)]
Fix isEmptyString() semantic
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 25 Jan 2023 22:42:33 +0000 (23:42 +0100)]
Empty string handling fixes
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 25 Jan 2023 22:24:54 +0000 (23:24 +0100)]
Improve empty file name handling
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 25 Jan 2023 22:05:13 +0000 (23:05 +0100)]
Fix a null or undefined condition
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 25 Jan 2023 21:36:43 +0000 (22:36 +0100)]
Falsy/truthy test fixes
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 25 Jan 2023 20:16:23 +0000 (21:16 +0100)]
README.md: fix some default values
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 25 Jan 2023 19:08:54 +0000 (20:08 +0100)]
Revert wrong type change
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 25 Jan 2023 18:37:20 +0000 (19:37 +0100)]
Strict null check fixes
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 25 Jan 2023 16:41:15 +0000 (17:41 +0100)]
Fix build
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 25 Jan 2023 16:27:47 +0000 (17:27 +0100)]
Strict null check fixes
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 25 Jan 2023 13:58:44 +0000 (14:58 +0100)]
Fix UT
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 25 Jan 2023 13:47:06 +0000 (14:47 +0100)]
Strict null type check fixes
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 25 Jan 2023 11:40:12 +0000 (12:40 +0100)]
Refine code formatting rules
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 24 Jan 2023 20:41:35 +0000 (21:41 +0100)]
Apply depedencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 23 Jan 2023 22:09:38 +0000 (23:09 +0100)]
Fix extra whitespace in log messages prefix
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 23 Jan 2023 21:43:03 +0000 (22:43 +0100)]
Avoid strings concatenation
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 23 Jan 2023 20:22:08 +0000 (21:22 +0100)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 23 Jan 2023 14:06:25 +0000 (15:06 +0100)]
Fix log message conversion to string literal
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 23 Jan 2023 13:49:47 +0000 (14:49 +0100)]
Fix file error handling propagation
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 23 Jan 2023 12:50:55 +0000 (13:50 +0100)]
Switch log messages to string literal
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 22 Jan 2023 19:32:29 +0000 (20:32 +0100)]
Use crypto unbiased random integer generator
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 22 Jan 2023 12:18:00 +0000 (13:18 +0100)]
Improve OCPP message type logging
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 21 Jan 2023 09:30:16 +0000 (10:30 +0100)]
Evaluate OCPP messages buffer flush performance
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 21 Jan 2023 00:15:32 +0000 (01:15 +0100)]
Silence rollup warning
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 21 Jan 2023 00:11:44 +0000 (01:11 +0100)]
Version 1.1.91
Jérôme Benoit [Fri, 20 Jan 2023 15:28:52 +0000 (16:28 +0100)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 20 Jan 2023 15:16:23 +0000 (16:16 +0100)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 20 Jan 2023 14:46:52 +0000 (15:46 +0100)]
Fix OCPP messages buffering handling
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 19 Jan 2023 22:01:55 +0000 (23:01 +0100)]
Fix and add log messages
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 19 Jan 2023 20:40:29 +0000 (21:40 +0100)]
Ensure a transaction is always stopped, whatever is the CSMS response.
OCPP specs compliance
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 18 Jan 2023 21:05:41 +0000 (22:05 +0100)]
README.md: document firmware upgrade template section
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 17 Jan 2023 22:37:19 +0000 (23:37 +0100)]
Silence rollup warnings
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 16 Jan 2023 22:58:39 +0000 (23:58 +0100)]
CHANGELOG.md: more spell fixes
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 16 Jan 2023 21:02:25 +0000 (22:02 +0100)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 16 Jan 2023 20:12:27 +0000 (21:12 +0100)]
CHANGELOG.md: spell fixes
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 16 Jan 2023 19:53:00 +0000 (20:53 +0100)]
Version 1.1.90
Jérôme Benoit [Sun, 15 Jan 2023 17:07:08 +0000 (18:07 +0100)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 15 Jan 2023 16:33:53 +0000 (17:33 +0100)]
Move OCPP log message formatting helper into static helpers class
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 15 Jan 2023 16:16:56 +0000 (17:16 +0100)]
Cleanups
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 15 Jan 2023 13:42:56 +0000 (14:42 +0100)]
Factor out power limitation code into static helper
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 15 Jan 2023 11:52:30 +0000 (12:52 +0100)]
Ensure start transaction payload is always compliant with OCA specs
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 14 Jan 2023 23:21:20 +0000 (00:21 +0100)]
Fix timestamping at OCPP firmware update command handling
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 14 Jan 2023 23:10:08 +0000 (00:10 +0100)]
Cleanup and optimize OCPP request payload building
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 14 Jan 2023 21:47:59 +0000 (22:47 +0100)]
Fix OCPP request handler arguments usage in the inter-workers
communication code
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 14 Jan 2023 20:16:59 +0000 (21:16 +0100)]
Display the complete matching power limitation result in log
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 14 Jan 2023 19:37:57 +0000 (20:37 +0100)]
Improve charging profiles handling debug logs
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 14 Jan 2023 19:00:41 +0000 (20:00 +0100)]
Fix all misused promises
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 14 Jan 2023 18:36:34 +0000 (19:36 +0100)]
Cleanup some helpers defaults values
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 14 Jan 2023 13:49:24 +0000 (14:49 +0100)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 14 Jan 2023 00:29:44 +0000 (01:29 +0100)]
Fix OCPP request payloads building
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 13 Jan 2023 20:03:57 +0000 (21:03 +0100)]
Cleanup CF manifest template
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 13 Jan 2023 19:56:46 +0000 (20:56 +0100)]
Allow to specify more OCPP command payload fields while using the UI
server
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 13 Jan 2023 10:37:19 +0000 (11:37 +0100)]
Allow to specify timestamp in OCPP commands payload with the UI Server
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 12 Jan 2023 18:59:43 +0000 (19:59 +0100)]
Linter fixes
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 12 Jan 2023 18:52:22 +0000 (19:52 +0100)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 12 Jan 2023 10:27:41 +0000 (11:27 +0100)]
Remove unneeded intermediate variable
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 12 Jan 2023 10:14:02 +0000 (11:14 +0100)]
Properly build once the firmwareUpgrade default values
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>