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: send empty events packages if all non statisfying condition #268

Merged
merged 4 commits into from Jan 25, 2023

Conversation

VladislavFitz
Copy link
Contributor

Summary

EventsProcessor of Insights package filters out event in package by acceptance condition (event was captured not longer than 4 days ago).
If all events in the package don't satisfy this condition, an empty payload will be sent.
This PR adds a check to avoid useless network calls in this case.

Result

No network call happens if no event satisfy the acceptance criteria

@VladislavFitz VladislavFitz merged commit 0dcd985 into master Jan 25, 2023
@VladislavFitz VladislavFitz deleted the fix/insights-empty-packages branch February 6, 2023 20:20
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.

None yet

2 participants