)]}'
{
  "commit": "59e409265681b88b4762ae4a95268acc8ce7518d",
  "tree": "298a541867e7815387a7d8cd39ea06a04d4ae83f",
  "parents": [
    "36f648c2e550ea3e59d975b703a07b86f029aeff"
  ],
  "author": {
    "name": "Christoforos Miliotis",
    "email": "christoforos.miliotis.dev@gmail.com",
    "time": "Fri May 26 09:44:56 2023 +0100"
  },
  "committer": {
    "name": "Christoforos Miliotis",
    "email": "christoforos.miliotis.dev@gmail.com",
    "time": "Fri May 26 09:55:09 2023 +0100"
  },
  "message": "Do not record fetch replication metrics when all refs are excluded from\nfetch task\n\nCurrently, fetch replication metrics (eg. e2e latency) are recorded when\na fetch task is executed, regardless of how many refs were actually\nfetched. For example, the metrics are still recorded if all the refs\nwere excluded (eg. because of a filter) and the fetch task eventually\ndid no work. The recording of the metrics in such cases is a bit\nconfusing, because it indicates the node did some replication work,\nwhich is not true.\n\nStop recording the fetch replication metrics if all the refs were\nexcluded. To do this, the `runImpl` now returns a list of post-filtered\nrefs, and the metric recording logic is changed to take into account\nwhether that list is empty or not.\n\nBug: Issue 16896\nChange-Id: I82305131a8a2444bb8eac12a866d3481d0e20086\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "42bea3e81c72a2e248dbda34227147b6921031b3",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/replication/pull/FetchOne.java",
      "new_id": "39db7647ec6fdb3baedfa5cdf34f445f20c2619b",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/replication/pull/FetchOne.java"
    },
    {
      "type": "modify",
      "old_id": "3980f93d361cfa21cefa296e76cfe9bd8872535d",
      "old_mode": 33188,
      "old_path": "src/test/java/com/googlesource/gerrit/plugins/replication/pull/FetchOneTest.java",
      "new_id": "0756c5c0378d37d59aa2be07e27ed24855b2f9dd",
      "new_mode": 33188,
      "new_path": "src/test/java/com/googlesource/gerrit/plugins/replication/pull/FetchOneTest.java"
    }
  ]
}
