filter rating#4694
Conversation
|
Before adding new element, we probably need to review the "filtering" section so clients are in synch |
|
@jburel That is certainly true, but the reason we have held off adding further filtering here is because of an all-or-nothing approach. Since we don't have time to do ALL, it means that users don't get any improvements. Now that we have a clear message that filtering by rating would be useful, I think it makes sense to add this. |
|
True but we need to be sure that we introduce it in a way that we can expand so that when we can do "all" there is a minimal change/impact on users. |
Caching breaks the 'rate, filter, rate, filter' workflow and query is fast enough to go unnoticed
|
@jburel - last time we tried to improve the menu in Insight we caused more problems than we solved. |
|
I will have a look at it. |
|
I am not saying that insight has/is the answer. Several "standard" filtering options will be needed/requested e.g. map annotation usage is increasing and we don't consider it at all. |
|
I have added an issue at ome/design#39 with a simple scenario. |
|
thanks @will-moore for a quick example. It's definitely is a nice asset to the center panel. We discussed few design issues that I will write down in ome/design#39. One technical issues is that rating call POST, that should be GET really. |
| } | ||
|
|
||
| var setupFiltering = function() { | ||
| // All the image filtering functionaliy setup here... |
|
I had a different experience in Safari - may help with the debugging.. Selected dataset - select Ratings from Add Filter DD - broken image link appeared in toolbar - see screenshot 1. |
|
This is failing robot tests https://ci.openmicroscopy.org/view/Failing/job/OMERO-DEV-merge-robotframework/313/robot/ |
|
Filter by rating behaves as expected. Note on filter by name: in Safari - the first time it is tried - hitting return clears the centre pane and deselects the dataset - any subsequent search seems to work OK. Could this be related to what was happening yesterday with the ratings filter? From ratings filter POV - good to merge. |
|
I think we should go over the design issue before merging anything and see how we can "extend" such feature as pointed out by @joshmoore. This will be important for project like IDR |
|
I consider this to be a short-term fix to support users who need filter by rating. We are using the existing filtering strategy, which is kinda broken for bigger datasets since it doesn't support pagination (only filters current page). |
|
This works for me now, the bug #4694 (comment) is fixed. I think that the loss of selection in left-hand tree as reported by @gusferguson is caused when you "filter out" the selected image. Dataset selection persists for me as expected. The loss of selection after "filtering out" of the selected image from the central pane is present also on eel latest (not a regression). |
|
@will-moore that is definitely useful feature, and great idea that you hit the server to get results rather then filter page content. Although I think missing bit is that you are not taking any advantage of the server call. I think we should keep center panel in sync with tree otherwise it is not very clear which images were filtered (for example I would like to use context menu after filtering). At the moment it won't also work with pagination. |
|
my comment didn't mean to block that PR, overall is an improvement |
|
I went back to my React.js centre panel code (where I have already implemented server-side filtering) and tried to port some of that code to this PR. However, I find myself getting even more bogged down in the updating of the centre panel according to filtering and selection changes in the jsTree (which is what the React.js work solves). See my discussion of this at http://will-moore.github.io/presentations/2016/Web-Planning-Jan-2016/#/8 |
|
Decided at today's client meeting that I should present this at next Tuesday's group meeting, alongside the "open with" demo #4630 |
|
I think we need to go back to the ldesign issue: point to discuss is customization vs static. Since filter by rating will for example not make sense for IDR, but filter by gene/no gene will (but won't make sense in main stream) |
|
OK, let's discuss. I'm not sure that this feature needs to be customisable initially. Ola has been identifying various places where customisation is needed and adding support for that as required. We may want to do this later with filtering, but I think the limitations of the filtering (browser-based filter what's already in the page) means it's not really useful for IDR? |
|
Reviewing scenario's for outreach programs where we can only present the web-client : Despite adding ratings, there is no way we can filter images based on rating (in the web-client) . Can we move this PR forward and see if we can bring this functionality into the client at the earliest? (All other annotations are searchable, except for ratings). Ofcourse the ongoing discussion on customisation makes sense, but can we start with the simplest solution and of course add customisation at a later stage? |
|
2 cents: IDR's more complex searching/filtering is being covered by https://github.com/ome/omero-mapr for the moment. As long as we come back and unify that with whatever filtering comes here next, I don't foresee any issues. |
|
Can we please discuss what else (if anything) is needed to get this PR merged? |
a23ed5a to
99a3c57
Compare
|
Added robot tests in #4990. |
| $.getJSON("{% url 'api_annotations' %}?type=rating&" + query, function(data){ | ||
| // map imageId to rating... rdata = {'iid': show?} | ||
| var rdata = data.annotations.reduce(function(prev, r){ | ||
| // if (r.link.owner.id === WEBCLIENT.USER.id) { |
| } | ||
| return prev; | ||
| }, {}); | ||
| $("#dataIcons li.row").each(function(){ |
| var setupFiltering = function() { | ||
| // All the image filtering functionaliy setup here... | ||
| // Chooser for revealing various filter components | ||
| $("#choosefilter").change(function(){ |
|
Robot tests in #4990 are passing better now. |
|
When I choose the filter "By Rating", Filter with 5 greyed out stars is displayed Also the functionality does not match insight (there is currently a crash that needs to be fixed in insight). It has always been 1 or more for example There is no synchronization between right-hand panel e.g. change rating to 4 |
|
There isn't a star you can click on to choose 0 stars. To remove all filtering you have to click on the X. This is the same as when we're adding Ratings, so it will be familiar to users. I originally filtered "by n or more stars" but this is really less useful since you may actually want to find all the images with 3 stars. This way, users can usefully rate 1-5 to represent 5 different categories and filter by each in turn. If we only filter "by n or more" then this can't be done. Synchronisation is tricky - I think it would be quite disturbing to click on an Image rating and suddenly the image disappears from view because it's being filtered. Also I think it's a bit of an overkill (too much unnecessary clutter) to add a Refresh button since clicking on the rating filter will simply re-filter. I don't think users are going to take a long time to think how to do this. |
|
@will-moore: I was not suggesting a refresh button. Maybe a tooltip to indicate to "click on the star again" to reclassify If I want to go from 0 to 1 then back to 0 then 1 for example, this requires a large number of clicks in the current implementation
|
|
Now, clicking To test, try adding, clearing & removing filters and combinations of Name and Rating/Unrated filters. |
|
I think it works better with the latest adjustment |





Simple filter by rating functionality for webclient centre panel (as requested by Ilan).
To test,