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

Hide empty classes from the QB Model Browser #662

Open
heralden opened this issue Mar 9, 2021 · 4 comments
Open

Hide empty classes from the QB Model Browser #662

heralden opened this issue Mar 9, 2021 · 4 comments
Labels
InterMine backend Requires/depends on InterMine backend work. Medium priority Query Builder

Comments

@heralden
Copy link
Member

heralden commented Mar 9, 2021

We should also add a checkbox to show empty classes, so the user can have them if they want (legacy webapp has this).

@heralden
Copy link
Member Author

I don't think this is doable with the current web services we have. As an example. FlyMine will hide Gene > Child Features because all childFeatures collections on objects of type Gene are empty, but with only the mine's JSON data model, you can only tell the total count of the SequenceFeature class (the referenced type) which is 3270774.

From the documentation for Template Queries:

There are several processes run after the data loading is completed, one of which the objectstore summarisation. This step counts the number of objects of particular classes, identifies any empty references/collections and collects values to be appear in dropdowns in the query builder and templates. The summarisation process also constructs the indexes needed for “type-ahead” autocompletion, this is configured by adding entries to the ObjectStore Summary file.

If we want this feature in Bluegenes, we'll probably need to expose the result of the objectstore summarisation as a web service (or possibly add it to the existing model web service JSON).

@ValWood
Copy link

ValWood commented May 23, 2022

Hi, Is there a timescale for this? We are finding it quite difficult to know what data is present and. to make templates even though we know the data well because it isn't super-obvious whether fields are populated or not (quite often we can't tell only from the label).

@kimrutherford
@manulera
@ValWood

@heralden
Copy link
Member Author

This is quite tricky to implement and we don't have it planned currently. I hope my suggestion in intermine/pombemine#14 (comment) will help somewhat. I'll talk with Daniela about adding this to the roadmap.

@ValWood
Copy link

ValWood commented May 24, 2022

OK, It helps now I remembered the model browser!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
InterMine backend Requires/depends on InterMine backend work. Medium priority Query Builder
Projects
None yet
Development

No branches or pull requests

2 participants