Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose ImpressionData property from api.Feature type #181

Merged

Conversation

vgrigoruk
Copy link
Contributor

About the changes

Currently, there is no way to access "impressionData" property on the feature object, as it is not exposed via Feature type, so there is no way to implement "impressions" logic based on boolean flag that is set on per-feature basis.

@vgrigoruk vgrigoruk force-pushed the vgrigoruk/add-impression-data-to-feature branch from edb8d91 to 9560cee Compare October 16, 2024 11:53
@FredrikOseberg
Copy link
Contributor

FredrikOseberg commented Oct 25, 2024

@vgrigoruk Thanks for this PR.

This is actually a missing capability in the Go SDK. The impressionData flag is used internally in other SDKs to emit impression event with the context that was provided to the IsEnabled or GetVariant call. See Unleash/unleash-client-node#336 for details.

I'm happy to merge this property change. But it won't do anything until we add the functionality to emit the events based on this property.

@FredrikOseberg
Copy link
Contributor

Added #182 as an issue on the repository.

@FredrikOseberg FredrikOseberg merged commit a373972 into Unleash:v4 Oct 25, 2024
20 checks passed
@vgrigoruk vgrigoruk deleted the vgrigoruk/add-impression-data-to-feature branch October 30, 2024 18:43
@vgrigoruk
Copy link
Contributor Author

Thanks @FredrikOseberg!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants