v3.0.0.0
github-actions
released this
20 May 03:13
·
45 commits
to refs/heads/release/PTE
since this release
Added
ConditionProvider_FF_TSL
enables per environment conditional feature definition usingAddFeature
,AddCondition
andAddFeatureCondition
methods
// Add new feature with condition to be enabled only for users with email ending with '.nz'.
ConditionProvider.AddFeature('Stripe', '[Enables Stripe Integration](https://example.com/Stripe)');
User.SetFilter("Contact Email", '*.nz');
ConditionProvider.AddCondition('NZUserOnly', ConditionFunction_FF_TSL::UserFilter, User.GetView());
ConditionProvider.AddFeatureCondition('Stripe', 'NZUserOnly');
PostHogProvider_FF_TSL
enables feature definition using PostHog Feature Flags service
// App PostHog provider. It will load all available features automatically.
ISecretProvider := SecretProvider;
ISecretProvider.GetSecret('PostHogPersonalAPIKey', PersonalAPIKey);
ISecretProvider.GetSecret('PostHogProjectID', ProjectID);
if not PostHogProvider.AddProvider('THETA_POSTHOG', PersonalAPIKey, ProjectID) then
Error(GetLastErrorText());
- Only users with
Feature Mgt. - Admin
PermissionSet will be allowed to modify features enabled by a condition provider IProvider_FF_TSL
interface defined to abstract provider implementationIProvider_FF_TSL
interface now includes tracking of feature events:LearnMore
occurs when the user follows a learn more URLIsEnabled
occurs when the IsEnabled procedure is executed, and the feature is enabledIsDisabled
occurs when the IsEnabled procedure is executed, and the feature is disabled
Changed
- Changes incompatible with a previous version
Removed
- Ability to add features manually using
Features
page