Skip to content

Commit

Permalink
issues #64 technical debt
Browse files Browse the repository at this point in the history
  • Loading branch information
e154 committed Aug 14, 2022
1 parent 242b98c commit f853123
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 2 deletions.
1 change: 1 addition & 0 deletions cmd/server/container/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ func MigrationList(adaptors *adaptors.Adaptors,
local_migrations.NewMigrationAreas(adaptors),
local_migrations.NewMigrationPlugins(adaptors),
local_migrations.NewMigrationZones(adaptors),
local_migrations.NewMigrationDashboard(adaptors),
}
}
5 changes: 3 additions & 2 deletions endpoint/dashboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ package endpoint

import (
"context"

"github.com/go-playground/validator/v10"
"github.com/jinzhu/copier"
"github.com/pkg/errors"
Expand Down Expand Up @@ -72,7 +71,6 @@ func (d *DashboardEndpoint) GetById(ctx context.Context, id int64) (board *m.Das
return
}


// Search ...
func (d *DashboardEndpoint) Search(ctx context.Context, query string, limit, offset int64) (result []*m.Dashboard, total int64, err error) {

Expand Down Expand Up @@ -182,6 +180,9 @@ func (d *DashboardEndpoint) preloadEntities(board *m.Dashboard) (err error) {
// Import ...
func (d *DashboardEndpoint) Import(ctx context.Context, board *m.Dashboard) (result *m.Dashboard, err error) {

//b, _ := json.Marshal(board)
//fmt.Println(string(b))

var id int64
if id, err = d.adaptors.Dashboard.Import(board); err != nil {
return
Expand Down
43 changes: 43 additions & 0 deletions system/initial/local_migrations/m_dashboard.go

Large diffs are not rendered by default.

0 comments on commit f853123

Please sign in to comment.