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

Filter on biosamples before studies #1086

Merged
merged 4 commits into from
Dec 1, 2023
Merged

Conversation

naglepuff
Copy link
Collaborator

@naglepuff naglepuff commented Nov 30, 2023

Fix #1085

The SQL query generated by the BaseQuerySchema class has a problem when performing a query for a model with conditions that apply to related models.

In the linked issue, this manifested in incorrect Study results when multiple filters were applied to the Biosample model.

Now, Study search results are "sanity checked" against Biosample search results for queries that include filters on Biosample.

A new test was added to simulate the query described in the issue that validates this approach.

@naglepuff naglepuff marked this pull request as ready for review November 30, 2023 22:25
@naglepuff naglepuff merged commit 0c62451 into main Dec 1, 2023
2 checks passed
@naglepuff naglepuff deleted the 1085-query-grouping-workaround branch December 1, 2023 20:21
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.

EMP 500 study is showing up in study results with map filter without showing any samples
2 participants