Jérôme Benoit [Fri, 4 Aug 2023 09:48:47 +0000 (11:48 +0200)]
build(deps-dev): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 3 Aug 2023 22:44:44 +0000 (00:44 +0200)]
feat: add helper to compose i2 charging schedules (higher stack level
with lower)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 3 Aug 2023 19:57:57 +0000 (19:57 +0000)]
Merge pull request #648 from SAP/dependabot/github_actions/sonarsource/sonarcloud-github-action-2.0.0
build(deps): Bump sonarsource/sonarcloud-github-action from 1.9.1 to 2.0.0
dependabot[bot] [Thu, 3 Aug 2023 19:39:27 +0000 (19:39 +0000)]
build(deps): Bump sonarsource/sonarcloud-github-action
Bumps [sonarsource/sonarcloud-github-action](https://github.com/sonarsource/sonarcloud-github-action) from 1.9.1 to 2.0.0.
- [Release notes](https://github.com/sonarsource/sonarcloud-github-action/releases)
- [Commits](https://github.com/sonarsource/sonarcloud-github-action/compare/v1.9.1...v2.0.0)
---
updated-dependencies:
- dependency-name: sonarsource/sonarcloud-github-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Jérôme Benoit [Thu, 3 Aug 2023 19:34:04 +0000 (21:34 +0200)]
build(ci): fix merge queue usage
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 3 Aug 2023 18:34:12 +0000 (20:34 +0200)]
fix: typo in condition check at remote start transaction
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 3 Aug 2023 18:21:57 +0000 (20:21 +0200)]
fix: fix charging profile handling at remote start transaction
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 3 Aug 2023 18:16:28 +0000 (20:16 +0200)]
refactor: cleanup incoming OCPP requests handling code
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 3 Aug 2023 17:37:57 +0000 (19:37 +0200)]
refactor: improve start transaction sanity checks log messages
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 3 Aug 2023 17:12:14 +0000 (19:12 +0200)]
perf: lookup connector status once at OCPP responses handling
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 3 Aug 2023 16:06:49 +0000 (18:06 +0200)]
refactor: improve tx changing profile checks
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 3 Aug 2023 14:21:04 +0000 (16:21 +0200)]
docs: refine bug report issue template, take 2
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 3 Aug 2023 14:15:56 +0000 (16:15 +0200)]
docs: refine bug report issue template
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 3 Aug 2023 13:39:02 +0000 (15:39 +0200)]
fix: remove transaction charging profiles at stop transaction
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 3 Aug 2023 13:10:45 +0000 (15:10 +0200)]
fix: tx charging profiles have precedence over the ones on connector 0
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 3 Aug 2023 11:26:00 +0000 (13:26 +0200)]
refactor: factor out charging schedule composition code
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 2 Aug 2023 18:16:55 +0000 (20:16 +0200)]
fix: avoid gaps in get composite schedule
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 2 Aug 2023 16:59:34 +0000 (18:59 +0200)]
fix: fix wrong charging profiles resorting at power limitation
computation
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 2 Aug 2023 16:55:46 +0000 (18:55 +0200)]
fix: ensure charging profiles used for power limitation are properly sorted
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 2 Aug 2023 15:45:12 +0000 (17:45 +0200)]
refactor: improve log messages
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 2 Aug 2023 15:38:15 +0000 (17:38 +0200)]
refactor: improve debug log messages
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 2 Aug 2023 14:44:53 +0000 (16:44 +0200)]
fix: ensure the latest schedule period within the charging profile
duration is used
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 2 Aug 2023 12:33:21 +0000 (14:33 +0200)]
build(deps-dev): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 1 Aug 2023 23:47:42 +0000 (01:47 +0200)]
refactor: cleanup RFID authorization code
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 1 Aug 2023 23:35:51 +0000 (01:35 +0200)]
fix: avoid overlapping schedule periods in get composite schedule
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 1 Aug 2023 20:37:45 +0000 (22:37 +0200)]
fix: reduce the number of overlaping charging profiles in get composite
schedule
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
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>