Project

General

Profile

Actions

Bug #9085

open

VMware folders not showing full path

Added by Dominic Cleal over 9 years ago. Updated about 7 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Compute resources - VMware
Target version:
-
Difficulty:
Triaged:
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.

Files

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

Related issues 1 (0 open1 closed)

Related to Foreman - Bug #8363: Sort VMware datastore/network dropdown menusClosedShlomi Zadok11/12/2014Actions
Actions #1

Updated by Dominic Cleal over 9 years ago

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

Updated by Dominic Cleal over 9 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.

Actions

Also available in: Atom PDF