diff --git a/DOCS/Changelog.md b/DOCS/Changelog.md index 98a6422..e0720f3 100644 --- a/DOCS/Changelog.md +++ b/DOCS/Changelog.md @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Extension somehow breaks other extensions install [#18](https://github.com/thetanz/OpenFeature-al/issues/18) - InherentPermissions to simplify permissions [#13](https://github.com/thetanz/OpenFeature-al/issues/13) +- SetContext Operation exceeded time threshold (AL method) [#11](https://github.com/thetanz/OpenFeature-al/issues/11) ### Added - Code documentation for public APIs, public enums and interfaces diff --git a/MAIN/src/Providers/PostHogProvider.Codeunit.al b/MAIN/src/Providers/PostHogProvider.Codeunit.al index 11dffed..0dd69cb 100644 --- a/MAIN/src/Providers/PostHogProvider.Codeunit.al +++ b/MAIN/src/Providers/PostHogProvider.Codeunit.al @@ -66,15 +66,8 @@ codeunit 58653 "PostHogProvider_FF_TSL" implements IProvider_FF_TSL [NonDebuggable] internal procedure SetContext(ConnectionInfo: JsonObject; ContextUserSecurityID: Guid) - var - User: Record User; - begin - if not IsNullGuid(ContextUserSecurityID) then - User.SetRange("User Security ID", ContextUserSecurityID); - if User.FindSet() then - repeat - CreateIdentity(User, ConnectionInfo) - until User.Next() = 0 + begin + end; [NonDebuggable]