Fix header parse and add todos
This commit is contained in:
parent
d11af440a4
commit
6490f09662
@ -79,11 +79,6 @@ func (t *ThreadBuilder) GetKeychain() *Keychain {
|
|||||||
return t.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 {
|
func (t *ThreadBuilder) Heads() []string {
|
||||||
return t.heads
|
return t.heads
|
||||||
}
|
}
|
||||||
@ -228,6 +223,7 @@ func (t *ThreadBuilder) Parse(thread *YMLThread) {
|
|||||||
|
|
||||||
t.parseGraph(thread)
|
t.parseGraph(thread)
|
||||||
t.parseOrphans(thread)
|
t.parseOrphans(thread)
|
||||||
|
t.parseHeader(thread)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (t *ThreadBuilder) parseChange(ch *Change) *threadChange {
|
func (t *ThreadBuilder) parseChange(ch *Change) *threadChange {
|
||||||
|
|||||||
@ -5,4 +5,5 @@ option go_package = "pb";
|
|||||||
message ThreadHeader {
|
message ThreadHeader {
|
||||||
string firstChangeId = 1;
|
string firstChangeId = 1;
|
||||||
bool isWorkspace = 2;
|
bool isWorkspace = 2;
|
||||||
|
// TODO: add user identity, signature and nano timestamp
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user