-
Notifications
You must be signed in to change notification settings - Fork 26
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
Resolved an issue where a visualization endpoint intermittently returned the wrong information #1336
Conversation
@GiaJordan thank you for the PR. Could you deploy this to AWS before merging to |
@linglp it's been deployed to the dev env. behavior is the same as on the local api |
@mialy-defelice and @GiaJordan |
This reverts commit a5d9bf1.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@GiaJordan @mialy-defelice I tested the PR and it looks good to me.
Was able to repro erroneous behavior on prod, staging, and a local
develop
api, forvisualize/tangled_tree/layers
endpoint only.Behavior was caused because over a session, the value for
all_layers
inTangledTree.get_tangled_tree_layers
would be preserved between requests sent to the endpoint, with the new layer information just being appended to it. The endpoint then takes the first element of theall_layers
list after it is returned, assuming that it is a list of length 1. What was actually happening is that the layers for each request were all being returned in this list and so when the first one was returned it could differ from what was requested in the most recent request.