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>
Jérôme Benoit [Tue, 25 Jul 2023 18:14:36 +0000 (20:14 +0200)]
fix: handle properly charging profile schedule period outside its duration
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 25 Jul 2023 16:32:41 +0000 (18:32 +0200)]
fix: ensure recurring profile duration is valid
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 25 Jul 2023 15:45:29 +0000 (17:45 +0200)]
fix: handle properly charging profile validity date
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 25 Jul 2023 15:24:34 +0000 (17:24 +0200)]
perf: only sort charging schdule periods if needed
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 25 Jul 2023 14:47:50 +0000 (16:47 +0200)]
fix: ensure charging schedule periods are sorted by startPeriod
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 25 Jul 2023 14:35:03 +0000 (16:35 +0200)]
refactor: add sanity check on recurring charging profile duration
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 25 Jul 2023 12:35:39 +0000 (14:35 +0200)]
fix: properly handling moving recurring charging profiles
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 25 Jul 2023 11:11:48 +0000 (13:11 +0200)]
refactor: factor out recurring charging profile handling
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 25 Jul 2023 10:57:29 +0000 (12:57 +0200)]
refactor: add sanity checks to charging profiles handling
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 25 Jul 2023 10:33:50 +0000 (12:33 +0200)]
feat: add support charging profile validity interval
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 24 Jul 2023 18:48:45 +0000 (20:48 +0200)]
refactor: refine log level
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 24 Jul 2023 18:31:26 +0000 (20:31 +0200)]
refactor: add type for charging profiles limit
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 24 Jul 2023 17:47:26 +0000 (19:47 +0200)]
build(deps-dev): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 24 Jul 2023 17:18:14 +0000 (19:18 +0200)]
feat: add support for relative charging profile
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 24 Jul 2023 15:45:19 +0000 (17:45 +0200)]
Merge pull request #634 from SAP/fix-limitation-from-profiles
Jérôme Benoit [Mon, 24 Jul 2023 15:36:20 +0000 (17:36 +0200)]
refactor: improve recurring charging profile mishandling error log
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 24 Jul 2023 15:26:09 +0000 (17:26 +0200)]
feat: add support for charging profiles relative to charging start
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 24 Jul 2023 14:38:53 +0000 (16:38 +0200)]
refactor: cleanup variable namespace
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 24 Jul 2023 14:31:08 +0000 (16:31 +0200)]
refactor: add sanity checks to recurring profiles translation to current
time windows
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 24 Jul 2023 13:17:52 +0000 (15:17 +0200)]
fix: properly translate schedule start date to current recurring time
windows
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 24 Jul 2023 12:22:06 +0000 (14:22 +0200)]
fix: handle recurring charging profiles only in the past
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 24 Jul 2023 12:09:50 +0000 (14:09 +0200)]
fix: remove monthly recurring charging profiles
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 24 Jul 2023 11:44:45 +0000 (13:44 +0200)]
feat: support all recurrency types in charging profiles
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 24 Jul 2023 11:18:41 +0000 (13:18 +0200)]
refactor: cleanup getLimitFromChargingProfiles() helper return type
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 24 Jul 2023 10:41:15 +0000 (12:41 +0200)]
fix: ensure daily recurring charging profiles are adjusted on a day
granularity
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 24 Jul 2023 10:24:50 +0000 (12:24 +0200)]
fix: fix daily recurring charging profiles handling
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 24 Jul 2023 09:10:11 +0000 (11:10 +0200)]
refactor: cleanup date handling
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 24 Jul 2023 00:16:06 +0000 (02:16 +0200)]
refactor: use helpers to manipulate duration
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 24 Jul 2023 00:01:17 +0000 (02:01 +0200)]
feat: improve duration formatting
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 23 Jul 2023 22:04:24 +0000 (00:04 +0200)]
fix: fix ATG configuration save at template reload
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 23 Jul 2023 20:27:40 +0000 (22:27 +0200)]
perf: fine tune default pool size for load tests
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 23 Jul 2023 10:11:08 +0000 (12:11 +0200)]
fix: clone configuration only if defined
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 22 Jul 2023 22:50:51 +0000 (00:50 +0200)]
build: improve number of workers computation
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 22 Jul 2023 21:50:52 +0000 (23:50 +0200)]
build: ensure an integer value at // build
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 22 Jul 2023 21:29:36 +0000 (23:29 +0200)]
build(deps-dev): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>