Skip to content

v3.0.0.0

Compare
Choose a tag to compare
@github-actions 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 using AddFeature, AddCondition and AddFeatureCondition 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');
// 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 implementation
  • IProvider_FF_TSL interface now includes tracking of feature events:
    • LearnMore occurs when the user follows a learn more URL
    • IsEnabled occurs when the IsEnabled procedure is executed, and the feature is enabled
    • IsDisabled 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