Skip to content

Commit

Permalink
V1 final cut
Browse files Browse the repository at this point in the history
* Unify CBOR-encoding of union types

* WIP: Trying to make document metadata full JSON objects

* Unify common blob attributes

* Revert "WIP: Trying to make document metadata full JSON objects"

This reverts commit 0fd0e49.

* Remove old groups protobuf

* Verify signatures when indexing blobs

* fix(daemon): proper periodic peersharing cleanup

* Inline attributes on Block and Annotations when writing into permanent data

* Make union of ops coherent

* Refactor to use integer actors in CRDT Op IDs

* Adding more checks to the crdt smoke test

* Fix encoding of OpIDs

* Fix number attributes in blocks and annotations

* Adopt changes from main

* Moving some things around

* Batch delete ops

* Batch move ops

* Make the final version bump

* Fix linter errors

* Fix typo [skip ci]

---------

Co-authored-by: juligasa <[email protected]>
  • Loading branch information
burdiyan and juligasa authored Oct 20, 2024
1 parent 474783b commit 9670e2e
Show file tree
Hide file tree
Showing 41 changed files with 958 additions and 5,953 deletions.
4 changes: 2 additions & 2 deletions backend/api/documents/v3alpha/access_control.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@ func capToProto(c cid.Cid, cpb *blob.Capability) (*documents.Capability, error)

pb := &documents.Capability{
Id: c.String(),
Issuer: cpb.Issuer.String(),
Issuer: cpb.Signer.String(),
Delegate: cpb.Delegate.String(),
Account: cpb.Space.String(),
Account: cpb.GetSpace().String(),
Path: cpb.Path,
Role: documents.Role(role),
IsExact: cpb.NoRecursive,
Expand Down
4 changes: 2 additions & 2 deletions backend/api/documents/v3alpha/comments.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,10 @@ func (srv *Server) ListComments(ctx context.Context, in *documents.ListCommentsR
func commentToProto(c cid.Cid, cmt *blob.Comment) (*documents.Comment, error) {
pb := &documents.Comment{
Id: c.String(),
TargetAccount: cmt.Space.String(),
TargetAccount: cmt.GetSpace().String(),
TargetPath: cmt.Path,
TargetVersion: docmodel.NewVersion(cmt.Version...).String(),
Author: cmt.Author.String(),
Author: cmt.Signer.String(),
Content: commentContentToProto(cmt.Body),
CreateTime: timestamppb.New(cmt.Ts),
}
Expand Down
2 changes: 1 addition & 1 deletion backend/api/documents/v3alpha/dochistory.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func (srv *Server) ListDocumentChanges(ctx context.Context, in *documents.ListDo
}
out.Changes = append(out.Changes, &documents.DocumentChangeInfo{
Id: cc,
Author: change.Data.Author.String(),
Author: change.Data.Signer.String(),
Deps: colx.SliceMap(change.Data.Deps, cid.Cid.String),
CreateTime: timestamppb.New(change.Data.Ts),
})
Expand Down
Loading

0 comments on commit 9670e2e

Please sign in to comment.