RFR: 2386: PullRequestBotFactory creates too many IssueBots
Zhao Song
zsong at openjdk.org
Tue Oct 8 23:27:41 UTC 2024
On Tue, 8 Oct 2024 21:19:30 GMT, Zhao Song <zsong at openjdk.org> wrote:
> Erik found that our bot creates multiple IssueBot instances for a single issue project. And he found that the root cause was the configuration::issueProject method always returning a new instance. Additionally, the equals() and hashcode() methods were not overridden in the JiraProject class.
>
> This patch is trying to fix this issue as Erik suggested:
> 1. Caching the issueProject instances in a map.
> 2. Avoiding using IssueProject as a key in maps.
Thank you for the review!
-------------
PR Comment: https://git.openjdk.org/skara/pull/1689#issuecomment-2400982784
More information about the skara-dev
mailing list