commit | 76b829e09dcab780462652cb33c882a6d0074dac | [log] [tgz] |
---|---|---|
author | Adithya Chakilam <achakila@codeaurora.org> | Tue Nov 16 09:44:37 2021 -0800 |
committer | Adithya Chakilam <achakila@codeaurora.org> | Wed Nov 17 09:15:31 2021 -0800 |
tree | 3510e3a91e019cebee5ed7fd5c0ac794874b4eec | |
parent | 9fc9c2d4e69f7e2701cbcd873977d3312a231a81 [diff] |
Adapt to new ProjectCache interface Change-Id: I8b90551cc9acb5d90eb18727204a0857f7004d48 Depends-on: https://gerrit-review.googlesource.com/c/gerrit/+/323855
diff --git a/src/main/java/com/googlesource/gerrit/plugins/webhooks/rest/DeleteRemote.java b/src/main/java/com/googlesource/gerrit/plugins/webhooks/rest/DeleteRemote.java index 408b092..1a25401 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/webhooks/rest/DeleteRemote.java +++ b/src/main/java/com/googlesource/gerrit/plugins/webhooks/rest/DeleteRemote.java
@@ -61,7 +61,7 @@ wh.commit(md); } - projectCache.evict(rsrc.getProject()); + projectCache.evictAndReindex(rsrc.getProject()); return Response.none(); }
diff --git a/src/main/java/com/googlesource/gerrit/plugins/webhooks/rest/UpsertRemote.java b/src/main/java/com/googlesource/gerrit/plugins/webhooks/rest/UpsertRemote.java index 56d2836..089d4e6 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/webhooks/rest/UpsertRemote.java +++ b/src/main/java/com/googlesource/gerrit/plugins/webhooks/rest/UpsertRemote.java
@@ -129,7 +129,7 @@ wh.commit(md); } - projectCache.evict(project); + projectCache.evictAndReindex(project); Config cfg = configFactory.getProjectPluginConfigWithInheritance(project, pluginName); RemoteConfig rc = remoteConfigFactory.create(cfg, remoteName);