From 6490f0966245c57839359c366604f8ca05c4c7d3 Mon Sep 17 00:00:00 2001 From: mcrakhman Date: Tue, 12 Jul 2022 13:26:06 +0200 Subject: [PATCH] Fix header parse and add todos --- testutils/threadbuilder/threadbuilder.go | 6 +----- thread/pb/protos/thread.proto | 1 + 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/testutils/threadbuilder/threadbuilder.go b/testutils/threadbuilder/threadbuilder.go index e5af56a3..8258adbf 100644 --- a/testutils/threadbuilder/threadbuilder.go +++ b/testutils/threadbuilder/threadbuilder.go @@ -79,11 +79,6 @@ func (t *ThreadBuilder) GetKeychain() *Keychain { return t.keychain } -// writer can create docs -> id can create writer permissions -// by id we can check who created -// at the same time this guy can add some random folks which are not in space -// but we should compare this against space in the future - func (t *ThreadBuilder) Heads() []string { return t.heads } @@ -228,6 +223,7 @@ func (t *ThreadBuilder) Parse(thread *YMLThread) { t.parseGraph(thread) t.parseOrphans(thread) + t.parseHeader(thread) } func (t *ThreadBuilder) parseChange(ch *Change) *threadChange { diff --git a/thread/pb/protos/thread.proto b/thread/pb/protos/thread.proto index fb2b15e4..97557b25 100644 --- a/thread/pb/protos/thread.proto +++ b/thread/pb/protos/thread.proto @@ -5,4 +5,5 @@ option go_package = "pb"; message ThreadHeader { string firstChangeId = 1; bool isWorkspace = 2; + // TODO: add user identity, signature and nano timestamp } \ No newline at end of file