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

feat: utilise itly.flush to ensure event delivery [ROAD-120] #21

Closed
wants to merge 1 commit into from

Conversation

michelkaporin
Copy link
Contributor

  • Use itly.flush() to ensure event queue is delivered when extension is deactivated or uninstalled.
  • Flush after 'Plugin is Installed' event to prevent out of order delivery.

@michelkaporin michelkaporin requested review from pavel-snyk and a team July 2, 2021 06:58
@@ -149,6 +151,8 @@ export class Iteratively {
},
},
);

return itly.flush();
Copy link
Contributor

Choose a reason for hiding this comment

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

@michelkaporin, question: why we need to call flush after pluginIsInstalled?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@pavel-snyk to prevent out of order event delivery that happens between 'Plugin is Installed' and 'Welcome is Viewed' events currently. They are fired one after another and Iteratively/Segment ingest them out of order for some reason.

@michelkaporin
Copy link
Contributor Author

Closed in favour of #22

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