refactoring: moved dashboard history item formating (message) and fixed dashboard history migration issue, and removed from frontend tests that where no longer needed

This commit is contained in:
Torkel Ödegaard
2017-06-05 22:59:04 +02:00
parent f18ebea03e
commit cabbfe9adc
7 changed files with 34 additions and 133 deletions

View File

@@ -93,7 +93,7 @@ func SaveDashboard(cmd *m.SaveDashboardCommand) error {
dashVersion := &m.DashboardVersion{
DashboardId: dash.Id,
ParentVersion: parentVersion,
RestoredFrom: -1,
RestoredFrom: cmd.RestoredFrom,
Version: dash.Version,
Created: time.Now(),
CreatedBy: dash.UpdatedBy,

View File

@@ -39,7 +39,7 @@ func addDashboardVersionMigration(mg *Migrator) {
)
SELECT
dashboard.id,
dashboard.version + 1,
dashboard.version,
dashboard.version,
dashboard.version,
dashboard.updated,