I'm building a Commons site where I need to disable all functionality related to events. My natural inclination is to disable the commons_events and commons_events_pages features to achieve this. However, commons_site_homepage and commons_user_profile_pages features are both dependent on commons_events.

The reason these two modules are listing commons_events as a dependency is because they have panel panes which load views from commons_events. The default Commons homepage panel and the default Commons user profile panel both load an upcoming events view.

My argument is that user profiles and the homepage should function smoothly even while event functionality is turned off.

My fix is to simply remove the dependency on commons_events from the info files of commons_site_homepage and commons_user_profile_pages. The views in question won't display in the respective panes if commons_events is disabled, but the rest of the content loads normally. I will post a patch below.

Comments

sheldonkreger’s picture

Status: Active » Needs review

I set up two separate issues in the appropriate module issue queues. Hopefully this is the right place, apologies ahead of time if this isn't the normal workflow on this project.

Anyway, here are the patches.

#1952524: Remove dependency on commons_events

#1952540: Remove dependency on commons_events

ezra-g’s picture

Status: Needs review » Closed (duplicate)

Thanks. We use the main Commons queue for all Commons_*projects. Marking as a duplicate of the referenced issues.