Commit graph

84 commits

Author SHA1 Message Date
45b4137bc4 config: add setting for database port 2022-09-19 18:15:27 +02:00
Sonja Happ
bcbf89bee6 revert commit ff0e08e4, correct mistake of commit 48288360 (one line in this file was committed accidentally) 2022-04-06 11:09:54 +02:00
Sonja Happ
ff0e08e44e CI: fix database testing 2022-04-05 17:23:49 +02:00
Sonja Happ
48288360d5 Updating license statement in each file and updating year and contact info in README (closes #89) 2022-04-05 16:38:25 +02:00
Sonja Happ
16b9341bd3 Merge branch 'fix-signal-indices' into 'master'
allow signal indices to start at 0 instead of 1

See merge request acs/public/villas/web-backend-go!45
2022-01-26 09:01:16 +01:00
4e3f687634 use log.Info() instead of fmt.Printf() 2022-01-24 09:59:49 +01:00
Sonja Happ
a4947a53e9 allow signal indices to start at 0 instead of 1 2022-01-03 14:19:12 +01:00
Sonja Happ
344b2bbc7c Merge branch 'master' into refactor-amqp-session
# Conflicts:
#	database/database.go
#	routes/healthz/healthz_endpoint.go
#	start.go
2021-10-26 10:50:11 +02:00
e32336490c allow update of admin user via CLI args 2021-10-19 16:32:56 +02:00
Sonja Happ
482b7a5a2c Merge branch 'master' into refactor-amqp-session
# Conflicts:
#	helper/amqp.go
#	helper/test_utilities.go
#	routes/component-configuration/config_methods.go
#	routes/file/file_test.go
#	routes/infrastructure-component/ic_amqpmethods.go
#	routes/infrastructure-component/ic_apiquery.go
#	routes/infrastructure-component/ic_test.go
#	routes/register_test.go
#	routes/result/result_methods.go
#	routes/result/result_test.go
#	routes/scenario/scenario_middleware.go
#	routes/scenario/scenario_test.go
#	routes/signal/signal_test.go
#	routes/user/user_validators.go
2021-10-19 16:31:38 +02:00
140973ab27 refactor database.DBAddAdminUser() to database.AddAdminUser() 2021-10-19 16:15:01 +02:00
786454a100 use proper error types instead of using strings.Contains() 2021-10-19 15:33:58 +02:00
9e45f39e31 simplify database test 2021-10-19 14:45:45 +02:00
7631e2a9b5 pass boolean clear argument to DBInit() 2021-10-19 14:40:45 +02:00
515ef2de15 fix CI tests 2021-10-19 14:18:23 +02:00
2a9b2d4026 fix linting errors found by staticcheck 2021-10-19 13:56:53 +02:00
Sonja Happ
e7679a79b7 fix more issues with circular dependencies and tests, fix bug in permissions 2021-10-19 11:04:39 +02:00
Sonja Happ
302b1cc470 move functions to duplicate scenarios into respective packages, resolve circular dependency problems (move permissions checking to database package), improve error handling of async DuplicateScenarioForUser function 2021-10-18 17:20:28 +02:00
Sonja Happ
cc93120432 test data: add test manager with create parameter schema 2021-08-02 15:52:05 +02:00
Sonja Happ
50f891d8ae remove InputLength and OutputLength from ComponentConfig data model 2021-07-27 10:07:59 +02:00
Sonja Happ
b931cdb4f3 Add CreateParameterSchema parameter to IC data model and adapt extraction of start and create parameter schemas to new VILLAScontroller protocol #67 2021-06-01 11:57:36 +02:00
Sonja Happ
6b2677ef63 fix syntax errors in tests 2021-04-29 13:28:01 +02:00
Sonja Happ
b1c08f16b0 WIP: rework the demo data reading via config parameter(s) 2021-04-29 12:45:55 +02:00
Sonja Happ
aa9d01f230 Merge branch 'scenario-is-locked' into 'master'
Introduce IsLocked Parameter for Scenario (instead of Running parameter)

See merge request acs/public/villas/web-backend-go!30
2021-04-21 09:20:19 +00:00
Sonja Happ
f3d6353f86 add user role Download; limit access check to scenario in file middleware #52 2021-04-14 11:11:28 +02:00
Sonja Happ
0a62c78132 transform "running" parameter of scenario into "IsLocked" parameter; only admins can change this parameter, all operations other than READ fail if scenario is locked - also for associated components #63 2021-03-25 15:40:51 +01:00
Sonja Happ
2a88d903b9 rename IC startParameterScheme --> startParameterSchema 2021-03-08 09:40:22 +01:00
Sonja Happ
0f0e8872b9 change second test data IC to not managed externally 2021-02-22 12:40:53 +01:00
Sonja Happ
18352aef8a Introduce manager field for IC; set header uuid to manager uuid for create and delete actions #56 2021-02-12 17:20:44 +01:00
Sonja Happ
9002b72393 test data: fix number swap in test slider 2021-02-10 13:19:11 +01:00
Sonja Happ
6a5379c9b5 backward compatibility of uptime data type (int vs. float) 2021-02-05 15:50:13 +01:00
Sonja Happ
6487996c7f change position of test slider 2021-02-03 08:51:34 +01:00
Sonja Happ
6a23b6d8c3 adapt AMQP status messages to new message structure; add field to IC data model for raw status message 2021-01-28 10:36:35 +01:00
Sonja Happ
616a1c74dc WIP: adding test data via JSON file #44 2021-01-26 15:44:51 +01:00
2625e16fbe config: fix typo GolbalConfig -> GlobalConfig 2021-01-25 10:57:25 +01:00
Sonja Happ
b9483e48d0 Merge branch 'master' into large-files
# Conflicts:
#	routes/file/file_methods.go
2021-01-13 12:09:23 +01:00
Sonja Happ
1d1b3388a3 Add testing for result endpoints, fix some bugs 2021-01-12 16:55:15 +01:00
661f2049b6 added support for storing files in S3 object storage 2020-11-28 02:51:35 +01:00
Sonja Happ
89311af146 WIP: initial version of result data model, endpoints, methods, validators, middleware #38 2020-11-19 17:23:24 +01:00
Sonja Happ
b55bb761b5 Dimensions of an image file are stored in File data model, values default to 0 if file is not an image; closes #45 2020-11-16 15:52:36 +01:00
Sonja Happ
d0c6cca76c Adapt layout of AMQP update to VILLAScontroller protocol, add uptime in IC creation and updates via AMQP; need to check data type of uptime #31 2020-10-30 15:16:53 +01:00
Sonja Happ
4922d8c4ce Add field ManagedExternally to IC data model 2020-10-20 16:20:04 +02:00
Sonja Happ
adabfc8e9c Transform Properties into StartParameterScheme 2020-10-20 15:27:36 +02:00
Sonja Happ
1f0455d901 Parameter cleanup in IC model 2020-10-20 12:57:38 +02:00
Sonja Happ
81c870528d change selectedFileID parameter of component config to array of file ids (fileIDs) #37 2020-07-06 15:31:51 +02:00
Sonja Happ
93bdd15e68 add scalingFactor parameter to Signal data model #33 2020-06-26 10:17:21 +02:00
Sonja Happ
aea28c712e add APIHost parameter to IC data model #35 2020-06-26 10:02:57 +02:00
Sonja Happ
1fa7444c66 Add height parameter to dashboard data model #36 2020-06-26 09:44:25 +02:00
Sonja Happ
e6b42ba63c Component Config: selected file ID is signed integer instead of uint (no file selected = -1) 2020-05-29 12:52:25 +02:00
Sonja Happ
8b60430d84 Change of data model: associate files with scenario instead of widgets and component configuration #34 2020-05-26 11:27:00 +02:00