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

fix: Events Queue is only paused if there were errors #78

Merged
merged 3 commits into from
Jan 11, 2024

Conversation

marandaneto
Copy link
Member

@marandaneto marandaneto commented Jan 10, 2024

💡 Motivation and Context

The event Queue was paused even if there were no errors, so setting a lower flushIntervalSeconds did not have a lot of effects.

The Do not report flag events if the flag has been reported with the same value fix part of this PR was found after fixing the main issue and was necessary to be in the same PR to make the CI happy.

💚 How did you test it?

📝 Checklist

  • I reviewed the submitted code.
  • I added tests to verify the changes.
  • I updated the docs if needed.
  • No breaking change or entry added to the changelog.

@@ -497,7 +497,7 @@ public class PostHog private constructor(
if (values.contains(value)) {
shouldSendFeatureFlagEvent = false
} else {
values.add(key)
values.add(value)
Copy link
Member Author

Choose a reason for hiding this comment

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

do not send feature flags called event twice test already exists and it was failing correctly

@marandaneto marandaneto marked this pull request as ready for review January 10, 2024 14:25
@marandaneto marandaneto requested a review from a team January 10, 2024 14:25
Copy link
Member

@pauldambra pauldambra left a comment

Choose a reason for hiding this comment

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

🚢

@marandaneto marandaneto merged commit 06cd8d3 into main Jan 11, 2024
3 of 4 checks passed
@marandaneto marandaneto deleted the fix/timer-paused-only-errors branch January 11, 2024 10:16
Copy link

Fails
🚫 Please consider adding a changelog entry for the next release.

Instructions and example for changelog

Please add an entry to CHANGELOG.md to the "Next" section. Make sure the entry includes this PR's number.
Example:

## Next
- Events Queue is only paused if there were errors ([#78](https://github.com/PostHog/posthog-android/pull/78))

If none of the above apply, you can opt out of this check by adding #skip-changelog to the PR description.

Generated by 🚫 dangerJS against 1a163ac

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.

2 participants