Commit c6534317 authored by Douwe Maan's avatar Douwe Maan

Merge branch '1827-dont-load-dependents-on-fetch' into 'master'

Geo: Don't load dependent models when fetching an existing GeoNode from the database

Closes #1827

See merge request !1348
parents 79accad5 129d620d
......@@ -117,9 +117,11 @@ class GeoNode < ActiveRecord::Base
end
def build_dependents
unless persisted?
self.build_geo_node_key if geo_node_key.nil?
update_system_hook!
end
end
def update_dependents_attributes
self.geo_node_key&.title = "Geo node: #{self.url}"
......
---
title: 'Geo: Don''t load dependent models when fetching an existing GeoNode from the
database'
merge_request: 1348
author:
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment