comparison pkg/imports/agm.go @ 4032:2fcfae3daa7d

Backed out changeset 82037bbd2c7c As long as we do an INSERT also for every line without changes, a review remains necessary to remove those entries from the staging area.
author Tom Gottfried <tom@intevation.de>
date Tue, 23 Jul 2019 14:58:56 +0200
parents 040a5dc95eb9
children f2d5bf42ed38
comparison
equal deleted inserted replaced
4031:4bf1c8d91bac 4032:2fcfae3daa7d
497 ase.Versions = []*agmLine{o, line} 497 ase.Versions = []*agmLine{o, line}
498 } 498 }
499 entries = append(entries, ase) 499 entries = append(entries, ase)
500 } 500 }
501 501
502 if len(entries) == 0 {
503 return nil, UnchangedError("No entries with changes")
504 }
505 feedback.Info("Imported %d entries with changes", len(entries)) 502 feedback.Info("Imported %d entries with changes", len(entries))
506 feedback.Info("Importing approved gauge measurements took %s", 503 feedback.Info("Importing approved gauge measurements took %s",
507 time.Since(start)) 504 time.Since(start))
508 505
509 return entries, nil 506 return entries, nil