Skip to content

[Ban AI] Cascade settings to subgroups and projects on save

WIP MR: !145876 (merged)

  • This is already a "cascading attribute" but the way cascading attributes currently work is that only if the child has a nil value for the setting they do a lookup and find the value of the attribute for the closest ancestor and inherit that value. Otherwise, the only way a setting cascades is if the parent locks the attribute.
  • This ancestor lookup method results in an N+1. Ideally we would move all cascading settings to actuall cascade like this one so that we avoid the N+1 but I am starting with just 1.
  • Another benefit here is that it may be more expected that a child object inherits the settings from the parent whenever the parent setting is set.
Edited by Jessie Young