nautobot / nautobot-app-golden-config

Golden Configuration App for Nautobot.
https://docs.nautobot.com/projects/golden-config/en/latest/
Other
101 stars 57 forks source link

Switch to `DynamicGroup.update_cached_members` in Nautobot v2.3.0 #792

Closed gsnider2195 closed 2 months ago

gsnider2195 commented 3 months ago

Nautobot v2.3 changed the way DynamicGroups work and now by default they return a cached list of members in the ORM for DynamicGroup.members and (among others) Device.dynamic_groups. We need to at minimum switch to using DynamicGroup.update_cached_members in place of DynamicGroup.members and potentially call the same for all GC dynamic groups before calling Device.dynamic_groups.

itdependsnetworks commented 2 months ago

fixed in #798