Jérôme Benoit [Tue, 1 Aug 2023 18:38:02 +0000 (20:38 +0200)]
refactor: cleanup import
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 1 Aug 2023 17:37:56 +0000 (19:37 +0200)]
refactor: factor out charging profiles preparation
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 1 Aug 2023 16:47:53 +0000 (18:47 +0200)]
feat: make get composite schedule closer to OCPP 1.6 specs
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 1 Aug 2023 00:20:33 +0000 (02:20 +0200)]
refactor: cleanup get composite schedule code
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 1 Aug 2023 00:15:04 +0000 (02:15 +0200)]
feat: improve get composite schedule
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 31 Jul 2023 22:18:35 +0000 (00:18 +0200)]
build(deps-dev): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 31 Jul 2023 22:02:34 +0000 (00:02 +0200)]
refactor: cleanup reservation code helpers
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 31 Jul 2023 21:08:21 +0000 (23:08 +0200)]
fix: ensure all charging station changes are pushed at start transaction
error
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 31 Jul 2023 20:16:12 +0000 (22:16 +0200)]
refactor: use object destructuration for incoming requests payload
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 31 Jul 2023 19:40:30 +0000 (21:40 +0200)]
fix: fix valid reservation detection at start transaction
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 31 Jul 2023 17:26:53 +0000 (19:26 +0200)]
fix: fix reservationId payload field filling at start transaction
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 31 Jul 2023 14:52:24 +0000 (16:52 +0200)]
perf: only clone the targeted connector status in ATG
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 31 Jul 2023 14:50:08 +0000 (16:50 +0200)]
fix: check for the connector status definition in ATG
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 31 Jul 2023 14:44:44 +0000 (16:44 +0200)]
refactor: remove unneeded condition at changing availability
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 31 Jul 2023 12:51:22 +0000 (14:51 +0200)]
fix: properly handle changing availability on multiples connectors
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 31 Jul 2023 12:26:35 +0000 (14:26 +0200)]
refactor: factor out remote stop transaction helper
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 31 Jul 2023 12:21:45 +0000 (14:21 +0200)]
refactor: factor out change availability helper
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 31 Jul 2023 11:05:00 +0000 (13:05 +0200)]
docs: refine README.md
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 31 Jul 2023 09:35:31 +0000 (11:35 +0200)]
refactor: cleanup RFID tags authorization code
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 30 Jul 2023 23:49:03 +0000 (01:49 +0200)]
fix: authorize remotely only if configured
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 30 Jul 2023 23:16:57 +0000 (01:16 +0200)]
test: fix tests
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 30 Jul 2023 23:12:13 +0000 (01:12 +0200)]
refactor: add date validation to date convertion helper
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 30 Jul 2023 22:48:31 +0000 (00:48 +0200)]
fix: add date validation check in date conversion helper
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 30 Jul 2023 22:10:29 +0000 (00:10 +0200)]
refactor: cleanup reservation methods scope
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 30 Jul 2023 22:05:03 +0000 (00:05 +0200)]
fix: check reservation status at the end at start transaction
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 30 Jul 2023 21:45:23 +0000 (23:45 +0200)]
fix: ensure transaction id is a safe integer
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 30 Jul 2023 21:30:56 +0000 (23:30 +0200)]
fix: fix authorize response handling
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 30 Jul 2023 20:42:32 +0000 (22:42 +0200)]
refactor: code cleanup
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 30 Jul 2023 19:39:32 +0000 (21:39 +0200)]
fix: fix some undefined/null checks
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 30 Jul 2023 19:31:13 +0000 (21:31 +0200)]
fix: fix reservation at remote start
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 30 Jul 2023 19:16:20 +0000 (21:16 +0200)]
fix: fix reservation removal at transaction start
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 30 Jul 2023 17:01:03 +0000 (19:01 +0200)]
refactor: cleanup reservation check condition
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 30 Jul 2023 16:58:41 +0000 (18:58 +0200)]
refactor: remove uneeded helper in reservation code
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 30 Jul 2023 16:19:24 +0000 (18:19 +0200)]
refactor: rename src/charging-station/Utils.ts -> src/charging-station/Helpers.ts
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 30 Jul 2023 16:16:35 +0000 (18:16 +0200)]
fix: handle proper the number of arguments in isConnectorReservable()
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 30 Jul 2023 15:21:59 +0000 (17:21 +0200)]
docs: refine README.md
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 30 Jul 2023 15:05:47 +0000 (17:05 +0200)]
refactor: refine error message at building default storage URI
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 30 Jul 2023 14:52:59 +0000 (16:52 +0200)]
fix: fix ui server default application protocol version handling
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 30 Jul 2023 14:27:53 +0000 (16:27 +0200)]
build(simulator): silence rollup warning
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 30 Jul 2023 14:00:22 +0000 (16:00 +0200)]
docs: refine README.md
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 30 Jul 2023 13:56:02 +0000 (15:56 +0200)]
docs: refine README.md
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 30 Jul 2023 13:48:36 +0000 (15:48 +0200)]
docs: refine README.md
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 30 Jul 2023 13:41:44 +0000 (15:41 +0200)]
docs: refine README.md
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 30 Jul 2023 13:38:25 +0000 (15:38 +0200)]
feat: add initial HTTP/2 support to ui server (mutually exclusive for now)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 30 Jul 2023 11:44:03 +0000 (13:44 +0200)]
refactor: split WorkerConstants class
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 30 Jul 2023 11:22:32 +0000 (13:22 +0200)]
refactor: use keyof to build the reservation filter key
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 30 Jul 2023 10:51:19 +0000 (12:51 +0200)]
refactor: cleanup reservation code
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 29 Jul 2023 21:39:01 +0000 (23:39 +0200)]
fix: fix reservable connector detection
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 29 Jul 2023 19:11:19 +0000 (21:11 +0200)]
build(ci): lint the code only once
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 29 Jul 2023 17:24:07 +0000 (19:24 +0200)]
refactor: switch to try catch construct
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 29 Jul 2023 13:19:37 +0000 (15:19 +0200)]
fix: fix circular array splice semantic
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 29 Jul 2023 12:08:47 +0000 (14:08 +0200)]
build(deps-dev): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 28 Jul 2023 23:44:22 +0000 (01:44 +0200)]
refactor: cleanup rollup configuration
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 28 Jul 2023 23:31:22 +0000 (01:31 +0200)]
refactor: cleanup module name namespace
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 28 Jul 2023 23:14:53 +0000 (01:14 +0200)]
fix: fix circular dependencies in types
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 28 Jul 2023 22:47:04 +0000 (00:47 +0200)]
refactor: remove unneeded redefinition of reservation type
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 28 Jul 2023 20:52:30 +0000 (22:52 +0200)]
test: add extractTimeSeriesValues() test
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 28 Jul 2023 20:29:21 +0000 (22:29 +0200)]
fix: revert incorrect fix to elementsPerWorker 'auto' computation
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 28 Jul 2023 20:13:33 +0000 (22:13 +0200)]
fix: fix elementsPerWorker 'auto' computation, take 2
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 28 Jul 2023 20:06:48 +0000 (22:06 +0200)]
docs: refine README.md
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 28 Jul 2023 20:04:06 +0000 (22:04 +0200)]
fix: fix elementsPerWorker 'auto' computation
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 28 Jul 2023 19:39:59 +0000 (21:39 +0200)]
fix: fix integer check condition
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 28 Jul 2023 19:09:07 +0000 (21:09 +0200)]
build(deps-dev): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 28 Jul 2023 14:50:17 +0000 (16:50 +0200)]
perf: switch to deep-clone for cloning (20% faster)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 28 Jul 2023 11:24:17 +0000 (13:24 +0200)]
build(deps-dev): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 28 Jul 2023 10:55:15 +0000 (12:55 +0200)]
refactor: add sanity checks to worker set arguments
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 27 Jul 2023 16:48:08 +0000 (18:48 +0200)]
refactor: rename ChargingStationConfigurationUtils.ts -> ChargingStationConfigurationKeyUtils.ts
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 27 Jul 2023 15:23:19 +0000 (17:23 +0200)]
refactor: factor out feature profile test
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 27 Jul 2023 12:09:25 +0000 (14:09 +0200)]
refactor: remove uneeded unknown intermediate type cast
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 27 Jul 2023 11:56:14 +0000 (13:56 +0200)]
test: improve isArraySorted() test
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 27 Jul 2023 11:41:42 +0000 (13:41 +0200)]
refactor: factor out configuration section cache population
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 27 Jul 2023 11:30:23 +0000 (13:30 +0200)]
build(deps): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 27 Jul 2023 09:59:43 +0000 (11:59 +0200)]
docs: add 'steps to reproduction' to bug_report.yml issue template
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 27 Jul 2023 01:04:20 +0000 (03:04 +0200)]
docs: refine issue templates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 27 Jul 2023 00:43:57 +0000 (02:43 +0200)]
docs: refine github issue templates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 27 Jul 2023 00:06:18 +0000 (02:06 +0200)]
docs: add labels to issue templates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 26 Jul 2023 23:51:08 +0000 (01:51 +0200)]
docs: warn about github issue misuage in issue templates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 26 Jul 2023 22:55:11 +0000 (00:55 +0200)]
refactor: silence linter on code duplication
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Jérôme Benoit [Wed, 26 Jul 2023 22:13:49 +0000 (00:13 +0200)]
fix: fix configuration callback property type
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 26 Jul 2023 21:52:26 +0000 (23:52 +0200)]
test: code cleanup
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 26 Jul 2023 21:29:23 +0000 (23:29 +0200)]
refactor: factor out ATG and charging profiles sanity checks
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 26 Jul 2023 10:55:30 +0000 (12:55 +0200)]
docs: refine README.md
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 26 Jul 2023 10:43:19 +0000 (12:43 +0200)]
docs: refine README.md wording
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 26 Jul 2023 10:38:52 +0000 (12:38 +0200)]
docs: update template tunables documentation
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 26 Jul 2023 10:28:49 +0000 (12:28 +0200)]
docs: update worker section documentation
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 26 Jul 2023 06:34:29 +0000 (08:34 +0200)]
fix: stop reservation expiration check at stop
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 26 Jul 2023 06:03:33 +0000 (08:03 +0200)]
refactor: refine charging profiles handling variables namespace
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 26 Jul 2023 05:48:33 +0000 (07:48 +0200)]
refactor: improve time handling code
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 26 Jul 2023 00:09:57 +0000 (02:09 +0200)]
refactor: cleanup log messages
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 25 Jul 2023 23:40:08 +0000 (01:40 +0200)]
Merge branch 'main' of github.com:SAP/e-mobility-charging-stations-simulator
Jérôme Benoit [Tue, 25 Jul 2023 23:38:56 +0000 (01:38 +0200)]
refactor: add more sanity checks to charging profiles handling code
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 25 Jul 2023 22:23:00 +0000 (00:23 +0200)]
docs: refine code comments
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Jérôme Benoit [Tue, 25 Jul 2023 22:02:04 +0000 (00:02 +0200)]
docs: refine code comments
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 25 Jul 2023 21:43:08 +0000 (23:43 +0200)]
build(deps): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 25 Jul 2023 21:13:17 +0000 (23:13 +0200)]
fix: warn abount unsupported charging profiles structure
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 25 Jul 2023 20:54:13 +0000 (22:54 +0200)]
refactor: cleanup log messages
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 25 Jul 2023 19:38:43 +0000 (21:38 +0200)]
test: add isValidDate() test
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 25 Jul 2023 19:27:18 +0000 (21:27 +0200)]
feat: warn if charging profile schedule periods are not sorted
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 25 Jul 2023 18:39:47 +0000 (20:39 +0200)]
fix: fix recurring charging profile translation to current time interval
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 25 Jul 2023 18:27:08 +0000 (20:27 +0200)]
fix: properly use date-fns difference functions
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>