Features – 2b || !2b

Миграция функционала и контента с помощью фич

Why features?

because there is nothing easier and better

Features

Installs: 267,998 sites
Downloads: 2,289,933
Last commit: 1 day ago (2015-Mar-31)

 

Configuration

Installs: 1,197 sites
Downloads: 67,856
Last commit: 8 months ago (2014-Jul-26)

Deploy

Installs: 1,430 sites
Downloads: 45,961
Last commit: 1 month ago (2015-Feb-18)

Own solution

Installs: 1-2-3-5 ? sites
Downloads: :)

Configuration Managment

  • Fast
  • Simple
  • Track many items, but not all

 

Only for configs

module Deploy

  • API
  • sometimes slow
     

More for content

Own solution

hook_update()

variable_set()

partial sql-dump

csv/txt/json/xml/migrate

etc

Migrate content with features

Use uuid_features

 

  • slow & big

  • difficult to export

  • problems with managed_file images

  • problems with menus

  • problems with taxonomy

Functional  vs  Type

feature_views
feature_user
feature_permissions
feature_commerce_order

feature_shop
feature_news
feature_image_gallery
feature_forum

Use both :)

Feature = module

<?php
/**
 * @file
 * Code for the somename feature.
 */

include_once 'feature_somename.features.inc';

Features not revert

  • If your feature includes a view views cache could cause it to remain changed; especially, the migrate module (#1)
  • Other features can cause your feature to be overridden (#10)
  • Adding a line in your info file (#24)
  • There are hooks overriding or altering your view (#36)
  • A view won't revert. So revert the view using the UI (#62)
  • When Views UI is disabled, it may cause your view to be overriden (#64)
  • A feature is missing an include file (#82)
  • Troubleshooting: Reasons Features may be stuck as Overridden

Features – 2b || !2b

By vasilykraev

Features – 2b || !2b

  • 2,082