Project `has_external_wiki` and `has_external_issue_tracker` properties are not updated when Group integration is toggled
Summary
We cache whether a project has an External Wiki integration enabled, or an External Issue Tracker integration enabled, in two columns on the projects
PostgreSQL table. This reduces the number of database lookups needed to build the side menu navigation.
When a project is using the default settings, and it belongs to a group that has had an integration configured, the columns are not updated when the group integration settings are toggled from being active to inactive.
Steps to reproduce
- For a group, configure an external wiki integration to be enabled (Settings > Integrations > External Wiki).
- Create a project.
- Observe that the
External Wiki
sidebar nav item is visible, and thehas_external_wiki
column for the project istrue
. - Change the group's external wiki integration to be inactive.
- Observe that the
External Wiki
sidebar nav item is no longer visible, but thehas_external_wiki
column for the project has remained astrue
when it should befalse
.
What is the current bug behavior?
The has_external_wiki
and has_external_issue_tracker
properties of a project are not updated when group integrations are enabled/disabled.
What is the expected correct behavior?
They should always be in sync.
Edited by Luke Duncalfe