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>
Jérôme Benoit [Sat, 22 Jul 2023 12:40:52 +0000 (14:40 +0200)]
refactor(simulator): cleanup worker set variable namespace
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Jérôme Benoit [Sat, 22 Jul 2023 12:23:06 +0000 (14:23 +0200)]
build(deps-dev): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Jérôme Benoit [Fri, 21 Jul 2023 22:57:27 +0000 (00:57 +0200)]
fix: use aliased payload type on broadcast channel
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 21 Jul 2023 20:58:18 +0000 (22:58 +0200)]
build(deps): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 21 Jul 2023 14:41:57 +0000 (16:41 +0200)]
build: bump volta node version
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 21 Jul 2023 13:53:55 +0000 (15:53 +0200)]
fix: wait for worker exit to clean the worker set
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 21 Jul 2023 13:47:11 +0000 (15:47 +0200)]
fix: fix promises return type
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 20 Jul 2023 20:01:20 +0000 (22:01 +0200)]
refactor: emit worker set info at element started event
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 20 Jul 2023 19:48:08 +0000 (21:48 +0200)]
feat: add worker set events
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 20 Jul 2023 19:30:02 +0000 (21:30 +0200)]
feat: strict message event checking in worker set mode
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 20 Jul 2023 18:44:03 +0000 (20:44 +0200)]
feat: add error handling to worker set worker
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 20 Jul 2023 18:01:07 +0000 (20:01 +0200)]
refactor: remove now uneeded sanity check at worker message handling
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 20 Jul 2023 16:53:36 +0000 (18:53 +0200)]
build(deps-dev): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 20 Jul 2023 16:44:31 +0000 (18:44 +0200)]
build(deps): apply udpates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 20 Jul 2023 14:39:40 +0000 (16:39 +0200)]
refactor: cleanup CF manifest template
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 19 Jul 2023 19:38:31 +0000 (21:38 +0200)]
chore: version 1.2.19
Jérôme Benoit [Wed, 19 Jul 2023 19:25:15 +0000 (21:25 +0200)]
fix: do not use async callback with setInterval()
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 19 Jul 2023 18:50:32 +0000 (20:50 +0200)]
fix: fix 'Cannot read properties of undefined' with revervation enabled
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 19 Jul 2023 16:19:28 +0000 (18:19 +0200)]
fix: fix ATG startup
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 19 Jul 2023 13:30:11 +0000 (15:30 +0200)]
chore: version 1.2.18
Jérôme Benoit [Wed, 19 Jul 2023 13:28:56 +0000 (15:28 +0200)]
build(deps): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 19 Jul 2023 10:40:54 +0000 (12:40 +0200)]
build(deps-dev): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Jérôme Benoit [Tue, 18 Jul 2023 21:41:29 +0000 (23:41 +0200)]
refactor: cleanup default worker options handling
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 18 Jul 2023 18:57:18 +0000 (20:57 +0200)]
docs: improve code comments
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 18 Jul 2023 18:39:04 +0000 (20:39 +0200)]
refactor: factor out OCPP params handling helpers
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 18 Jul 2023 18:15:50 +0000 (20:15 +0200)]
build: update volta pnpm version
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 18 Jul 2023 17:52:10 +0000 (19:52 +0200)]
build(simulator): switch to strict type checking
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 18 Jul 2023 11:37:10 +0000 (13:37 +0200)]
build(deps-dev): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 17 Jul 2023 16:25:36 +0000 (18:25 +0200)]
refactor: cleanup configuration class usage
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 17 Jul 2023 14:34:07 +0000 (16:34 +0200)]
fix: ensure reservation expiration internal is > 0
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 17 Jul 2023 14:22:25 +0000 (16:22 +0200)]
refactor: move code into try catch block
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 17 Jul 2023 13:56:41 +0000 (15:56 +0200)]
build: update volta pnpm version
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 17 Jul 2023 13:49:41 +0000 (15:49 +0200)]
build(deps): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 17 Jul 2023 10:24:42 +0000 (12:24 +0200)]
fix: fix inscoped this in configuration class
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 17 Jul 2023 10:15:37 +0000 (12:15 +0200)]
refactor: improve configuration section typing
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 16 Jul 2023 22:57:44 +0000 (00:57 +0200)]
fix: ensure configuration section cache is always initialized
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 16 Jul 2023 22:11:12 +0000 (00:11 +0200)]
refactor: order configuration class methods
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 16 Jul 2023 22:02:19 +0000 (00:02 +0200)]
fix: fix configuration section caching
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 16 Jul 2023 21:25:54 +0000 (23:25 +0200)]
refactor: cleanup configuration namespace
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 16 Jul 2023 21:15:21 +0000 (23:15 +0200)]
feat: add configuration cache
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 16 Jul 2023 19:40:17 +0000 (21:40 +0200)]
refactor: syntax check in worker configuration section
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 16 Jul 2023 18:22:41 +0000 (20:22 +0200)]
refactor(ui): switch to named export
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 16 Jul 2023 17:03:45 +0000 (19:03 +0200)]
build(deps): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 16 Jul 2023 16:09:44 +0000 (18:09 +0200)]
refactor: add type parameter to OCPP stack for request and response
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 16 Jul 2023 15:31:53 +0000 (17:31 +0200)]
refactor: cleanup null checks and helpers
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 16 Jul 2023 14:20:03 +0000 (16:20 +0200)]
refactor: cleanup type casting
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 16 Jul 2023 14:09:51 +0000 (16:09 +0200)]
build(ci): fix linting
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 16 Jul 2023 13:11:28 +0000 (15:11 +0200)]
build(deps-dev): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 15 Jul 2023 09:13:13 +0000 (11:13 +0200)]
build: add keywords section to package.json
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 14 Jul 2023 19:52:57 +0000 (21:52 +0200)]
build(simulator): silence linter
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 14 Jul 2023 19:48:59 +0000 (21:48 +0200)]
refactor: cleanup
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 14 Jul 2023 18:55:30 +0000 (20:55 +0200)]
docs: refine README.md
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 14 Jul 2023 18:49:33 +0000 (20:49 +0200)]
refactor: remove pool strategy from worker configuration section
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 14 Jul 2023 18:19:38 +0000 (20:19 +0200)]
build(ci): cleanup action
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 14 Jul 2023 18:15:55 +0000 (20:15 +0200)]
build(deps-dev): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 14 Jul 2023 14:55:53 +0000 (16:55 +0200)]
build(ci): silence deprecation warning
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 13 Jul 2023 18:07:00 +0000 (20:07 +0200)]
Merge branch 'main' of github.com:SAP/e-mobility-charging-stations-simulator
Jérôme Benoit [Thu, 13 Jul 2023 18:06:20 +0000 (20:06 +0200)]
docs: display the git clones number badge
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
GitHub Action [Thu, 13 Jul 2023 18:00:06 +0000 (18:00 +0000)]
create clone count badge
Jérôme Benoit [Thu, 13 Jul 2023 17:58:31 +0000 (19:58 +0200)]
build(ci): fix push to protected branch
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>