mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-10-30 16:50:47 +08:00
radicle: Change review data in patch COB
* `CodeLocation` had a `blob` and `commit` field. These are redundant, since the review lives under a revision. We also change the line range to be diff-compatible, with an old and new range. The ranges are optional to account for different scenarios like file deletion, move etc. * `CodeComment` had redundant getters which were removed in favor of public fields. We also remove the `timestamp` field, as it will be the same as the review timestamp.
This commit is contained in:
@@ -2309,16 +2309,11 @@ mod routes {
|
||||
"inline": [
|
||||
{
|
||||
"location": {
|
||||
"blob": "82eb77880c693655bce074e3dbbd9fa711dc018b",
|
||||
"path": "./README.md",
|
||||
"commit": HEAD,
|
||||
"lines": {
|
||||
"start": 1,
|
||||
"end": 3,
|
||||
},
|
||||
"old": null,
|
||||
"new": null,
|
||||
},
|
||||
"comment": "This is a comment on line 1",
|
||||
"timestamp": TIMESTAMP,
|
||||
}
|
||||
],
|
||||
"timestamp": TIMESTAMP,
|
||||
|
||||
Reference in New Issue
Block a user