Radish alpha
h
rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
Radicle Heartwood Protocol & Stack
Radicle
Git
httpd: Add missing alias properties to tests
Merged did:key:z6MkkfM3...sVz5 opened 2 years ago
1 file changed +34 -10 088549a3 955c942c
modified radicle-httpd/src/api/v1/projects.rs
@@ -2318,7 +2318,10 @@ mod routes {
                    {
                      "emoji": "🚀",
                      "authors": [
-
                        { "id": "did:key:z6Mkk7oqY4pPxhMmGEotDYsFo97vhCj85BLY1H256HrJmjN8" }
+
                        {
+
                          "id": CONTRIBUTOR_DID,
+
                          "alias": CONTRIBUTOR_ALIAS,
+
                        }
                      ],
                    },
                  ],
@@ -2367,25 +2370,31 @@ mod routes {
              "id": ISSUE_DISCUSSION_ID,
              "author": {
                "id": CONTRIBUTOR_DID,
+
                "alias": CONTRIBUTOR_ALIAS,
              },
              "title": "Issue #1",
              "state": {
                "status": "open",
              },
              "assignees": [
-
                { "id": CONTRIBUTOR_DID }
+
                {
+
                  "id": CONTRIBUTOR_DID,
+
                  "alias": CONTRIBUTOR_ALIAS,
+
                }
              ],
              "discussion": [
                {
                  "id": ISSUE_DISCUSSION_ID,
                  "author": {
                    "id": CONTRIBUTOR_DID,
+
                    "alias": CONTRIBUTOR_ALIAS,
                  },
                  "body": "Change 'hello world' to 'hello everyone'",
                  "edits": [
                    {
                      "author": {
                        "id": CONTRIBUTOR_DID,
+
                        "alias": CONTRIBUTOR_ALIAS,
                      },
                      "body": "Change 'hello world' to 'hello everyone'",
                      "timestamp": TIMESTAMP,
@@ -2771,7 +2780,10 @@ mod routes {
              "labels": [],
              "merges": [],
              "assignees": [
-
                { "id": CONTRIBUTOR_DID }
+
                {
+
                  "id": CONTRIBUTOR_DID,
+
                  "alias": CONTRIBUTOR_ALIAS,
+
                }
              ],
              "revisions": [
                {
@@ -3187,7 +3199,10 @@ mod routes {
                    {
                      "emoji": "🙏",
                      "authors": [
-
                        { "id": "did:key:z6Mkk7oqY4pPxhMmGEotDYsFo97vhCj85BLY1H256HrJmjN8" }
+
                        {
+
                          "id": CONTRIBUTOR_DID,
+
                          "alias": CONTRIBUTOR_ALIAS
+
                        }
                      ],
                    },
                    {
@@ -3205,7 +3220,10 @@ mod routes {
                      },
                      "emoji": "🚀",
                      "authors": [
-
                        { "id": "did:key:z6Mkk7oqY4pPxhMmGEotDYsFo97vhCj85BLY1H256HrJmjN8" }
+
                        {
+
                          "id": CONTRIBUTOR_DID,
+
                          "alias": CONTRIBUTOR_ALIAS
+
                        }
                      ]
                    },
                  ],
@@ -3402,7 +3420,10 @@ mod routes {
                        {
                          "emoji": "🚀",
                          "authors": [
-
                            { "id": "did:key:z6Mkk7oqY4pPxhMmGEotDYsFo97vhCj85BLY1H256HrJmjN8" }
+
                            {
+
                              "id": CONTRIBUTOR_DID,
+
                              "alias": CONTRIBUTOR_ALIAS
+
                            }
                          ],
                        },
                      ],
@@ -3612,14 +3633,14 @@ mod routes {
                        {
                          "id": "0dcfca53416761cf975cc4cd6d452790cee06b49",
                          "author": {
-
                            "id": "did:key:z6Mkk7oqY4pPxhMmGEotDYsFo97vhCj85BLY1H256HrJmjN8",
+
                            "id": CONTRIBUTOR_DID,
                            "alias": CONTRIBUTOR_ALIAS
                          },
                          "body": "EDIT: This is a comment on a review",
                          "edits": [
                            {
                              "author": {
-
                                "id": "did:key:z6Mkk7oqY4pPxhMmGEotDYsFo97vhCj85BLY1H256HrJmjN8",
+
                                "id": CONTRIBUTOR_DID,
                                "alias": CONTRIBUTOR_ALIAS
                              },
                              "body": "This is a comment on a review",
@@ -3633,7 +3654,7 @@ mod routes {
                            },
                            {
                              "author": {
-
                                "id": "did:key:z6Mkk7oqY4pPxhMmGEotDYsFo97vhCj85BLY1H256HrJmjN8",
+
                                "id": CONTRIBUTOR_DID,
                                "alias": CONTRIBUTOR_ALIAS
                              },
                              "body": "EDIT: This is a comment on a review",
@@ -3656,7 +3677,10 @@ mod routes {
                            {
                              "emoji": "🚀",
                              "authors": [
-
                                { "id": "did:key:z6Mkk7oqY4pPxhMmGEotDYsFo97vhCj85BLY1H256HrJmjN8" }
+
                                {
+
                                  "id": CONTRIBUTOR_DID,
+
                                  "alias": CONTRIBUTOR_ALIAS
+
                                }
                              ],
                            },
                          ],