I have a large number of install profiles as I run Aegir on my local machine and use an install profile for all individual projects, so it can get a little cluttered after a while given that there is no logical sorting of the list.

Additionally, when an install profile changes the human-readable name of a common install profile short_name (Such as pressflow does to the 'default' install profile for Drupal 6) it can be confusing, so it would be nice to show the machine name along side the human readable name.

Patch coming in comment #1.

CommentFileSizeAuthor
#1 sort_profiles-1853588-1.patch768 bytesDeciphered
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Deciphered’s picture

Status: Active » Needs review
FileSize
768 bytes
anarcat’s picture

I like this too, good job.

Steven Jones’s picture

This patch adds a call to node_load, the performance implications of this should be investigated.

Steven Jones’s picture

Status: Needs review » Fixed

Thanks very much for the patch, I've applied the sorting part to 6.x-2.x, but I've not included the part that adds the short name to the list. Please open a separate issue for that, and we can discuss there, I think there's a small performance issue with doing the node load on each profile, and the site form is already super slow.

thedavidmeister’s picture

heh, can't you get the short_name from hosting_package_instances_load?

That way the performance issue can be handled within hostmaster rather than relying on the core of d6 to do something.

For example, I haven't profiled it but _hosting_package_instances_load() looks like it's screaming to be at least statically cached, if not persistently.

If it was persistently cached you could add all sorts of hostmaster-specific bits and pieces (like the short_name) to the UI without invoking a bunch of node_load()s - which are much slower than they should be in d6 without native, or even contrib, persistent caching of node objects :/

Would anyone be interesting in me opening a ticket for that in parallel to the issue for displaying the short_name, as it seems like in light of this discussion it may (perhaps after a little profiling) help get that nice UI improvement over the line?

Steven Jones’s picture

@thedavidmeister please open such a ticket!

thedavidmeister’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

  • Commit 28484fc on 6.x-2.x, dev-1205458-move_sites_out_of_platforms, 7.x-3.x, dev-588728-views-integration, dev-1403208-new_roles, dev-helmo-3.x authored by Deciphered, committed by Steven Jones:
    Issue #1853588 by Deciphered: Added Sort Install profiles on Site add...

  • Commit 28484fc on 6.x-2.x, dev-1205458-move_sites_out_of_platforms, 7.x-3.x, dev-588728-views-integration, dev-1403208-new_roles, dev-helmo-3.x authored by Deciphered, committed by Steven Jones:
    Issue #1853588 by Deciphered: Added Sort Install profiles on Site add...