From d8c8697b91ded76d9f91b87d7e3b5063e59ce9b7 Mon Sep 17 00:00:00 2001 From: Gerrit User 4127492 <4127492@173816e5-2b9a-37c3-8a2e-48639d4f1153> Date: Tue, 3 Jun 2025 20:15:57 -0700 Subject: [PATCH] Update patch set 9 Patch Set 9: (2 comments) Patch-set: 9 Attention: {"person_ident":"Gerrit User 4127492 \u003c4127492@173816e5-2b9a-37c3-8a2e-48639d4f1153\u003e","operation":"REMOVE","reason":"\u003cGERRIT_ACCOUNT_4127492\u003e replied on the change"} Attention: {"person_ident":"Gerrit User 1002666 \u003c1002666@173816e5-2b9a-37c3-8a2e-48639d4f1153\u003e","operation":"ADD","reason":"\u003cGERRIT_ACCOUNT_4127492\u003e replied on the change"} --- 50620d2a2d6324ca0e8e34329d13626f064ceee4 | 21 +++++++++++++++++++++ 54227f79bcb8a6af52c6075066ac681c7b9e02f4 | 18 ++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 50620d2a2d6324ca0e8e34329d13626f064ceee4 diff --git a/50620d2a2d6324ca0e8e34329d13626f064ceee4 b/50620d2a2d6324ca0e8e34329d13626f064ceee4 new file mode 100644 index 000000000..7aa19ce5a --- /dev/null +++ b/50620d2a2d6324ca0e8e34329d13626f064ceee4 @@ -0,0 +1,21 @@ +{ + "comments": [ + { + "unresolved": false, + "key": { + "uuid": "aac8f3d7_9fc81e31", + "filename": "/PATCHSET_LEVEL", + "patchSetId": 9 + }, + "lineNbr": 0, + "author": { + "id": 4127492 + }, + "writtenOn": "2025-06-04T03:15:57Z", + "side": 1, + "message": "In patchset 9, I updated the code to use the actual `opt` passed to `Execute()` instead of constructing a dummy. I also ensured the required fields (`bypass_hooks`, `allow_all_hooks`, and `ignore_hooks`) are set with safe defaults if not present.\n\nThis keeps the implementation in line with `RepoHook.FromSubcmd()` expectations without changing the CLI interface.\n\nThanks again for the feedback — it\u0027s cleaner now!", + "revId": "50620d2a2d6324ca0e8e34329d13626f064ceee4", + "serverId": "173816e5-2b9a-37c3-8a2e-48639d4f1153" + } + ] +} \ No newline at end of file diff --git a/54227f79bcb8a6af52c6075066ac681c7b9e02f4 b/54227f79bcb8a6af52c6075066ac681c7b9e02f4 index 310ca245c..45bdf4772 100644 --- a/54227f79bcb8a6af52c6075066ac681c7b9e02f4 +++ b/54227f79bcb8a6af52c6075066ac681c7b9e02f4 @@ -16,6 +16,24 @@ "message": "I think you should be using the `RepoHook.FromSubcmd()` static method to populate most of the constructor args. Check the usage in `subcmds/upload.py`.", "revId": "54227f79bcb8a6af52c6075066ac681c7b9e02f4", "serverId": "173816e5-2b9a-37c3-8a2e-48639d4f1153" + }, + { + "unresolved": false, + "key": { + "uuid": "eb8f03d1_0b40ea3c", + "filename": "subcmds/sync.py", + "patchSetId": 4 + }, + "lineNbr": 1753, + "author": { + "id": 4127492 + }, + "writtenOn": "2025-06-04T03:15:57Z", + "side": 1, + "message": "Thanks for the suggestion! Addressed in patchset 7.\n\n- Switched to `RepoHook.FromSubcmd()` for hook construction (same pattern as in `upload.py`)\n- Since `sync` doesn\u0027t have a native `opt` object, I introduced a minimal `DummyOpt` with the required attributes:\n - `bypass_hooks`\n - `allow_all_hooks`\n - `ignore_hooks`\n\nThis keeps the change self-contained without modifying `RepoHook` itself. Let me know if you\u0027d prefer an alternative (e.g., fallback handling inside `FromSubcmd()`).", + "parentUuid": "39f7fbc6_e71028de", + "revId": "54227f79bcb8a6af52c6075066ac681c7b9e02f4", + "serverId": "173816e5-2b9a-37c3-8a2e-48639d4f1153" } ] } \ No newline at end of file