Beta Features and Feature Flags
Feature Flags
DXP 7.4 U69+/GA69+
Some features in Liferay are hidden behind feature flags. Using feature flags, you have control over new functionality introduced into your Liferay instance. New and experimental features can be adopted and validated more effectively with feature flags.
Read Maintenance Mode and Deprecations in 7.4 to learn more about other feature statuses: maintenance, deprecated, and removed.
To access and manage feature flags, open the Global Menu () and navigate to Control Panel → Instance Settings. Click Feature Flags under Platform. There are three types of feature flags available:
The documentation for a beta feature includes a badge to set it apart:
Beta Feature Flags
Beta features are functional features or capabilities undergoing business validation. These are experimental and require careful consideration before usage. Beta features may be deprecated after a limited time period or converted into a release feature. You can give feedback on beta features through Liferay’s Community Slack.
To enable a beta feature,
-
Open the Global Menu (
) and navigate to Control Panel → Instance Settings.
-
Click Feature Flags under Platform, then click Beta.
-
All beta features appear. Toggle to enable or disable a feature.
You can also use the search bar to find beta features, sort them using the Sort () button, or filter them based on their status.
Release Feature Flags
Release features are fully functional, but remain hidden behind a flag for a limited time. The flag allows you to control the visibility of a new feature and enable it when ready.
To enable a release feature,
-
Open the Global Menu (
) and navigate to Control Panel → Instance Settings.
-
Click Feature Flags under Platform, then click Release.
-
All release features are listed. Toggle to enable or disable a feature.
You can also use the search bar to find release features, sort them using the Sort () button, or filter them based on their status. The flag for release features is removed after a period of time, so monitor the release notes for your Liferay update.
Dev Feature Flags
Dev feature flags are for features and capabilities in active development, and you must not enable them in production. Only enable dev features for testing.
To enable a theoretical dev feature flag with the code XXX-000000
using a portal property, add this to portal-ext.properties
:
feature.flag.XXX-000000=true
To enable a theoretical dev feature flag with the code XXX-000000
using an environment variable, add this to your configuration:
LIFERAY_FEATURE_PERIOD_FLAG_PERIOD__UPPERCASEX__UPPERCASEX__UPPERCASEX__MINUS__NUMBER0__NUMBER0__NUMBER0__NUMBER0__NUMBER0__NUMBER0_=true
Never use dev features in production. Instabilities in Liferay are expected side effects of enabling dev feature flags.
Out-of-the-Box Beta Features
Liferay 2023.Q4+/GA102+
As described above, beta features are experimental and require careful consideration before usage. Beta features may be deprecated after a limited time period or converted into a release feature. You can give feedback on beta features through Liferay’s Community Slack.
Some beta features are added behind a beta feature flag.
As of Liferay 2023.Q4, some beta features are enabled out-of-the-box, but are marked with a tag in the UI to highlight their beta status ().