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
d546f7bc91
fix tests
2019-11-13 21:22:17 +01:00
Sonja Happ
a8a43f8512
Improvements for swagger API documentation
...
- Adds Authorization token as required header param to all endpoints (except authenticate itself)
- Documents correct data format for request bodies (relevant for updating and adding elements)
- No functional changes applied
2019-11-13 14:48:08 +01:00
Sonja Happ
7963ce5e78
remove DB_TEST and use DB_NAME instead, InitDB function now has parameter to specify if DB is used for testing or not
2019-11-11 12:06:53 +01:00
2311d643c6
fix repo path
2019-11-09 11:40:56 +01:00
Sonja Happ
04cbbb7825
improve return statements
2019-09-11 15:32:16 +02:00
Sonja Happ
387c922059
Revision of (file) testing
...
- create a guest user and modify function that adds users to the DB for testing
- improve code coverage of file endpoint tests and remove some obsolete code from file package
- add more error info if role validation fails in all endpoints
- change response of GET files to only return the file data and nothing else
- fix some bugs in file endpoints that became visible by the tests
2019-09-11 12:30:01 +02:00
Sonja Happ
d160103fcf
create a function in helper package to extract the ID of an element from a path or query and use this function in middleware
2019-09-10 17:17:53 +02:00
Sonja Happ
f3a7ed0e61
**Major revision of repository structure**
...
- rename common package to database
- move all code not related to database to new helper package
- add more test in database package to improve code coverage
- add a new (own) package for AMQP client
2019-09-10 16:28:57 +02:00
Sonja Happ
2ffda7cad8
- revise naming of some common functions
...
- improve returning of error codes by using common functions
- use a separate file for authentication endpoint to improve clarity of code
2019-09-09 15:30:17 +02:00
Sonja Happ
ac9e564bc8
- deleting old obsolete test functions
...
- move all data and functions solely used for testing to the file test_utilities
- get rid of utilities file
2019-09-09 12:11:55 +02:00
Sonja Happ
f339c0d135
- revise testing of file endpoints
...
- revise documentation for swaggo
- clean up testdata
- delete serializers and responses files
- revise file endpoint implementations
2019-09-06 17:04:40 +02:00
smavros
c2429394ed
Renames VisitorAuthenticate() to RegisterAuthenticate()
2019-08-15 14:52:19 +02:00
Sonja Happ
65f7a9b493
revise file testing
2019-07-25 12:44:52 +02:00
Sonja Happ
eb277fc92e
use jsondiff in endpoint testing
2019-07-24 13:17:47 +02:00
Sonja Happ
f0be5cce00
file renaming
2019-07-18 13:25:41 +02:00
Sonja Happ
304680603d
implement DELETE endpoint for files, cleanup
2019-07-04 10:34:54 +02:00
Sonja Happ
fc91ebc64c
working on file endpoints; testing to be completed, other tests to be checked
2019-07-03 16:53:04 +02:00
Sonja Happ
5ca6281a22
- add testing for simulationmodel endpoints
...
- add Signal serializer
- Use Signals DB table again
- remove / in some endpoint definitions
2019-06-06 16:36:12 +02:00
Sonja Happ
babe1cb308
refactoring Model to SimulationModel
2019-06-05 13:12:23 +02:00
Sonja Happ
786e36398b
implement model-specific methods instead of queries (WIP)
2019-05-28 16:41:30 +02:00
Sonja Happ
34eebbab88
Shorten API URLs, add more documentation for swaggo
2019-05-27 14:43:12 +02:00
Sonja Happ
0c4c60c1ce
Add more API doc in code, modify deployment endpoint of auto generated API doc
2019-05-24 17:15:15 +02:00
Sonja Happ
144c97ce49
Refactoring code base to new structure, removing circular dependencies, creating response types
2019-05-23 16:50:05 +02:00
Sonja Happ
5409c61939
Major changes:
...
- continue revision of folder structure
- work on model endpoints
- add skeletons for clone endpoints
2019-05-21 14:37:45 +02:00
Sonja Happ
44e15773fd
Major changes:
...
- revise data model to new version (without project)
- adapt database test to new data model
- use separate folder for all endpoint defs and functions to avoid circular deps
- add all API endpoints and skeletons for their implementation
2019-05-21 12:49:39 +02:00
Sonja Happ
a78bf892f5
Renaming:
...
- SimulationModel to Model
- Signal to Sample
2019-05-21 09:14:44 +02:00
Sonja Happ
17d88f4c67
Work on endpoints involving file management, To be tested, WIP
2019-05-20 16:17:54 +02:00