)]}'
{
  "commit": "5083c01b0d1aafd5e5222b9c4f579691e35405c4",
  "tree": "b8fbebe01b57bb16de83e9331c3bd94762ad217d",
  "parents": [
    "89b58413feac797cd72ea3a41a15df78830bfbe2"
  ],
  "author": {
    "name": "Luca Milanesio",
    "email": "luca.milanesio@gmail.com",
    "time": "Wed Apr 26 00:25:52 2023 +0100"
  },
  "committer": {
    "name": "Luca Milanesio",
    "email": "luca.milanesio@gmail.com",
    "time": "Wed Apr 26 13:34:04 2023 +0000"
  },
  "message": "Run apply-object before the ref-updated stream event\n\nThe pull-replication plugin\u0027s promise is to run apply-object\nto replicate the refs in msec, so that the overall end-to-end\noperation runs synchronously. However, the ref-updated was\nexecuted before the apply-object, leaving room for the event\nconsumer to potentially fail when looking at the ref value because\nthe apply-object may have completed or not.\n\nUse the same EventListener interface used in the stream-event\nlisteners for making sure that apply-object is always executed\nbefore ref-updated.\n\nAlso amend the test environment for the broker scenario for\nincluding the apply-object use-case as well, where the events\nbroker is used as fallback by putting the events-kafka plugin\nto the bottom of the plugin loading priority.\n\nChange-Id: If96082f4338164e1674bae657ab4184577d825f2\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "df097d8c2d63f75ea97a9080f838c1dde6ac92e5",
      "old_mode": 33188,
      "old_path": "example-setup/broker/Dockerfile",
      "new_id": "646967ea94b1d857b83f95de2453623666d06c1e",
      "new_mode": 33188,
      "new_path": "example-setup/broker/Dockerfile"
    },
    {
      "type": "modify",
      "old_id": "d464586f7d35c53573185a98addc7fbc635e552a",
      "old_mode": 33188,
      "old_path": "example-setup/broker/configs/replication.config.template",
      "new_id": "e77edeb6a85dd37f158dabe11ffb3616dde76112",
      "new_mode": 33188,
      "new_path": "example-setup/broker/configs/replication.config.template"
    },
    {
      "type": "modify",
      "old_id": "cd19be478a336dbf7beac80ad1f36513596d6a47",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/replication/pull/PullReplicationModule.java",
      "new_id": "ed3aecb66418265c8d99bf07f70c43595a40ce6d",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/replication/pull/PullReplicationModule.java"
    },
    {
      "type": "modify",
      "old_id": "380ac8edd96596fcefeefac1683023f742477c10",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/replication/pull/ReplicationQueue.java",
      "new_id": "b90969b19f253785b5dee34326d2333b947b5a5b",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/replication/pull/ReplicationQueue.java"
    },
    {
      "type": "modify",
      "old_id": "43331dcae89bb11fca350e510a9a35dcf126cdf5",
      "old_mode": 33188,
      "old_path": "src/test/java/com/googlesource/gerrit/plugins/replication/pull/FakeGitReferenceUpdatedEvent.java",
      "new_id": "47c00c71dcd0839181db0872973894090198756a",
      "new_mode": 33188,
      "new_path": "src/test/java/com/googlesource/gerrit/plugins/replication/pull/FakeGitReferenceUpdatedEvent.java"
    },
    {
      "type": "modify",
      "old_id": "ee5876f3c9429a2b7d9ba59140c6f429f14383ea",
      "old_mode": 33188,
      "old_path": "src/test/java/com/googlesource/gerrit/plugins/replication/pull/PullReplicationFanoutConfigIT.java",
      "new_id": "1aaf43460be57dc2ea647f4b3a91c49f7e02f521",
      "new_mode": 33188,
      "new_path": "src/test/java/com/googlesource/gerrit/plugins/replication/pull/PullReplicationFanoutConfigIT.java"
    },
    {
      "type": "modify",
      "old_id": "f3c62c542a01c14f6940c10dc6962bbbe68fbcf0",
      "old_mode": 33188,
      "old_path": "src/test/java/com/googlesource/gerrit/plugins/replication/pull/PullReplicationIT.java",
      "new_id": "180094dd7270b8d0f252f6c627d02a0065dc5dfc",
      "new_mode": 33188,
      "new_path": "src/test/java/com/googlesource/gerrit/plugins/replication/pull/PullReplicationIT.java"
    },
    {
      "type": "modify",
      "old_id": "d8e5947a1dac3291d1858260efcca37fc9a813dd",
      "old_mode": 33188,
      "old_path": "src/test/java/com/googlesource/gerrit/plugins/replication/pull/PullReplicationWithGitHttpTransportProtocolIT.java",
      "new_id": "40a9d0310f1fcee4744ff3e9eaf6b68e0e57b306",
      "new_mode": 33188,
      "new_path": "src/test/java/com/googlesource/gerrit/plugins/replication/pull/PullReplicationWithGitHttpTransportProtocolIT.java"
    },
    {
      "type": "modify",
      "old_id": "0743cb9073bbc9b0109e91a2cb7a3e1623874f04",
      "old_mode": 33188,
      "old_path": "src/test/java/com/googlesource/gerrit/plugins/replication/pull/ReplicationQueueTest.java",
      "new_id": "dc6e4298f479c251a3859cbf28f6e3c7c52a0c99",
      "new_mode": 33188,
      "new_path": "src/test/java/com/googlesource/gerrit/plugins/replication/pull/ReplicationQueueTest.java"
    }
  ]
}
