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 results race condition #1056

Merged
merged 1 commit into from
Sep 20, 2023
Merged

Fix results race condition #1056

merged 1 commit into from
Sep 20, 2023

Conversation

marySalvi
Copy link
Collaborator

fixes #1034

@marySalvi
Copy link
Collaborator Author

@naglepuff I tested this a lot but please do the same. I did not catch any odd numbers but definitely could have missed some.

Copy link
Collaborator

@naglepuff naglepuff left a comment

Choose a reason for hiding this comment

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

I think this did the trick. To test, I compared this branch with the current dev code. I don't have the same data locally that exists in dev, but I was more interested in looking at network activity anyway, so I don't think it matters. I tested by running a search to get a URL with that search encoded, and then pointing my browser at that URL.

In dev, I see (and I think @jeffbaumes pointed this out in the original issue) two pairs of requests to the /search endpoints for biosample and study, which was the cause of the race condition:
image

With this branch, I only see a single pair of requests, and I see the expected results on the data portal:
image

@marySalvi marySalvi merged commit cfb7f86 into main Sep 20, 2023
2 checks passed
@marySalvi marySalvi deleted the results-race-condition branch September 20, 2023 19:15
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.

Issue when copying a data portal URL query from one google chrome tab to another
2 participants