Skip to content

Commit

Permalink
chore: remove history modules
Browse files Browse the repository at this point in the history
  • Loading branch information
khorshuheng committed Jan 18, 2025
1 parent 6aca032 commit 71f458e
Show file tree
Hide file tree
Showing 36 changed files with 9 additions and 2,645 deletions.
52 changes: 0 additions & 52 deletions libs/client-api/src/http_history.rs

This file was deleted.

1 change: 0 additions & 1 deletion libs/client-api/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ mod http_billing;
mod http_access_request;
mod http_blob;
mod http_collab;
mod http_history;
mod http_member;
mod http_publish;
mod http_quick_note;
Expand Down
34 changes: 1 addition & 33 deletions libs/tonic-proto/proto/history.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,6 @@ import "google/protobuf/wrappers.proto";
// For optional string support
package history;

service History {
rpc GetSnapshots (SnapshotRequestPb) returns (RepeatedSnapshotMetaPb);
rpc GetNumOfSnapshot (SnapshotRequestPb) returns (RepeatedSnapshotInfoPb);
rpc GetLatestSnapshot (SnapshotRequestPb) returns (SingleSnapshotInfoPb);
}

message SnapshotRequestPb {
string workspace_id = 1;
string object_id = 2;
int32 collab_type = 3;
int32 num_snapshot = 4;
}

// SnapshotMetaPB represents metadata for a snapshot.
message SnapshotMetaPb {
// The unique identifier for the snapshot.
Expand All @@ -32,32 +19,13 @@ message SnapshotMetaPb {
int64 created_at = 4;
}

// A container for repeated instances of SnapshotMetaPB.
message RepeatedSnapshotMetaPb {
repeated SnapshotMetaPb items = 1; // List of SnapshotMetaPB items
}


// SnapshotStatePB represents the state of a snapshot, including optional dependency IDs.
message SnapshotStatePb {
string oid = 1; // Unique identifier for the snapshot
bytes doc_state = 2; // The document state as raw binary data
int32 doc_state_version = 3; // Version of the document state format
google.protobuf.StringValue deps_snapshot_id = 4; // Optional dependency snapshot ID
}

message SingleSnapshotInfoPb {
HistoryStatePb history_state = 1;
SnapshotMetaPb snapshot_meta = 2;
}

message RepeatedSnapshotInfoPb {
HistoryStatePb history_state = 1;
repeated SnapshotMetaPb snapshots = 2;
}

message HistoryStatePb {
string object_id = 1; // Unique identifier for the object
bytes doc_state = 2; // The document state as raw binary data
int32 doc_state_version = 3; // Version of the document state format, with decoding instructions based on version
}
}
53 changes: 0 additions & 53 deletions services/appflowy-history_deprecated/Cargo.toml

This file was deleted.

41 changes: 0 additions & 41 deletions services/appflowy-history_deprecated/Dockerfile

This file was deleted.

3 changes: 0 additions & 3 deletions services/appflowy-history_deprecated/deploy.env

This file was deleted.

57 changes: 0 additions & 57 deletions services/appflowy-history_deprecated/src/api.rs

This file was deleted.

Loading

0 comments on commit 71f458e

Please sign in to comment.