v3.0.0.0
·
46 commits
to refs/heads/release/PTE
since this release
Added
ConditionProvider_FF_TSLenables per environment conditional feature definition usingAddFeature,AddConditionandAddFeatureConditionmethods
// 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_TSLenables 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. - AdminPermissionSet will be allowed to modify features enabled by a condition provider IProvider_FF_TSLinterface defined to abstract provider implementationIProvider_FF_TSLinterface now includes tracking of feature events:LearnMoreoccurs when the user follows a learn more URLIsEnabledoccurs when the IsEnabled procedure is executed, and the feature is enabledIsDisabledoccurs 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
Featurespage