Project

General

Profile

Bug #9085

VMware folders not showing full path

Added by Dominic Cleal almost 7 years ago. Updated over 4 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Compute resources - VMware
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:

Description

From http://projects.theforeman.org/issues/8363#change-35696

This still doesn't appear to be sorting correctly. It's only sorting on the parent name, not path.

folders.png shows what the code produces today. folder2.png shows what happens when folder.rb is changed to use ""#{path} / #{name}"" 

This is closer, but everything before "vm" should be truncated.
folders.png View folders.png 20 KB Dominic Cleal, 01/23/2015 03:11 AM
folders2.png View folders2.png 31.3 KB Dominic Cleal, 01/23/2015 03:11 AM
Folders Folders2

Related issues

Related to Foreman - Bug #8363: Sort VMware datastore/network dropdown menusClosed2014-11-12

History

#1 Updated by Dominic Cleal almost 7 years ago

  • Related to Bug #8363: Sort VMware datastore/network dropdown menus added

#2 Updated by Dominic Cleal almost 7 years ago

It seems to me that the to_label method we added in app/models/concerns/fog_extensions/vsphere/folder.rb should be calling to_label for the parent too. The parent appears to be just the label of the parent folder, not the full path - nor is it calling parent.to_label recursively. Probably doing that would fix it.

The change to path sort of works, but it's just a string that contains the 'vm' folder too, so not ideal.

Also available in: Atom PDF