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

Feature/add error handler for callback #31

Conversation

AmirSalakhov94
Copy link
Contributor

@AmirSalakhov94 AmirSalakhov94 commented Jul 7, 2023

Hello. We want to use client-side Growthbook service call metrics. But a handler made for succesfully calls only would like to add an error handler as well. Here's the pull request, it's not claims to be the best solution. Thank you)

Closes #32

Extension refreshCallback
Extension refresh callback
Copy link
Contributor

@tinahollygb tinahollygb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Functionality-wise seems good, but I left some grammar and style requests. See inline. Thanks!

@AmirSalakhov94
Copy link
Contributor Author

Functionality-wise seems good, but I left some grammar and style requests. See inline. Thanks!

Thank you, I was glad to contribute) I added 2 more tests to check refresh callback.

Copy link
Contributor

@tinahollygb tinahollygb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See inline comment but tests are still not accurately testing a real failure case scenario.

ASalakhov added 2 commits August 2, 2023 11:16
…dler-for-callback

# Conflicts:
#	lib/src/main/java/growthbook/sdk/java/GBFeaturesRepository.java
@tinahollygb tinahollygb merged commit eaaa583 into growthbook:main Aug 2, 2023
5 checks passed
@tinahollygb
Copy link
Contributor

Awesome, thanks for the contribution! 🚀

@AmirSalakhov94
Copy link
Contributor Author

Awesome, thanks for the contribution! 🚀

Glad to take part)

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

Successfully merging this pull request may close these issues.

Subscribe to feature refresh errors
2 participants