Fix header parse and add todos

This commit is contained in:
mcrakhman 2022-07-12 13:26:06 +02:00 committed by Mikhail Iudin
parent d11af440a4
commit 6490f09662
No known key found for this signature in database
GPG Key ID: FAAAA8BAABDFF1C0
2 changed files with 2 additions and 5 deletions

View File

@ -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 {

View File

@ -5,4 +5,5 @@ option go_package = "pb";
message ThreadHeader {
string firstChangeId = 1;
bool isWorkspace = 2;
// TODO: add user identity, signature and nano timestamp
}