Commit 9fbb7a9
committed
feat: add support for edit tracking in OuroborosDB
- Introduced EditOf field in StoreOptions and RetrievedData structures to link edits to their original content.
- Implemented resolveLatestEdit function to traverse the edit chain and return the most recent edit for a given key.
- Updated StoreData method to handle metadata for edits, including storing the EditOf hash.
- Enhanced GetData method to return SuggestedEdit and EditOf fields in the RetrievedData response.
- Modified API server to expose new headers for SuggestedEdit and EditOf in HTTP responses.
- Updated bulk data handling to include resolved keys and suggested edits in the response structure.
- Added tests to verify the correct behavior of edit tracking and retrieval of latest edits.
- Adjusted metadata structure to include EditOf field for JSON serialization.1 parent 1b15d32 commit 9fbb7a9
File tree
15 files changed
+710
-96
lines changed- frontend/src
- lib
- routes
- pkg
- apiServer
- index
- meta
15 files changed
+710
-96
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| 25 | + | |
| 26 | + | |
24 | 27 | | |
25 | 28 | | |
26 | 29 | | |
27 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
28 | 34 | | |
29 | 35 | | |
30 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
24 | 28 | | |
25 | 29 | | |
26 | 30 | | |
| |||
0 commit comments