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

Filtering sub elements in Tripal Entity Views. #1075

Merged
merged 1 commit into from
Aug 7, 2020

Conversation

spficklin
Copy link
Member

Bug Fix

Issue: tripal/tripal_analysis_interpro#31

Description

An issue was reported on the Tripal Analysis InterPro project by @martacds. The problem is that when trying to add a filter to a view it's not working. The example is when trying to add a filter for annotations (CV terms)_ on a feature page (i.e. for InterPro terms). Adding the filter works just fine, but it doesn't actually do any filtering.

The problem is actually much bigger than just filtering on annotations (cv terms). It occurs for any field that has sub elements. For example, adding a 'Genus' or 'Species' filter also has no effect as those are sub elements of the obi__organism field.

Testing?

To test this before pulling the branch, try testing adding a 'Genus' or 'Species' filter to any View that searches a feature. It will not work. then pull the branch and rerun the View. The 'Genus' or 'Species' filter should now work.

You can also test with any other field that has sub elements (e.g. relationships, cv terms).

@spficklin spficklin changed the title Fix for issue reported on interpo project but this is a tripal bug Filtering sub elements in Tripal Entity Views. Aug 7, 2020
@spficklin spficklin added bug - confirmed For issues where a core developer has confirmed a bug exists. Good First Issue Any issue that is appropriate for a new contributor to try addressing. labels Aug 7, 2020
Copy link
Member

@bradfordcondon bradfordcondon left a comment

Choose a reason for hiding this comment

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

Thank you!

@bradfordcondon
Copy link
Member

tripal/tripal_analysis_interpro#31 (comment) is a functional approval, so with that i will merge. Thank you!

@bradfordcondon bradfordcondon merged commit 4ce8390 into 7.x-3.x Aug 7, 2020
@laceysanderson laceysanderson deleted the tai31_tv3_views_query_fix branch December 7, 2022 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug - confirmed For issues where a core developer has confirmed a bug exists. Good First Issue Any issue that is appropriate for a new contributor to try addressing.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants