Active
Project:
Panopoly
Version:
7.x-1.0-rc5
Component:
Miscellaneous
Priority:
Normal
Category:
Plan
Assigned:
Reporter:
Created:
19 Nov 2013 at 20:20 UTC
Updated:
19 Jul 2015 at 16:53 UTC
Jump to comment: Most recent
There are a few features in Panopoly that might not be appropriate for a base distribution. The thinking I have heard include:
-- taxonomy setting for categories
-- panelizer settings for categories
-- panelizer settings for user page
-- fields settings for users
-- User profile as panelizer or panel page #2335035: Reason for panelizer on user profiles instead of page manager panels?
Also see related issues in the sidebar!
Comments
Comment #1
dsnopekI'd like to second the removal of "panelizer settings for user page". Open Atrium overrides these settings via Features Override. Now, when you have an Open Atrium site where you want to override Open Atrium's overrides, you have to do this in custom code because Features Overrides breaks down when trying to override the overrides. :-)
I haven't personally encountered issues with the rest, but they are in the same class of thing: configuring shared entities that aren't owned by Panopoly and probably would get overridden in a child distribution.
If for some reason we don't want to remove them, they should at least be put in a seperate module that can easily be disabled.
Comment #2
caschbre commentedWhen it comes to using the Features module to set some of these things up, I would say that 'yes', we should avoid setting them in panopoly. The one exception is if we can use the defaultconfig module to do it.
Features are delicate to work with and feature overrides even more so.
Comment #3
lsolesen commentedComment #4
caschbre commentedI was thinking about this a bit more... and maybe 'remove' is the wrong word. I still think these could be created in the database during installation, however do it without it being part of a feature. That way they can easily be removed / modified without showing the feature as overridden or needing features override module.
Comment #5
dsnopek@caschbre: Yeah, that'd be fine so long as another distribution based on Panopoly can put the same thing in a Feature and have the installation work correctly - meaning the distributions Feature should overwrite Panopoly's default and not the other way around.
Comment #6
caschbre commented@dsnopek... the way I'm thinking about it would be similar to how the standard install profile creates a page and article content type, etc. A feature can take control of those.
So the question then becomes whether or not Panopoly creates these things in the database during installation and then pretty much forgets about them.
Comment #7
caschbre commentedSo I've been toying around with panopoly_users to see what's feasible. So far I can easily de-feature the fields and field_group on the user entity. The upgrade works without losing content or breaking the site (that I can tell) and a fresh install looks the same.
Where I'm running into road blocks is with the panel variants / panelizer defaults. I haven't found a way yet to provide these in code and allow them to be overridden or exported to another feature without showing panopoly_users as being overridden itself. Without the ability to move these out of features control, the fields and field_group changes aren't worth it.
Any ideas?
Comment #8
dsnopekAdded as a related issue: #2063541: Remove Open Sans?
Comment #9
dsnopek@caschbre: I'm not crazy about the defaultconfig module, but maybe that's the easiest option? However, I haven't tested having defaultconfig create something and Features override it..
Comment #10
caschbre commentedThe defaultconfig works ok. It's basically just writing some config (mostly permissions) to the db. If those values change they don't register the feature as being overridden.
What I'm having trouble with is the exported panel page(s) and panelizer defaults. I don't know if it's because panopoly_users is a feature module so any ctools export change is registering the module as overridden. I might have to de-feature the whole thing and see how that goes.
Though the more I think about this the more I'm inclined that some things just shouldn't be part of panopoly. Take the user entity for example... at least in my experience I've always added fields to the user entity so panopoly_users would always show as overridden.
I've also never panelized the user entity though I can see it's necessary here if we wanted to provide the capability to add a 'feature' display of a user. This uses the 'featured' view mode, hence there is a panelizer default for the 'featured' view mode.
Comment #11
dsnopekI think you can put anything that is featurizable into defaultconfig? So, you should be able to use it with panel pages or panelizer defaults.. Although, I've never personally tried it. :-)
Anyway, I agree - Panopoly probably shouldn't Panelize the user entity page since pretty much any distribution based on Panopoly will want to do that itself.
Comment #12
caschbre commentedTurning this into a meta issue since it can probably cover users, pages, taxonomy, etc. I'll create separate issues for each component since we may want to keep keep some parts, change some, and get rid of others.
Comment #13
liza commentedMORE THAN JUST REMOVING i think that those features should be optional. tbh, Panopoly shouldn't be adding a taxonomy, or a different way to create user profiles or even new search function to my site. what Panopoly should be doing is creating new ways to display the default taxonomy, user profile and search pages. to me Panopoly is a framework for structuring/architecturing a site, not so much about "app-like" functionality (ie: search).
so my suggestion is to ID & agree on which are the "core" Panopoly functionalities and which are the "optional" ones. there could be a stripped-down distro with just the structuring/architecture functionalities inherent to Panopoly. the optional modules can be offered separately and you can have an all inclusive distro with all the bells & whistles.
Comment #14
dsnopek@liza: You can already acheive this to a large degree by building your own child distribution with it's own .make file. If you're .make file only included panopoly_core and panopoly_magic, for example:
When you ran
drush makeit would ONLY download panopoly_core and panopoly_magic and their dependencies (properly versioned and patched). So, you would NOT get any of modules pertaining to search, WYSIWYG, images, user settings, etc.You can see what additional modules each Panopoly module will include by looking at it's .make file (since drush make runs them recursively). For example, here's what comes with panopoly_core:
http://cgit.drupalcode.org/panopoly_core/tree/panopoly_core.make
Having your own child distribution also allows you to put your own patches in your .make file to change what Panopoly includes! This sounds like it'd be something useful for you. Here's an example of a .make file that applies 3 patches to Panopoly:
http://cgit.drupalcode.org/mvpcreator/tree/makefiles/includes/panopoly.make
Anyway, I think switching to this more advance use of Panopoly might help you in a couple ways!
See this page for the full documentation on creating a child distribution:
https://drupal.org/node/1651128
Comment #15
liza commentedso, am gonna go back to my .02: wouldnt it make sense to organize the files by "core panopoly" and "panopoly apps" or whatever you want to call it? when it comes down to it, organizing the files in such a way is a much better shortcut to actually creating full blown "advanced" documentation. it immediately tells the developer what is absolutely needed so they can go from there building their distro.
now if working trees are a hassle, then maybe slapping app to the name of the app modules would be a better solution. because then people can more easily choose to focus on growing the core of panopoly or adding apps to it.
basically, what i would love for y'all is to commit to saying: this is the absolute minimum developers will need to have an actual panopoly infrastructure. and then i would love to see a "basic panopoly installation", where we only get that core of panopoly modules, not all the extra jazz. and that way we can update that core, without having to manually make changes to make files --unless they are the ones we created, of course.
what would the "basic panopoly installation" look like?
- p core
- p admin
- p themes
- p magic
and maybe, just maybe...
- p widgets
no p user, no p pages, no p search, no p wysiwyg and yes, not even p images --even though i understand that some of the widgets depend on the p images modules. set those as APPS to be explored and added by the user. and then call the current distro of panopoly what it is: a DEMO.
so if this needs to go in a separate post, i'll be more than glad to do so. but please please pretty please, let's have a serious convo about differentiating between the panopoly core/framework and the panopoly apps.
and thanks for the instructions. i've been trying to avoid doing this by creating a whole feature set around panopoly, but it seems i have no recourse but to do this ... le sigh. i'll work on it and report back :)
Comment #16
dsnopekComment #17
caschbre commentedComment #18
dsnopek