Commit graph

67 commits

Author SHA1 Message Date
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
Sonja Happ
1de4d9c9c2 Code base refactoring: no functional changes, improving test coverage 2020-03-27 11:53:26 +01:00
Sonja Happ
4a58143a6e modify model of infrastructure component; add name, type, and category as top level parameters; fix testing of packages accordingly 2020-03-20 12:21:02 +01:00
Sonja Happ
70b2ded851 modularize main function, use DBpool instead of local DB in database package and all testing functions 2020-03-19 10:50:18 +01:00
Sonja Happ
29e0e0cc9e make sure that at least one admin user is added to DB in release mode 2020-03-19 09:32:39 +01:00
Sonja Happ
d7de421365 remove AddTestData testing function (circular dependency not possible) 2020-03-13 17:35:55 +01:00
Sonja Happ
d2c94d1886 - models: remove imageHeight and imageWidth from File model (is customProperty of image widget)
- test data: add test data in test mode via API instead of GORM
- fix typos and update API documentation
2020-03-13 17:16:12 +01:00
Sonja Happ
ef1dede70c renaming: simulation model = component configuration 2020-03-06 15:14:29 +01:00
Sonja Happ
11a0c53b85 rename simulator to infrastructure component 2020-03-04 16:34:24 +01:00
Sonja Happ
9539c42e0b Add array of SignalIDs to widget data model 2020-02-19 10:26:34 +01:00
Sonja Happ
dd0b9fe572 change default selected model files in test data 2020-02-18 16:54:20 +01:00
Sonja Happ
fe5ceb8d61 Add file ID of selected simulation model file to simulationModel data model 2020-02-18 13:36:05 +01:00
Sonja Happ
690ac1c7f6 fix variable naming 2020-01-13 15:29:35 +01:00
Sonja Happ
57b119b23f Merge branch 'example-dashboard' of git.rwth-aachen.de:acs/public/villas/web-backend-go into example-dashboard 2020-01-07 10:12:55 +01:00
Laura Fuentes Grau
6ebd5d6b28 test 2020-01-07 09:26:05 +01:00
Sonja Happ
db3fb5354c fix database test for new test data widgets 2019-12-03 14:54:34 +01:00
Laura Fuentes Grau
5104227606 wip: added the needed testdata for widgets 2019-12-03 14:00:05 +01:00
Sonja Happ
92f22035c6 add GPL 3.0 license statement in all (not auto-generated) code files 2019-11-20 11:08:33 +01:00