Sonja Happ
65f7a9b493
revise file testing
2019-07-25 12:44:52 +02:00
Sonja Happ
a06d90d085
revise dashboard testing
2019-07-25 11:38:28 +02:00
Sonja Happ
d79fb53cb2
- create all test data in one file
...
- revise testing functions (WORK IN PROGRESS)
2019-07-25 11:22:39 +02:00
Sonja Happ
eb277fc92e
use jsondiff in endpoint testing
2019-07-24 13:17:47 +02:00
Sonja Happ
22e83240e5
Add more info about simulators in DB, adapt simulator testing
2019-07-24 11:07:09 +02:00
Sonja Happ
54b4a5d7b1
change datatypes of simulator properties and raw properties to json, small ajustments for frontend compatibility
2019-07-23 14:53:52 +02:00
Sonja Happ
b378e8b7c1
renaming simulation to scenario
2019-07-18 14:35:20 +02:00
Sonja Happ
c33438b395
renaming visualization to dashboard
2019-07-18 13:11:05 +02:00
Sonja Happ
c565c04ba9
- remove ack of message in AMQP client
...
- add a command line parameter to activate AMQP client
2019-07-18 10:35:02 +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
2973718d86
change data model to use Simulator has many SimulationModels
2019-06-18 14:07:08 +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
smavros
8635ceaeb9
Adds User_0 as Admin in dummy database
2019-05-29 23:38:57 +02:00
Sonja Happ
f6ea39af12
Merge branch 'master' into authentication
...
# Conflicts:
# go.mod
# go.sum
# routes/user/userEndpoints.go
# routes/user/userSerializer.go
# start.go
2019-05-28 10:40:53 +02:00
Sonja Happ
403f350b25
Signal is no longer a DB table
2019-05-22 10:06:31 +02:00
Sonja Happ
8f2e039ff0
removed signal/sample naming chaos
2019-05-21 16:51:34 +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
smavros
528c391a9f
Adds implementation of user.validatePassword():
...
- Uses bcrypt package for hashing the password
- Adds password hashing in common.DummyPopulateDB() for testing
2019-05-20 14:03:54 +02:00
Sonja Happ
8d3f7c4fa0
remove Files from User, add relation to to Widget
2019-05-17 15:32:58 +02:00
Sonja Happ
ababe1e315
remove file belongs to user relationship
2019-05-15 13:33:43 +02:00
Sonja Happ
3c6e76ce7c
add slices of Files to associations of SimulationModel
2019-05-15 13:04:12 +02:00
smavros
84cdda851f
Adds global variable for db connection pooling
2019-04-29 16:45:25 +02:00
smavros
5401a6bb02
Merge branch 'orm-fix'
2019-04-28 17:25:13 +02:00
smavros
77b5bbc6ff
Removes Debug from dummyDB. Renames assert in db_test
2019-04-28 17:13:51 +02:00
smavros
e000a518e3
Breaks down the associations of dummyDB to groups:
...
The three different groups are :
- HasMany and BelongsTo
- HasMany
- BelongsTo
For the first category only the BelongsTo associations are created
and the HasMany are going to automatically retrieved since we have
the same foreign key as the BelongsTo
2019-04-28 16:50:39 +02:00
Sonja Happ
ec28a721f4
Use command line parameters
2019-04-24 11:53:08 +02:00
smavros
215a9e93f5
Added inSignals and outSignals in DummyDB
...
Signal model has a `belongs to` associations so it cannot belongs at
the same time in OutputMapping and InputMapping of the
SimulationModel model.
2019-04-22 11:56:05 +02:00
smavros
1022b03f41
Fix Name in dummy database Project entries
2019-04-21 11:56:58 +02:00
smavros
535ae8a467
Corrected Name of visualization object in DummyDB
2019-04-19 13:49:21 +02:00
smavros
83cb2ea1db
Wrapped associations around checkErr(). Fixed SimulationModel
...
association
2019-04-15 11:11:10 +02:00
smavros
a1af6ac52f
Added comment
2019-04-14 21:03:34 +02:00
smavros
9df906bc15
Associations autoupdate OFF. Formated model structs.
2019-04-14 20:50:26 +02:00
smavros
57abe51d06
Added associations in test_db
2019-04-14 20:29:52 +02:00
smavros
a7179180ff
Changes in database handling in package common:
...
- CreateDB() is now InitDB()
- Added Dummy*() functions for setting up a dummy database (named
testvillasdb) that will be used by the tests.
2019-04-12 14:14:23 +02:00
smavros
62de87ff72
DBinfo now provided by global params
2019-04-05 00:27:47 +02:00
smavros
ae0f729a55
Formating using Gofmt with local tab=4*stops
2019-04-05 00:22:08 +02:00
smavros
e58c2b2dae
Added all the associations in models
2019-04-04 19:22:55 +02:00
Sonja Happ
91f52a409b
move all data structs to one file to avoid circular dependencies; use all data structs in start.go for testing compilation; dependency updates
2019-04-03 14:54:55 +02:00
smavros
afe1a33893
Added go.mod for Modules and Packages:
...
- Backend uses start.go in root for entry
2019-04-02 15:03:18 +02:00
smavros
64aeda36bd
Database runs a small CRUD example using gorm:
...
- Only Simulator model is used
- The postgres Array type is provided by lib/pq
- The default empty string is fixed
2019-03-31 19:19:38 +02:00
smavros
24a4eb1718
added folder for models and corresponding source files
2019-03-17 17:59:27 +01:00