Managing feature flags is a straightforward process. Begin by creating a project, and then click on it to select the feature flags option.
Create a projectTwo environments are available at this time: production and test. Switching between them is simple with the toggle found in your project's feature flags section.
Using a test environment lets you explore the integration of feature flags in your development scenarios without influencing the production environment's data. Plus, it allows for the creation and transfer of a feature flag to the production environment as you develop.
If you have configured a feature flag in the test environment and desire the same setup in production, you can copy that feature flag instead of creating a new one. Clicking on the flag's dropdown menu will present options like Edit, Analytics, Move to Production, and Delete. Select "Move to Production" to automatically generate a feature flag in the production environment with identical settings, saving you the effort of recreating it.
Simply click the + button to create a flag. Fill in the required fields in the modal that appears, such as:
A Boolean type allows two variants (true and false), each requiring a unique and mandatory name.
A Number type allows unlimited variations, each with a numerical value.
A String type works similarly but assigns a string value to each variant.
You can configure the serving method, choosing to always serve one value or by percentage. Specific value serving lets you select from created variants.
If you opt for a percentage rollout, you'll need to allocate a percentage to each variant, ensuring the total equals 100%.
Feature flags can be toggled on and off. When off, you can set a specific value to be served from your variants.
Editing a feature flag is accessible at any time. Clicking on the flag's menu and selecting Edit allows you to modify:
A simple click on a flag's switch allows you to enable or disable it. A confirmation modal will appear; confirm your choice by clicking enable/disable.
You can delete a feature flag whenever needed. Clicking on the flag's menu and selecting Delete will prompt a confirmation modal. Confirm deletion by clicking enable/disable.
An analytics section displays the evaluation percentages for each feature flag variant, provided the flag has been evaluated at least once. Selecting the Analytics option in a feature flag's menu will reveal a chart depicting these percentages.
We have several SDKs prepared for easy integration with Mockfly. Currently (with many more to come!), we have: