Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ACS
Public
VILLASframework
VILLASweb-backend-go
Commits
e6b42ba6
Commit
e6b42ba6
authored
May 29, 2020
by
Sonja Happ
Browse files
Component Config: selected file ID is signed integer instead of uint (no file selected = -1)
parent
afb311a8
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
database/models.go
View file @
e6b42ba6
...
...
@@ -93,7 +93,7 @@ type ComponentConfiguration struct {
// Mapping of input signals of the Component Configuration, order of signals is important
InputMapping
[]
Signal
`json:"-" gorm:"foreignkey:ConfigID"`
// Currently selected FileID
SelectedFileID
u
int
`json:"selectedFileID" gorm:"default:0"`
SelectedFileID
int
`json:"selectedFileID" gorm:"default:0"`
}
// Signal data model
...
...
routes/component-configuration/config_test.go
View file @
e6b42ba6
...
...
@@ -45,7 +45,7 @@ type ConfigRequest struct {
ScenarioID
uint
`json:"scenarioID,omitempty"`
ICID
uint
`json:"icID,omitempty"`
StartParameters
postgres
.
Jsonb
`json:"startParameters,omitempty"`
SelectedFileID
u
int
`json:"selectedFileID,omitempty"`
SelectedFileID
int
`json:"selectedFileID,omitempty"`
}
type
ICRequest
struct
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment