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
b89a68296f
Experimenting with testing and auto generating API specs based on code
2019-05-23 14:36:42 +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
d7d07e1db4
fix bug with json default values
2019-05-21 15:46:40 +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
75f8ef280d
Add file upload mechanism
2019-05-17 16:27:59 +02:00
Sonja Happ
4dfa4fd5f4
fix error in db test
2019-05-17 15:40:58 +02:00
Sonja Happ
8d3f7c4fa0
remove Files from User, add relation to to Widget
2019-05-17 15:32:58 +02:00
Sonja Happ
473abac8f4
work on file endpoints (WIP, not working)
2019-05-16 16:58:53 +02:00
Sonja Happ
6894dd961f
fix api documentation for new CIM file endpoints
2019-05-15 16:10:00 +02:00
Sonja Happ
64af5a6434
add missing IDs for has many relations
2019-05-15 13:39:06 +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
Sonja Happ
83e8563526
use new folder structure for implementation of routes
2019-05-09 11:50:18 +02:00
Sonja Happ
eb19f3e133
Fix includes of gin-gonic
2019-04-30 11:12:24 +02:00
smavros
d34566e3ba
First implementation of users GET API operation
2019-04-29 16:48:42 +02:00
smavros
2723c32ba8
Adds helpers and serializer files for routing
2019-04-29 16:47:18 +02:00
smavros
84cdda851f
Adds global variable for db connection pooling
2019-04-29 16:45:25 +02:00
smavros
61ea3406b3
Adds unimplemented endpoints for users API
2019-04-29 12:02:08 +02:00
smavros
45264c05bc
Merged database test
2019-04-28 17:28:04 +02:00
smavros
5401a6bb02
Merge branch 'orm-fix'
2019-04-28 17:25:13 +02:00
smavros
1c90cfa897
Simplifies the Signals association test
2019-04-28 17:16:21 +02:00
smavros
77b5bbc6ff
Removes Debug from dummyDB. Renames assert in db_test
2019-04-28 17:13:51 +02:00
smavros
1e3ef25a0a
Removes check of HasMany associations queries
2019-04-28 17:00:50 +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
60e395003b
change variable name that was hiding a package name
2019-04-24 15:15:50 +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
518af7ca65
Changes in Models for debugging purposes:
...
- Replaces gorm.Model with ID uint for primary_key
- Deactivates association_autoupdate for every association
2019-04-22 11:45:17 +02:00
smavros
deffe181e5
Fixes Visualization model test
2019-04-22 11:36:50 +02:00
smavros
629e0218d9
Sets associations autoupdate to pass the tests
...
This is not a formal solution. The associations_autoupdate tag was
set manually to just pass the test.
2019-04-22 11:04:43 +02:00
smavros
1022b03f41
Fix Name in dummy database Project entries
2019-04-21 11:56:58 +02:00
smavros
fe67549577
Add tests for dummy db Models and Associations
2019-04-21 11:56:04 +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
5013a27a8f
Added test file for the database functions
2019-04-14 21:04:23 +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
3682ae265a
Renamed visualization struct field:
...
- VisualizationUser to User and the corresponding foreign key
2019-04-14 20:32:19 +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
608e772c9b
Simplified associations for models related with has many
and belongs to
2019-04-04 19:31:36 +02:00
smavros
e58c2b2dae
Added all the associations in models
2019-04-04 19:22:55 +02:00
Sonja Happ
515c64782c
formating cosmetics - next try
2019-04-04 08:49:07 +02:00
Sonja Happ
25ea047bd7
formating cosmetics
2019-04-04 08:42:37 +02:00