Drupal planet | Senzilla http://www.senzilla.com/taxonomy/term/16/all en DrupalCon, content staging and Drupal 8 http://www.senzilla.com/drupal/drupalcon-content-staging-and-drupal-8 <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p><strong>Update:</strong> Here's the follow up post on drupal.org with the implementation plan: <a href="https://www.drupal.org/node/1540656">https://www.drupal.org/node/1540656</a>.</p> <p>DrupalCon is over (since two weeks already). It was an awesome time. Some say it was the best so far. Thankfully it doesn't mean that the community will sleep until Munich. No, now it's time for action! The code freeze is coming closer and things need to happen quickly.</p> <p>One of the things that I've decided to help with for Drupal 8, is improved support for content staging in core. At DrupalCon there were quite a bit of discussions around this matter. And I'm going to try to summarize this in this blog post.</p> <p>Content staging is a lot of different things to different people. It involves workflows, APIs to manage content, universally unique and identifiable content, APIs for pushing and merging content between environments, and so on. Many people also use content staging-like functionalities to share content across networks of sites. So, when people talk about content staging they often talk about it in different contexts or focusing on different technical problems. Here are some of the semi-related discussions that took place.</p> <h2>Core conversation on content staging</h2> <p>On Tuesday I started off with my core conversation on this topic. You'll find slides and videos here: <a href="http://denver2012.drupal.org/content/content-staging-core"> http://denver2012.drupal.org/content/content-staging-core</a></p> <h2>Discussions about Workflows</h2> <p><a href="https://twitter.com/stevector">@stevector</a> and <a href="https://www.drupal.org/user/67660">robeano</a> held a core conversation about the editorial workflow experience in Drupal and highlighted some problems with revision management in core. This is something we need to improve to efficiently be able to stage revisions of content. But more about that in the next blog post. Listen to the core conversation here: <a href="http://denver2012.drupal.org/content/i-just-want-edit-node">http://denver2012.drupal.org/content/i-just-want-edit-node</a></p> <h2>Discussions about Entity API</h2> <p>On Tuesday (if I recall correctly) we held an Entity API BoFs. One of the things we talked about was introducing a Property API, similar to what the <a href="https://www.drupal.org/project/entity">Entity API contrib module</a> for Drupal 7 provides. This would unify how we interact with fields and properties on the code level and help solve one of the toughest problems for efficient content staging, namely consistently tracking what properties and fields that adds dependencies (like author or taxonomy terms). This would then be defined in the property API, similar how "data types" are used in the Entity API contrib module and Rules.</p> <p>Another important discussion that happened around the Entity API in core was <a href="https://twitter.com/damz">@DamZ</a>'s and <a href="https://twitter.com/lsmith">@lsmith</a>'s core conversation about implementing standards for document storage in content management systems in general, but Drupal in particular. One of the very interesting topics was the plan for introducing <a href="http://phpcr.github.com/">PHPCR</a> to Drupal. PHPCR defined a standardized API for how content should be stored and managed. That in turn, would make it a lot easier to implement a standardized outward-facing API and a canonical format for our content (like <a href="http://en.wikipedia.org/wiki/Content_Management_Interoperability_Services">CMIS</a>). This would define a more robust transportation protocol for moving content between environments. Go ahead and listen to the whole core conversation here: <a href="http://denver2012.drupal.org/content/open-standards-and-document-oriented-storage">http://denver2012.drupal.org/content/open-standards-and-document-oriented-storage</a>.</p> <h2>Notes from the content staging BoFs</h2> <p>For the Drupal 7 BoF that was held, we mostly talked about how people are tackling content staging (and similar functionality) right now. We simply concluded that people and organizations do it very differently. Some people are using <a href="https://www.drupal.org/project/deploy">Deploy</a>, some people don't, some people build more advanced content staging/preview functionalities on a single site together with modules like <a href="https://www.drupal.org/project/workbench_moderation">Workbench Moderation</a> or <a href="https://www.drupal.org/project/state_machine">State Machine</a>. One thing that came out of the Drupal 7 BoF was that we should look deeper into how we can integrate Deploy and State Machine better with each other. More on this in another post.</p> <p>For the Drupal 8 BoF we identified some of the things I already mentioned in this blog post:</p> <ul><li>better revisioning support for single-site content staging</li> <li>ability to define variants of your configuration (more on this below)</li> <li>ability to synchronize deployments of configuration and content together</li> <li>we need a canonical entity format</li> </ul><p>Being able to work on different variants of configuration for your site was something we talked a lot about. One exemplifying scenario would be an editor on an e-commerce site that, through the UI, prepares new sets of content together with a new variant of configuration (menus, views, landing pages etc) for the launch of a new spring clothes collection. Currently in <a href="http://groups.drupal.org/build-systems-change-management/cmi">CMI</a> there's no API support for this, not even support for different variations between staging and production. It's for now recommended that you solve this on a VCS level with different branches of your code. I talked to <a href="https://www.drupal.org/user/128537">Greg Dunlap</a>, the initiative lead, about this and he said it has been discussed. But providing API support for this and eventually a UI where you blindly can switch between variants of your configuration is complicated with the risk of mangling your database (switching between different Field API configurations for instance). So we would need to think some more about this and eventually re-visit this discussion.</p> <h2>Summary</h2> <p>All in all, there were a lot of good discussions and ideas flying around. The next step will be to formalize a more concrete plan and start work on things we need to improve for better content staging in Drupal 8. Work is already being done in a lot of areas that help improve the situation, but there's more work to do. More about this in the next blog post ;)</p></div></div></div><div class="field field-name-field-topic field-type-taxonomy-term-reference field-label-inline clearfix"><div class="field-label">Topic:&nbsp;</div><div class="field-items"><div class="field-item even"><a href="/drupal" typeof="skos:Concept" property="rdfs:label skos:prefLabel">Drupal</a></div></div></div><div class="field field-name-field-tag field-type-taxonomy-term-reference field-label-inline clearfix"><div class="field-label">Tags:&nbsp;</div><div class="field-items"><div class="field-item even"><a href="/content-staging" typeof="skos:Concept" property="rdfs:label skos:prefLabel">Content staging</a></div><div class="field-item odd"><a href="/deployment" typeof="skos:Concept" property="rdfs:label skos:prefLabel">Deploy</a></div><div class="field-item even"><a href="/drupalcon" typeof="skos:Concept" property="rdfs:label skos:prefLabel">DrupalCon</a></div><div class="field-item odd"><a href="/drupal-planet" typeof="skos:Concept" property="rdfs:label skos:prefLabel">Drupal planet</a></div></div></div> Thu, 05 Apr 2012 07:30:00 +0000 root 29 at http://www.senzilla.com Content staging in Drupal - let's make a plan http://www.senzilla.com/drupal/content-staging-drupal-lets-make-plan <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>The lack of a robust content staging solution in Drupal has been long standing. In this post I won't go into details of why this is such a difficult problem to solve. Instead, I'll suggest a plan, to make a plan, to solve it! So, those of you that are interested in tackling a <a href="http://buytaert.net/starting-to-work-on-drupal-8">strategically important functionality for Drupal 8</a>, please continue to read.</p> <h2>What's being done right now?</h2> <p>Throughout the last 8-9 months I've been working on a rewritten version of <a href="https://www.drupal.org/project/uuid">UUID</a> and <a href="https://www.drupal.org/project/deploy">Deploy</a> for Drupal 7. It's been moving slow for different reasons, one being because we're very few people coding on it. But (dare I say it?) we are close to a release of Deploy!</p> <p>Acquia started an initiative called <a href="http://groups.drupal.org/large-scale-drupal-lsd-projects-and-plans">Large Scale Drupal (LSD)</a>, focusing on identifying, planning and consolidating work on problems for large scale Drupal implementations. Content staging is one focus area, with <a href="http://groups.drupal.org/node/203933">wireframes</a> and <a href="http://groups.drupal.org/node/198223">workflow</a> discussions.</p> <p>In parallel with all this, the Configuration Management Initiative landed <a href="https://www.drupal.org/node/1252486">the first UUID patch</a> and the <a href="https://www.drupal.org/node/1270608">initial version of the file based configuration API</a>. Both patches are important for improving the content staging situation in Drupal 8, but it's not enough.</p> <h2>A plan, to make a plan</h2> <p>For those of you that are interested to work on this topic, here are some events you should participate in during DrupalCon Denver, and some points we need to discuss in order to get out of Denver with a solid plan on how to make content staging work better in Drupal 8!</p> <h3>Core conversation: <a href="http://denver2012.drupal.org/content/content-staging-core">Content Staging in Core</a>, Tue 11:15am - 11:45am</h3> <p>Some points I will raise and we hopefully will discuss during my core conversation:</p> <ul><li>Why a file based configuration API isn't the whole answer</li> <li>What I think is needed in core to tackle content staging better (this will also be a separate post soon)</li> <li>Next steps for the UUID implementation in core</li> <li>Do we need some sort of documentation, group or sub-initiative to track this?</li> </ul><h3>BoF: <a href="http://denver2012.drupal.org/bof/content-staging-drupal-7">Content Staging in Drupal 7</a>, Wed 11:45am - 1:00pm</h3> <ul><li>Work being done in different projects for Drupal 7, like Deploy, State Machine, LSD etc. </li><li>How to consolidate work across those projects</li> <li>Next steps moving towards a working solution in Drupal 7</li> </ul><h3>BoF: <a href="http://denver2012.drupal.org/bof/content-staging-drupal-8">Content Staging in Drupal 8</a>, Wed 1:00pm - 2:00pm</h3> <ul><li>Follow up on our discussion from the core conversation</li> <li>Create issues, documentation or plans we find needed in order to move forward</li> </ul><h2>Thought?</h2> <p>This blog post is a cross post of <a href="http://groups.drupal.org/node/216414">this g.d.o post</a>, please discuss there.</p></div></div></div><div class="field field-name-field-topic field-type-taxonomy-term-reference field-label-inline clearfix"><div class="field-label">Topic:&nbsp;</div><div class="field-items"><div class="field-item even"><a href="/drupal" typeof="skos:Concept" property="rdfs:label skos:prefLabel">Drupal</a></div></div></div><div class="field field-name-field-tag field-type-taxonomy-term-reference field-label-inline clearfix"><div class="field-label">Tags:&nbsp;</div><div class="field-items"><div class="field-item even"><a href="/drupal-planet" typeof="skos:Concept" property="rdfs:label skos:prefLabel">Drupal planet</a></div><div class="field-item odd"><a href="/deployment" typeof="skos:Concept" property="rdfs:label skos:prefLabel">Deploy</a></div><div class="field-item even"><a href="/uuid" typeof="skos:Concept" property="rdfs:label skos:prefLabel">UUID</a></div><div class="field-item odd"><a href="/content-staging" typeof="skos:Concept" property="rdfs:label skos:prefLabel">Content staging</a></div></div></div> Sat, 10 Mar 2012 13:19:00 +0000 root 28 at http://www.senzilla.com