@@ -6,6 +6,7 @@ class TreeGenerator
66 include Decidim ::TranslatableAttributes
77 include Decidim ::Content ::MetadataGenerator
88 include Decidim ::Content ::LocationGenerator
9+ include Decidim ::Content ::UidTools
910
1011 SUPPORTED_PARTICIPATORY_SPACES = [
1112 {
@@ -101,7 +102,7 @@ def build_tree
101102 def to_csv
102103 rows = flatten_hash_for_csv ( hash )
103104
104- forced_headers = [ :kind , :group , :sub_group , :space , :class , :component_type , :name , :private , :published , :item_count , :stats , :url , :admin_url , :gid ]
105+ forced_headers = [ :kind , :group , :sub_group , :space , :class , :component_type , :name , :private , :published , :item_count , :stats , :url , :admin_url , :gid , :uid ]
105106 rejected_headers = [ :manifest , :components , :component_count , :hashtag ]
106107
107108 headers_row_hash = rows . each_with_object ( [ ] ) do |row , keys |
@@ -225,6 +226,7 @@ def shared_hash(instance:, kind:, manifest:, icon: nil)
225226 manifest :,
226227 class : instance . class . name ,
227228 gid : instance . to_global_id . to_s ,
229+ uid : uid ( instance ) ,
228230 name : name_attribute ( instance ) ||
229231 "-- #{ instance . class . name } (ID:#{ instance . id } ) --"
230232 }
0 commit comments