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

Improve endpoint updates #38

Merged
merged 2 commits into from
Mar 13, 2020
Merged

Improve endpoint updates #38

merged 2 commits into from
Mar 13, 2020

Conversation

roborourke
Copy link
Contributor

It is possible to just use the put events command to update endpoints so we can remove the update endpoint command requirement. This also has the effect of ensuring the endpoint is always in sync with the event records as there is no race condition between the initial update endpoint call and the first event being recorded.

Lastly it also removes an unnecessary HTTP request to update endpoint separately.

It is possible to just use the put events command to update endpoints so we can remove the update endpoint command requirement. This also has the effect of ensuring the endpoint is always in sync with the event records as there is no race condition between the initial update endpoint call and the first event being recorded.

Lastly it also removes an unnecessary HTTP request to update endpoint separately.
@roborourke roborourke requested a review from rmccue March 12, 2020 16:51
Copy link
Member

@rmccue rmccue left a comment

Choose a reason for hiding this comment

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

Seems fine to me.

Coding standards seem a bit inconsistent here though; some of your calls have nacin-spacin, while others don't. Could those be consistent (even if not HM-style)?

@roborourke
Copy link
Contributor Author

I'll do a full code-style sweep in a separate PR 👍

this prevents stale data being supplied for endpoint attributes
@roborourke roborourke merged commit 9e45df9 into master Mar 13, 2020
@roborourke roborourke deleted the better-endpoint-updates branch March 13, 2020 17:42
roborourke added a commit to humanmade/altis-local-server that referenced this pull request Mar 14, 2020
This brings in support for creating and updating endpoints via the putEvents method as per production. This is needed to support the new method for updating endpoints brought in with the changes in humanmade/aws-analytics#38
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