Commit graph

181 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
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
Sonja Happ
99e8e2fd90 fix user test: connect to AMQP session in TestMain instead of individual tests 2022-01-10 15:02:14 +01:00
Sonja Happ
a4947a53e9 allow signal indices to start at 0 instead of 1 2022-01-03 14:19:12 +01:00
Iris Marie Köster
4db2f91ea5 Fix duplication: synchronous duplication, proper duplication of widgets which use IDs, reuse duplicated IC (if alive) 2021-12-02 18:37:52 +01:00
irismarie
a0861989bd login despite failed duplication 2021-11-11 12:41:08 +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
irismarie
3e2f2ce8e8 complete duplication test, code fixes 2021-10-21 18:10:32 +02:00
Sonja Happ
ae3e0374f1 user test: set AMQP session in IC package to test scenario duplication (ping is sent from within IC package) 2021-10-21 14:03:48 +02:00
irismarie
780334592f add test for scenario duplication 2021-10-21 12:39:04 +02:00
irismarie
7a540db693 Merge branch 'refactor-amqp-session' of https://git.rwth-aachen.de/acs/public/villas/web-backend-go into refactor-amqp-session 2021-10-20 15:25:22 +02:00
irismarie
73033d566c [wip] add duplicate scenario test to merge rest of branch 2021-10-20 15:24:57 +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
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
71b103a7c1 improve error handling in case AMQP session is not available 2021-10-19 11:46:19 +02:00
Sonja Happ
9af822b801 fix header settings upon auth. failure, add amqp connection to user/ scenario duplication test 2021-10-19 11:36:04 +02:00
Sonja Happ
d6ab81a0f9 fix in health endpoint (error handling) and scenario duplication 2021-10-19 11:17:31 +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
93d14300d8 Merge branch 'master' into refactor-amqp-session
Improve error handling of async go routine for duplication
2021-10-15 15:34:07 +02:00
irismarie
0219f26132 refactor code 2021-10-15 12:31:13 +02:00
irismarie
8b32fe8def fix ic duplication 2021-10-14 18:17:22 +02:00
irismarie
c8650b97e2 duplicate files 2021-10-13 15:11:07 +02:00
irismarie
58b1d4e303 fix signal mapping in component config duplication 2021-09-17 20:44:26 +02:00
Sonja Happ
7b30b46b27 Add feature for duplicating scenario on external login 2021-09-17 20:32:36 +02:00
Sonja Happ
17fa67ae52 Merge branch 'rework-demo-data-reading' into 'master'
Rework demo data reading

See merge request acs/public/villas/web-backend-go!33
2021-04-30 12:45:32 +00:00
Sonja Happ
3b213dbe32 use User database model to append association to scenario-user table 2021-04-30 12:47:44 +02:00
43a5a5dcd3 more debugging for group scenario mapping 2021-04-30 07:49:23 +02:00
Sonja Happ
ea49019ccb fixes after merge 2021-04-29 16:43:32 +02:00
Sonja Happ
d57d1e9b0b Merge branch 'master' of git.rwth-aachen.de:acs/public/villas/web-backend-go
 Conflicts:
	routes/user/authenticate_endpoint.go
2021-04-29 16:42:56 +02:00
Sonja Happ
f07d8e1089 remove references and pointers in authenticate functions 2021-04-29 16:41:06 +02:00
956e00756f fixes for group scenario mapping 2021-04-29 15:17:24 +02:00
Sonja Happ
6b2677ef63 fix syntax errors in tests 2021-04-29 13:28:01 +02:00
Sonja Happ
e1654941a1 Merge branch 'master' into map-external-groups-to-scenarios 2021-04-21 13:51:21 +02:00
Sonja Happ
56742cd908 fix usage of GORM 2021-04-19 17:00:25 +02:00
7049ba6eaa add static map to add users to scenarios based on their groups 2021-04-15 17:32:55 +02:00
Sonja Happ
776e89eb90 fix updating bool values of data models (incl. scenario IsLocked parameter #63) 2021-04-14 10:07:35 +02:00
Sonja Happ
e11278cce3 fix typo when checking if auth external is enabled in authenticated endpoint 2021-02-26 14:14:23 +01:00
Sonja Happ
f8101977b6 fix typo when referring to external auth enabled config variable 2021-02-12 14:36:10 +01:00
fab5fbf66a fix user tests 2021-02-08 11:56:14 +01:00
4943aa9989 fix invalid cast of userID 2021-02-08 11:56:14 +01:00
e4d200e6fd remove basePath and basePath settings 2021-02-08 11:56:11 +01:00
b24387a22a final fixes for external authentication 2021-02-08 11:55:36 +01:00
914db083ed fix authenticate endpoint 2021-02-08 11:55:36 +01:00
c81c1bb04f smaller bugfixes for external authentication 2021-02-08 11:55:36 +01:00
47b094b68d fix invalid config reference 2021-02-08 11:55:36 +01:00