From 2788c5fc87507974d3237d4edc233fda3f784b35 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Sun, 29 Nov 2020 20:22:09 +0100 Subject: bug: don't store the id in Bug, match how it's done for Identity --- bug/with_snapshot.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bug/with_snapshot.go') diff --git a/bug/with_snapshot.go b/bug/with_snapshot.go index 2b2439df..41192d39 100644 --- a/bug/with_snapshot.go +++ b/bug/with_snapshot.go @@ -47,7 +47,7 @@ func (b *WithSnapshot) Commit(repo repository.ClockedRepo) error { return nil } - b.snap.id = b.Bug.id + b.snap.id = b.Bug.Id() return nil } -- cgit From 3f6ef50883492f77995a7e27872d0b5ae17b9d6a Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Sun, 14 Feb 2021 11:36:32 +0100 Subject: bug: migrate to the DAG entity structure! --- bug/with_snapshot.go | 6 ------ 1 file changed, 6 deletions(-) (limited to 'bug/with_snapshot.go') diff --git a/bug/with_snapshot.go b/bug/with_snapshot.go index 41192d39..9b706d61 100644 --- a/bug/with_snapshot.go +++ b/bug/with_snapshot.go @@ -50,9 +50,3 @@ func (b *WithSnapshot) Commit(repo repository.ClockedRepo) error { b.snap.id = b.Bug.Id() return nil } - -// Merge intercept Bug.Merge() and clear the snapshot -func (b *WithSnapshot) Merge(repo repository.Repo, other Interface) (bool, error) { - b.snap = nil - return b.Bug.Merge(repo, other) -} -- cgit