Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
cb5c1bd2
Commit
cb5c1bd2
authored
Dec 18, 2015
by
utkarshcmu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed created_by and fixed gofmt
parent
af371249
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
pkg/api/dtos/models.go
+0
-1
pkg/models/dashboards.go
+2
-2
No files found.
pkg/api/dtos/models.go
View file @
cb5c1bd2
...
@@ -41,7 +41,6 @@ type DashboardMeta struct {
...
@@ -41,7 +41,6 @@ type DashboardMeta struct {
Expires
time
.
Time
`json:"expires"`
Expires
time
.
Time
`json:"expires"`
Created
time
.
Time
`json:"created"`
Created
time
.
Time
`json:"created"`
Updated
time
.
Time
`json:"updated"`
Updated
time
.
Time
`json:"updated"`
CreatedBy
string
`json:"createdBy"`
UpdatedBy
string
`json:"updatedBy"`
UpdatedBy
string
`json:"updatedBy"`
}
}
...
...
pkg/models/dashboards.go
View file @
cb5c1bd2
...
@@ -92,7 +92,7 @@ func NewDashboardFromJson(data map[string]interface{}) *Dashboard {
...
@@ -92,7 +92,7 @@ func NewDashboardFromJson(data map[string]interface{}) *Dashboard {
func
(
cmd
*
SaveDashboardCommand
)
GetDashboardModel
()
*
Dashboard
{
func
(
cmd
*
SaveDashboardCommand
)
GetDashboardModel
()
*
Dashboard
{
dash
:=
NewDashboardFromJson
(
cmd
.
Dashboard
)
dash
:=
NewDashboardFromJson
(
cmd
.
Dashboard
)
dash
.
OrgId
=
cmd
.
OrgId
dash
.
OrgId
=
cmd
.
OrgId
dash
.
UpdatedBy
=
cmd
.
UpdatedBy
dash
.
UpdatedBy
=
cmd
.
UpdatedBy
dash
.
UpdateSlug
()
dash
.
UpdateSlug
()
return
dash
return
dash
}
}
...
@@ -116,7 +116,7 @@ type SaveDashboardCommand struct {
...
@@ -116,7 +116,7 @@ type SaveDashboardCommand struct {
Dashboard
map
[
string
]
interface
{}
`json:"dashboard" binding:"Required"`
Dashboard
map
[
string
]
interface
{}
`json:"dashboard" binding:"Required"`
Overwrite
bool
`json:"overwrite"`
Overwrite
bool
`json:"overwrite"`
OrgId
int64
`json:"-"`
OrgId
int64
`json:"-"`
UpdatedBy
int64
`json:"-"`
UpdatedBy
int64
`json:"-"`
Result
*
Dashboard
Result
*
Dashboard
}
}
...
...
Write
Preview
Markdown
is supported
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