features vs cmi - the battle for drupal 8 features... · 1. configuration for auto-creating...

25
Features VS CMI - The battle for Drupal 8 By - Neetu Morwani

Upload: others

Post on 12-Jun-2020

10 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Features VS CMI - The battle for Drupal 8 Features... · 1. Configuration for Auto-creating features 2. Bundles 3. Namespaces 4. Production/Stage site need not have the features module

Features VS CMI - The battle for Drupal 8

By - Neetu Morwani

Page 2: Features VS CMI - The battle for Drupal 8 Features... · 1. Configuration for Auto-creating features 2. Bundles 3. Namespaces 4. Production/Stage site need not have the features module

LEARNING IS ESSENTIAL

Page 3: Features VS CMI - The battle for Drupal 8 Features... · 1. Configuration for Auto-creating features 2. Bundles 3. Namespaces 4. Production/Stage site need not have the features module

1. What is CMI?2. Need of CM(Configuration Management)3. Key aspect of CMI4. Features module5. Enhancements made in features module in Drupal 86. Differences

DOWN THE LINE ...

Page 4: Features VS CMI - The battle for Drupal 8 Features... · 1. Configuration for Auto-creating features 2. Bundles 3. Namespaces 4. Production/Stage site need not have the features module

CMI

Configuration Management Initiative

Page 5: Features VS CMI - The battle for Drupal 8 Features... · 1. Configuration for Auto-creating features 2. Bundles 3. Namespaces 4. Production/Stage site need not have the features module

CONSISTENCY# Single Approach for Configuration - Storage of Configuration as YAML Files

Page 6: Features VS CMI - The battle for Drupal 8 Features... · 1. Configuration for Auto-creating features 2. Bundles 3. Namespaces 4. Production/Stage site need not have the features module
Page 7: Features VS CMI - The battle for Drupal 8 Features... · 1. Configuration for Auto-creating features 2. Bundles 3. Namespaces 4. Production/Stage site need not have the features module

Better Staging Of Configuration

Page 8: Features VS CMI - The battle for Drupal 8 Features... · 1. Configuration for Auto-creating features 2. Bundles 3. Namespaces 4. Production/Stage site need not have the features module

Working of Configuration Management

Config directory = 'sites/default/sync';

Page 10: Features VS CMI - The battle for Drupal 8 Features... · 1. Configuration for Auto-creating features 2. Bundles 3. Namespaces 4. Production/Stage site need not have the features module

EXPORT

Page 11: Features VS CMI - The battle for Drupal 8 Features... · 1. Configuration for Auto-creating features 2. Bundles 3. Namespaces 4. Production/Stage site need not have the features module

IMPORT

Page 12: Features VS CMI - The battle for Drupal 8 Features... · 1. Configuration for Auto-creating features 2. Bundles 3. Namespaces 4. Production/Stage site need not have the features module

SYNCHRONIZE

Page 13: Features VS CMI - The battle for Drupal 8 Features... · 1. Configuration for Auto-creating features 2. Bundles 3. Namespaces 4. Production/Stage site need not have the features module

if (Dest site UUID == Source site UUID) {CMI success! :)

}else {

CMI fails! :(}

Limitation of CM :

Page 14: Features VS CMI - The battle for Drupal 8 Features... · 1. Configuration for Auto-creating features 2. Bundles 3. Namespaces 4. Production/Stage site need not have the features module

Drush Support :drush config-exportdrush config-import

Page 15: Features VS CMI - The battle for Drupal 8 Features... · 1. Configuration for Auto-creating features 2. Bundles 3. Namespaces 4. Production/Stage site need not have the features module

?

Page 16: Features VS CMI - The battle for Drupal 8 Features... · 1. Configuration for Auto-creating features 2. Bundles 3. Namespaces 4. Production/Stage site need not have the features module

FEATURES

Page 17: Features VS CMI - The battle for Drupal 8 Features... · 1. Configuration for Auto-creating features 2. Bundles 3. Namespaces 4. Production/Stage site need not have the features module

FEATURES IN DRUPAL 8:

Page 18: Features VS CMI - The battle for Drupal 8 Features... · 1. Configuration for Auto-creating features 2. Bundles 3. Namespaces 4. Production/Stage site need not have the features module

FEATURES

Was Features developed for deployments?

It was designed for

Page 19: Features VS CMI - The battle for Drupal 8 Features... · 1. Configuration for Auto-creating features 2. Bundles 3. Namespaces 4. Production/Stage site need not have the features module

Photo Gallery Feature -

Page 20: Features VS CMI - The battle for Drupal 8 Features... · 1. Configuration for Auto-creating features 2. Bundles 3. Namespaces 4. Production/Stage site need not have the features module

1. Configuration for Auto-creating features2. Bundles3. Namespaces4. Production/Stage site need not have the features

module.5. Modular UI

Enhancements in Drupal 8 FEATURES

Page 21: Features VS CMI - The battle for Drupal 8 Features... · 1. Configuration for Auto-creating features 2. Bundles 3. Namespaces 4. Production/Stage site need not have the features module
Page 22: Features VS CMI - The battle for Drupal 8 Features... · 1. Configuration for Auto-creating features 2. Bundles 3. Namespaces 4. Production/Stage site need not have the features module
Page 23: Features VS CMI - The battle for Drupal 8 Features... · 1. Configuration for Auto-creating features 2. Bundles 3. Namespaces 4. Production/Stage site need not have the features module

Functionality D7 Core D7 core + Features

D8 Core D8 Core + Features

Export Full site config (no content) NO NO YES YES

Export selected config items NO YES YES YES

Track config changes (Full site) NO NO YES YES

Track config changes (Selected items) NO YES YES YES

Stage configuration NO YES YES YES

Package Configuration NO YES NO YES

Reuse configuration in other project NO YES NO YES

Collaborate on the same project NO YES YES YES

Page 24: Features VS CMI - The battle for Drupal 8 Features... · 1. Configuration for Auto-creating features 2. Bundles 3. Namespaces 4. Production/Stage site need not have the features module

HAPPY END TO THE STORY

Page 25: Features VS CMI - The battle for Drupal 8 Features... · 1. Configuration for Auto-creating features 2. Bundles 3. Namespaces 4. Production/Stage site need not have the features module

Thank You

nn

Email - [email protected] - neetumorwani.comTwitter - @neetumorwani