app/presenters/tree_builder_ops_vmdb.rb
# Get root nodes count/array for explorer tree
Get root nodes count/array for explorer tree
Get root nodes count / array for explorer tree
def x_get_tree_roots(count_only, _options)
    objects = rbac_filtered_objects(VmdbDatabase.my_database.evm_tables).sort { |a, b| a.name.downcase <=> b.name.downcase }
    @sb[:vmdb_tables] = {}
    objects.each do |o|
      @sb[:vmdb_tables][o.name] = o.id
    end
    count_only ? objects.length : objects
  end
def x_get_tree_roots ( count_only , _options ) objects = rbac_filtered_objects ( VmdbDatabase . my_database . evm_tables ) . sort { | a , b | a . name . downcase <=> b . name . downcase } @sb [ :vmdb_tables ] = { } objects . each do | o | @sb [ :vmdb_tables ] [ o . name ] = o . id end count_only ? objects . length : objects end
Get root nodes count/array for explorer tree
Get root nodes count / array for explorer tree
# storing table names and their id in hash so they can be used ot build links on summary screen in top 5 boxes
count_only
<not_specific>
_options
<not_specific>