Commit graph

83 commits

Author SHA1 Message Date
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
2fe124e703 file: include S3 key in delete log message 2022-02-04 15:36:41 +01:00
Sonja Happ
0ed8e2b3b1 use presigned URL fix again for testing #76 2021-10-28 16:49:22 +02:00
Sonja Happ
49dc46e6f1 comment unused methods 2021-10-28 15:49:09 +02:00
Sonja Happ
5d3b5be920 undo content disposition header fix 2021-10-28 15:44:38 +02: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
66d6c3f944 s3: fix broken presigned urls when internal s3 endpoint was different from external 2021-10-19 17:40:01 +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
Sonja Happ
481c7c6284 fix error handling of s3.bucket param request also in upload method 2021-10-19 15:56:50 +02:00
Sonja Happ
941687692e fix error handling of s3.bucket param request 2021-10-19 15:54:36 +02:00
7631e2a9b5 pass boolean clear argument to DBInit() 2021-10-19 14:40:45 +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
b3404608d1 do not remove file data from s3 storage if DELETE is executed for file 2021-10-14 15:02:58 +02:00
Sonja Happ
b99ac9982c add fallback solution in case image config cannot be decoded #70 2021-06-02 09:13:11 +02:00
Sonja Happ
6b2677ef63 fix syntax errors in tests 2021-04-29 13:28:01 +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
edb361f150 Fix in file test 2021-04-14 12:23:45 +02: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
e4d200e6fd remove basePath and basePath settings 2021-02-08 11:56:11 +01:00
f4c662940e Authentication: remove unused argument 2021-02-08 11:55:36 +01:00
59c924bcff update package name of response docs as changed upstream in swag 2021-02-05 22:44:45 +01:00
Sonja Happ
ca0ccf82d1 WIP: file test independent of test data 2021-01-27 10:32:30 +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
2d3adbcc9b Add some (temporary) debug output to test S3 2021-01-19 14:10:38 +01:00
dd746295cc s3: fix broken pre-signed URL signature 2021-01-18 19:02:44 +01:00
Sonja Happ
cd0aa25f49 fix for file update method, remove redundant code, error formatting fixes 2021-01-13 14:37:35 +01:00
Sonja Happ
4d9699fbcf fix error messages 2021-01-13 12:19:13 +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
661f2049b6 added support for storing files in S3 object storage 2020-11-28 02:51:35 +01:00
Sonja Happ
6689c858d6 expose some functions of file package, add more MIME types to file download function to cover result file formats 2020-11-20 14:01:29 +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
5df16ec00b change name and type of file upon update 2020-09-28 11:42:45 +02:00
Sonja Happ
c4d7fc9488 add APIkey-based authentication to swagger documentation 2020-09-25 16:16:46 +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
0e54b7ba33 simplify download function for files 2020-05-12 12:21:37 +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
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
13f2ae7de3 simulationModel: rename response field from model(s) to simulationModel(s) 2019-11-26 14:22:26 +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
Sonja Happ
9f56b66213 replace some fmt. calls with log. calls #17 2019-11-20 10:12:20 +01:00
Sonja Happ
6d4c84ec4e - InitDB returns error
- Check more errors in InitDB
- fix for healthz endpoint (error checking was wrong)
- remove dbinit parameter from config due to redundancy with mode parameter
2019-11-14 11:44:26 +01:00
Sonja Happ
7a64d4653a Some fixes with respect to config
- resolve some name overlappings
- InitConfig sets global config and returns error
- Add missing error handling
2019-11-14 10:38:51 +01:00