{"id":27804,"date":"2019-09-26T12:59:53","date_gmt":"2019-09-26T16:59:53","guid":{"rendered":"https:\/\/centricconsulting.com\/?p=27804"},"modified":"2021-12-15T00:16:40","modified_gmt":"2021-12-15T05:16:40","slug":"using-feature-toggles-to-increase-product-owner-release-control","status":"publish","type":"post","link":"https:\/\/centricconsulting.com\/blog\/using-feature-toggles-to-increase-product-owner-release-control\/","title":{"rendered":"Using Feature Toggles to Increase Product Owner Release Control"},"content":{"rendered":"

Whenever joining a new development team, there is an inevitable debate on \u201cbranching\u201d strategy. The branching strategy debate centers around how to manage multiple feature development streams while still maintaining the ability to release small enhancements and bug fixes continuously.<\/p>\n

This debate elicits a lot of passion around the most effective way to achieve agility, stability, and release management control. As agile<\/a> becomes a de-facto standard, and as continuous delivery and feedback is an increasingly important business and IT imperative for success, our team migrated away from a \u201cBranching Strategy\u201d to a Feature Toggle pattern.<\/strong><\/p>\n

This article details the fundamental principles and example usage of Feature Toggles.<\/p>\n

What Are Feature Toggles?<\/h2>\n

In its simplest form, a Feature Toggle is a simple lever that allows the team to enable or disable a production feature without having to redeploy software. Whether a team works on a core transactional system replacement or enhances an existing application, there will be a mismatch between the completeness of different features.<\/p>\n

Many agile teams revert to complex strategies to manage the rollout imbalance. One option teams use is complex release planning schedules where the team holds releases until they complete a certain set of features. This process leads to a long lead time for simple changes since these require a delay until the more complex features reach maturity.<\/strong><\/p>\n

Another option is creating multiple feature branches where you keep longer-running features out of the mainline deployments. This process allows the teams to deploy the small changes quickly since large changes are separated from mainline. However, this option introduces a problem of stale feature branches. Multiple feature branches can pull from mainline, but they don\u2019t \u201csee\u201d the major changes occurring across the other feature branches. This step limits the amount of refactoring done in each branch and increases the complexity of merges when the feature branches complete.<\/p>\n

To address these issues, our agile team introduced Feature Toggles across the system. The Feature Toggles allow us to control the availability of features in production which we accomplished with a few minor upgrades to our existing permissions system.<\/p>\n

We can use the Feature Toggles at both a macro level, where we enabled full menu items and business processes<\/a> for a select set of users and small features, such as a single additional button.<\/p>\n

Finally, allowing A\/B testing of replacements for existing features is another usage pattern.<\/p>\n

Feature Toggles in Practice<\/h2>\n

Below is an example of a simple feature toggle where we added a new button to an existing UI view. The screenshot is from the same car-rental company system example I used in my previous Behavior Driven Development (BDD)<\/a> blog. The first image is the view for most of the users.<\/p>\n

\"Figure<\/a>

Figure 1 Feature Toggle OFF<\/p><\/div>\n

This image is the view for a select few users who are testing out the new functionality in production before it is turned on for all users.<\/p>\n

\"Figure<\/a>

Figure 2 Feature Toggle ON – Pre-Inspect Button<\/p><\/div>\n

The process is incredibly simple, and it seems like it isn’t worth implementing a Feature Toggle! But, consider the effect on the process of rolling this feature out. Without the Feature Toggle, we can\u2019t add the button to the system without determining when the build goes to production. We need to consider the effect of the new button as part of the Operational Change Management Plan. And, we must fully test the button effects before we can push the build to production.<\/p>\n

With the Feature Toggle, we eliminate these issues. We can commit and push the code for the button to production immediately and then enable it for production use at the convenience of the business.<\/strong><\/p>\n

Feature Toggles for New Processes<\/h2>\n

In modern complex systems, the addition of new processes sometimes requires new UI screens, changes to existing screens, as well as underlying service changes. Planning the process with UI mockups, service-tier designs or architecture, and user interviews provides an initial starting point for the implementation. However, we receive the best feedback by slowly rolling out the feature.<\/p>\n

The slow rollout allows teams to focus on the user\u2019s true requirements instead of adding \u201cgold-plating.\u201d Gold-plating is a common problem when agile teams build a feature that not used actively in a production environment.<\/strong> It occurs when a team orders the backlog based on usage assumptions instead of actual user feedback.<\/p>\n

\"Figure<\/a>

Figure 3 Feature Toggle OFF<\/p><\/div>\n

 <\/p>\n

\"Figure<\/a>

Figure 4 Feature Toggle ON – New Process Menu Item<\/p><\/div>\n

For new processes, we use a Feature Toggle to begin the rollout to a primary set of users working closely with the team to define the new process. A new process might require a simple button Feature Toggle on an existing screen as well as a Feature Toggle on a set of menu items and UI flows.<\/p>\n

Feature Toggles for Complex Process Changes<\/h2>\n

Below is a screenshot of a sophisticated A\/B implementation of a Feature Toggle. The example shows the existing user\u2019s \u201cA\u201d implementation as well as the new \u201cB\u201d implementation that has a dramatically different flow based on user feedback from using the initial \u201cA\u201d implementation.<\/p>\n

\"Figure<\/a>

Figure 5 Feature Toggle OFF<\/p><\/div>\n

 <\/p>\n

\"Figure<\/a>

Figure 6 Feature Toggle ON – Complex Process Change<\/p><\/div>\n

The team began implementation of the new feature by making a few tactical changes to the existing implementation. This step is an example of Branch by Abstraction, where we put a small glue layer in-place in preparation for a larger refactoring. By adding the Branch by Abstraction layer to the existing implementation, it freed the team to make the significant changes required for the new process without breaking the existing functionality.<\/p>\n

Feature Toggling of complex changes also reduces the complexity of Operational Change Management<\/a> since actual users champion the new functionality as well as provide actual usage-based training to new users.<\/p>\n

Sample Implementation<\/h2>\n

We controlled the Feature Toggles through our standard permissions system. As part of our DevOps approach to development, we have the permissions committed in source control. And, we deploy the permissions with a single button push per environment. The following is one possible implementation. Feature Toggle implementations vary based on the architecture and design of the system.<\/p>\n

\"Feature<\/a><\/p>\n

The \u201cCustomerInsurancePermission\u201d contains the definition of the Feature Toggle as well as default Dev environment permissions.<\/p>\n

\"Feature<\/a><\/p>\n

The _beta, _release, and _test files contain overrides to set the permissions based on the specific environment but do not redefine the Feature Toggle. The _release version below shows a disabled Feature Toggle.<\/p>\n

\"Feature<\/a><\/p>\n

The developers who add the Feature Toggle also add the specific Feature Toggle file(s) as well as \u201cempty\u201d permissions for the other environments. The developers also disable all Feature Toggles by default in the higher environments. The business representatives coordinate with the agile team (primarily the Business Analysts, Scrum Masters, and Project Managers) to determine when we can enable a Feature Toggle in each environment. Initially, developers were responsible for updating the environment permissions by editing the individual environment permissions files. This step was a significant roadblock because it depended on normal ticket assignment. To mitigate this issue, the Business Analyst now makes the changes to the environment files using a Web-based view of our source control.<\/p>\n

The deployment process is to deploy the permission updates and then deploy the code. Our team also performs beta rollouts where we coordinate turning on a feature for a short time (using the standard deployment mechanisms) and then disable the feature with a later deployment. Finally, if we find a critical issue in production, our team can immediately disable a feature. We rarely need this capability but can execute it, if necessary. Being able to disable a new feature temporarily keeps the team from having to make emergency hotfixes for code in production.<\/p>\n

Summary<\/h2>\n

Feature Toggles are a straightforward mechanism for managing the complex rollout of features in a Continuous Integration and Continuous Delivery<\/a> agile environment. The Feature Toggles achieve a couple of key elements to enable the agility of the team:<\/strong><\/p>\n

    \n
  1. Restore control of feature delivery to the business instead of relying on developers coordinating code check-ins.<\/li>\n
  2. Enable feature rollout to full userbase without additional developer code changes.<\/li>\n
  3. Simplify Operation Change Management by allowing early-adopter users to provide feedback for improvement of the feature without having to enable the feature for all user across the system fully.<\/li>\n<\/ol>\n

    The introduction of Feature Toggles changes the conversation for designing, building, and deploying changes to a mission-critical core system from a complex codebase merge and deployment planning to a simple business readiness check. Once a feature passes the readiness check, we enable it is without developer intervention.<\/p>\n","protected":false},"excerpt":{"rendered":"

    Agile is a de-facto standard, and as continuous delivery is an increasingly important business and IT need for success,we moved to a Feature Toggle pattern.<\/p>\n","protected":false},"author":247,"featured_media":27806,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_oasis_is_in_workflow":0,"_oasis_original":0,"_oasis_task_priority":"","_relevanssi_hide_post":"","_relevanssi_hide_content":"","_relevanssi_pin_for_all":"","_relevanssi_pin_keywords":"","_relevanssi_unpin_keywords":"","_relevanssi_related_keywords":"","_relevanssi_related_include_ids":"","_relevanssi_related_exclude_ids":"","_relevanssi_related_no_append":"","_relevanssi_related_not_related":"","_relevanssi_related_posts":"","_relevanssi_noindex_reason":"","footnotes":""},"categories":[1],"tags":[18526],"coauthors":[15146],"acf":[],"publishpress_future_action":{"enabled":false,"date":"2024-07-21 22:43:02","action":"change-status","newStatus":"draft","terms":[],"taxonomy":"category"},"_links":{"self":[{"href":"https:\/\/centricconsulting.com\/wp-json\/wp\/v2\/posts\/27804"}],"collection":[{"href":"https:\/\/centricconsulting.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/centricconsulting.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/centricconsulting.com\/wp-json\/wp\/v2\/users\/247"}],"replies":[{"embeddable":true,"href":"https:\/\/centricconsulting.com\/wp-json\/wp\/v2\/comments?post=27804"}],"version-history":[{"count":0,"href":"https:\/\/centricconsulting.com\/wp-json\/wp\/v2\/posts\/27804\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/centricconsulting.com\/wp-json\/wp\/v2\/media\/27806"}],"wp:attachment":[{"href":"https:\/\/centricconsulting.com\/wp-json\/wp\/v2\/media?parent=27804"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/centricconsulting.com\/wp-json\/wp\/v2\/categories?post=27804"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/centricconsulting.com\/wp-json\/wp\/v2\/tags?post=27804"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/centricconsulting.com\/wp-json\/wp\/v2\/coauthors?post=27804"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}