默认情况下,如何在gerrit项目中启用注释已解析(未解析)标志

时间:2019-10-21 12:37:39

标签: gerrit

我正在使用Gerrit Code Review(2.14.9)

Gerrit提供了使用搜索选项来提取未解决评论的选项

has:unresolved.

但是当我搜索我的项目时,即使我添加了评论,也看不到将其设置为“未解决”的选项,也没有看到将现有评论设置为已解决的选项。

是否有任何选项可以启用已解决的复选框(我在最新的Gerrit评论中看到了 https://gerrit-review.googlesource.com/q/has:unresolved

我搜索了我的项目,即使我添加了评论,也看不到将其设置为“未解决”的选项,也没有将现有评论设置为已解决的选项。

https://gerrit-review.googlesource.com/q/has:unresolved

请求

GET /changes/myProject~master~I8473b95934b5732ac55d26311a706c9c2bde9940/comments HTTP/1.0

响应

HTTP/1.1 200 OK
  Content-Disposition: attachment
  Content-Type: application/json; charset=UTF-8

  )]}'
  {
    "gerrit-server/src/main/java/com/google/gerrit/server/project/RefControl.java": [
      {
        "patch_set": 1,
        "id": "TvcXrmjM",
        "line": 23,
        "message": "[nit] trailing whitespace",
        "updated": "2013-02-26 15:40:43.986000000"
        "author": {
          "_account_id": 1000096,
          "name": "John Doe",
          "email": "john.doe@example.com"
        }
      },
      {
        "patch_set": 2,
        "id": "TveXwFiA",
        "line": 49,
        "in_reply_to": "TfYX-Iuo",
        "message": "Done",
        "updated": "2013-02-26 15:40:45.328000000"
        "author": {
          "_account_id": 1000097,
          "name": "Jane Roe",
          "email": "jane.roe@example.com"
        }
      }
    ]
  }

即使收到未解析标志的响应,

"file.mk": [{
            "author": {
                "_account_id": 1172,
                "name": "Person Name",
                "email": "email@server.com",
                "username": "username"
            },
            "patch_set": 14,
            "id": "2b4f392f_6c36a0ae",
            "line": 70,
            "updated": "2019-09-18 02:42:23.000000000",
            "message": "this is not required.",
            "unresolved": false
        },

我从来没有得到未解决的标志为真。

是否有启用它的选项?

0 个答案:

没有答案