Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
cob: mandatory `Oid` in `CodeLocation`
Fintan Halpenny committed 2 years ago
commit 2cbfb6dd5307fbd68b492ca0c276e3b5538affd7
parent 1a63024a58463c7206b954a49b01c4c7c3d5f83e
2 files changed +4 -2
modified radicle-httpd/src/api/json.rs
@@ -4,7 +4,7 @@ use std::path::Path;
use std::str;

use base64::prelude::{Engine, BASE64_STANDARD};
-
use radicle::patch::CodeLocation;
+
use radicle::cob::CodeLocation;
use serde_json::{json, Value};

use radicle::cob::issue::{Issue, IssueId};
modified radicle-httpd/src/api/v1/projects.rs
@@ -3111,6 +3111,7 @@ mod routes {
            }
          ],
          "location": {
+
            "commit": HEAD,
            "path": "README.md",
            "new": {
              "type": "lines",
@@ -3224,7 +3225,7 @@ mod routes {
                      "summary": "A small review",
                      "comments": [
                        {
-
                          "id": "b108acfd2117480fd87012a5ab7cb69a0651d933",
+
                          "id": "2ed1c517997d3f1a83c6830ebab069c6e2ee967e",
                          "author": {
                            "id": "did:key:z6Mkk7oqY4pPxhMmGEotDYsFo97vhCj85BLY1H256HrJmjN8",
                          },
@@ -3272,6 +3273,7 @@ mod routes {
                          "timestamp": 1671125284,
                          "replyTo": null,
                          "location": {
+
                            "commit": HEAD,
                            "path": "README.md",
                            "old": null,
                            "new": {