Skip to content

Memoize Project#has_active_integrations? check

Stan Hu requested to merge sh-cache-active-integrations into master

What does this MR do and why?

After a CI build is created, this call is repeatedly made for each build in the pipeline. We can avoid these queries by memoizing the scope, just as Project#has_active_hooks? does.

Relates to &7290

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Stan Hu

Merge request reports