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

Clear context for experiment when logging (delayed) reward #46

Merged
merged 3 commits into from
Apr 21, 2020

Conversation

lgvital
Copy link
Collaborator

@lgvital lgvital commented Apr 21, 2020

Lmk if we should be more aggressive in clearing context. The con would be hitting ipify limits earlier.

@econti
Copy link
Collaborator

econti commented Apr 21, 2020

cool. what about when a user's IP address changes. do we ever check that / do you think it is worth checking?

this.storage.removeItem(this.sessionIdKey);
this.storage.removeItem(this.lastActionTimeKey);
this.clearContext(experimentId);
Copy link
Collaborator

Choose a reason for hiding this comment

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

does this clear IP & auto-context (cache)?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ah good catch, forgot cache is keyed separately. adding.

@lgvital
Copy link
Collaborator Author

lgvital commented Apr 21, 2020

cool. what about when a user's IP address changes. do we ever check that / do you think it is worth checking?

Presumably, if the IP is in their local storage, it's the same user/device, just (possibly) on a different network. I think it makes sense to treat it as a single user until the session is over, but open to changing my mind.

@lgvital lgvital merged commit 3307b34 into master Apr 21, 2020
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