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

Make deconstruct-by-class match im-tables behaviour #59

Merged
merged 3 commits into from
Apr 7, 2022

Conversation

heralden
Copy link
Member

Due to how the view is overwritten by a single target class as required
by tolist WS, this leads to a differing query result set, as the views
implicitly constrain refs/colls to be present (inner join being the
default). To match this behaviour without views, we need to add IS NOT
NULL constraints for them, except in the case where the class is an
outer join, when it should not receive a substitute constraint.

This bug was found investigating intermine/im-tables-3#129 where saving a list in im-tables-3 would lead to a different amount of items compared to im-tables (legacy webapp).

Due to how the view is overwritten by a single target class as required
by tolist WS, this leads to a differing query result set, due to views
implicitly constraining refs/colls to be present (as inner join is the
default). To match this behaviour without views, we need to add IS NOT
NULL constraints for them, except in the case where the class is an
outer join, when it should not receive a substitute constraint.
We want to do this as it's arguably the expected behaviour of these
functions. It would also mean fixing a predicted problem causing more
objects than intended to be passed on to BG visualizations.
@heralden heralden merged commit dd43f94 into intermine:dev Apr 7, 2022
@heralden heralden deleted the fix/deconstruct-by-class branch April 7, 2022 12:37
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.

None yet

1 participant