'Minimum' install profile

catch - May 23, 2008 - 10:23
Project:Drupal
Version:7.x-dev
Component:install system
Category:task
Priority:normal
Assigned:Xano
Status:patch (code needs review)
Description

I think we should add more dummy content to the default installation profile - participants at the UMN usability testing asked for this, and it's been mentioned elsewhere. I've opened another issue to enable a 'tags' vocabulary by default here: http://drupal.org/node/261869

The main issue with adding dummy content and settings to default.profile however, is that people installing Drupal other than for the first couple of times will have to sit there deleting it before they can get any work done. Attached is a 'Drupal Advanced" profile - which is just the default profile with nearly everything removed, no content types, no optional modules enabled.

Having both a 'default' and 'advanced' profile would be consistent with a lot of desktop software - where you click an advanced option to install a lighter set of options and set up your own preferences. We might want to change 'advanced' to 'minimum' or something.

Attached is a new advanced.profile which should go in profiles/advanced (you'll need to make the folder). I won't make a proper patch until there's been some feedback, but this at least gives an idea what it'd look like. Note that at the moment, this doesn't really remove all that much, but I'm hoping we can add more things to the default profile as time goes on.

AttachmentSize
advuserprofile.patch3.05 KB

#1

chx - May 23, 2008 - 11:41

I like it but dblog imo needs to be there.

#2

catch - May 23, 2008 - 11:58

I considered leaving dblog but wasn't sure about leaving only one module, that's probably the main candidate for leaving enabled and would be fine with me.

By the way, that patch is completely errant here's the file I meant to upload.

AttachmentSize
advanced.profile.txt3.94 KB

#3

macgirvin - May 23, 2008 - 22:33

subscribe

#4

Dries - June 14, 2008 - 06:56

I'd support this. It would be a great thing to do. Re-roll and commit? I'm sure we'll be refining this install profile over time.

#5

catch - June 14, 2008 - 08:58

OK here it is with 'dblog' included. Just noticed that locale gets enabled anyway though, so do we need to add a task at the end to disable it? Leaving at needs work (and still not a patch, not sure how to add folders in cvs).

#6

catch - June 14, 2008 - 08:58

#7

catch - June 14, 2008 - 08:59
AttachmentSize
advanced.profile.txt3.94 KB

#8

alpritt - June 20, 2008 - 12:14

The rename to something like 'minimum' is a good idea I think. It's not advanced in the same way that desktop applications have advanced modes (in fact it is frequently the opposite as it often means enabling more features). 'Minimum' describes what the install profile actually is.

#9

catch - June 20, 2008 - 13:40
Title:'Advanced user' profile» 'Minimum' install profile
Status:patch (code needs work)» patch (code needs review)

Here it is as minimum.profile - and with locale disabled in minimum_profile_tasks()

Might need some more tweaking, but back to review to get some feedback.

AttachmentSize
minimum.profile.txt3.98 KB

#10

Dries - June 20, 2008 - 16:50

It looks to me as it is too minimal. Wasn't the goal to create some dummy data and to setup a vocabulary?

#11

Dries - June 20, 2008 - 17:00

Ah, I get it now. The idea is to add stuff to the default profile, and to keep the minimum profile the minimum profile. Makes sense.

#12

Dries - July 4, 2008 - 07:44

I'd suggest two changes though:

1. Let's rename 'minimum' to 'expert' as that better communicates the target audience and looks at it from an end-user point of view.
2. Let's add an entry to CHANGELOG.txt.

If you do a re-roll, I'll commit it the same day. ;)

#13

catch - July 4, 2008 - 09:45
Assigned to:Anonymous» catch

How can I resist an offer like that :)

Here's expert.profile as a .txt file (not sure how to roll a new folder into a patch), and a patch for CHANGELOG.txt

I'm still not happy with locale.module being enabled then immediately disabled again afterwards, but don't see a way 'round this the way profiles currently work.

AttachmentSize
changelog.patch752 bytes
expert.profile.txt3.97 KB

#14

Dries - July 5, 2008 - 10:58
Status:patch (code needs review)» fixed

Committed to CVS HEAD.

This opens the doors to add more things to the default profile and/or to create additional install profiles for core. It also helps set an example for more install profiles in the contributed modules repository.

#15

Anonymous (not verified) - July 23, 2008 - 10:56
Status:fixed» closed

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

#16

Xano - September 12, 2008 - 07:48
Status:closed» active
  • There are two profiles called 'Drupal' now, which may be confusing.
  • Beginning users that know how Drupal works, but don't consider themselves experts probably don't want dummy data, but perhaps also don't check out the expert profile since they think it's not meant for them.

I would change the profile names to the following:

Default
Enables some basic Drupal functionality and adds dummy data.
Custom
Enables only minimum functionality.

#17

catch - September 14, 2008 - 11:26

I'd be fine with such a change. It also mirrors how desktop software does this.

#18

Xano - September 14, 2008 - 11:45
Status:active» patch (code needs review)

Here's the patch that applies the changes as mentioned in #16.

AttachmentSize
rename_install_profiles.patch5.22 KB

#19

DrupalTestbedBot - September 14, 2008 - 11:52
Title:'Minimum' install profile» 'Minimum' install profile
Status:patch (code needs review)» patch (code needs work)

Patch failed to apply. More information can be found at http://testing.drupal.org/node/14338. If you need help with creating patches please look at http://drupal.org/patch/create

#20

Xano - September 14, 2008 - 12:52

I justed tried patching this version against the latest dev and it works. I couldn't figure out how to let the patch delete the 'Expert' profile though.

AttachmentSize
rename_install_profiles_2.patch5.14 KB

#21

Xano - September 21, 2008 - 15:15
Status:patch (code needs work)» patch (code needs review)

#22

CorniI - September 27, 2008 - 22:31
Status:patch (code needs review)» patch (reviewed & tested by the community)

Kaaskop wanted to know if this patch still applies cleanly to HEAD, and yes it does, so webchick here we go :)

#23

webchick - September 27, 2008 - 22:47
Status:patch (reviewed & tested by the community)» patch (code needs work)

If we're changing the name, we ought to change the function names to match.

#24

Xano - September 27, 2008 - 23:25
Assigned to:catch» Xano
Status:patch (code needs work)» patch (code needs review)
AttachmentSize
rename_install_profiles_3.patch5.08 KB

#25

Xano - October 10, 2008 - 18:32

I attached a zipped version of the modified /profiles directory. Since I cannot create a patch for removed and added files somebody else has got to do this.

AttachmentSize
profiles.zip7.99 KB

#26

Dave Reid - October 10, 2008 - 20:12

Here's the patch for HEAD that adds and deletes files.

AttachmentSize
profiles.patch9.51 KB

#27

keith.smith - October 10, 2008 - 20:25
Title:'Minimum' install profile» 'Minimum' install profile
 
 

Drupal is a registered trademark of Dries Buytaert.