-
Notifications
You must be signed in to change notification settings - Fork 17
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
Select multiple items for batch #134
Comments
@BryonLewis PR #135 adds the necessary support for batch processing, so you might want to base your work on that branch. |
@manthey The UI showing the filtering based on the regex: Was the intention to do that by just grabbing the list item names and doing some show/hide or styling/highlighting based on the regex text field with DOM manipulation? I assume the idea of using the folder ID and the filter regex instead of having true multi-select is to avoid having to make these changes in girder. There might be a way I could reach into girder BrowserWidget->HierarchyWidget->ItemListWidget and do the filtering but it doesn't feel proper to do it that way. |
We can have folders with literally tens of thousands of items. While we could expose the checkbox interface and have the user check those files that are desired, this doesn't scale. I expect that, most often, no regex is going to be specified (select all items). For what its worth, it is fairly straightfoward to hook to the rendering of the browser widget and turn on the checkbox interface (I haven't tried to actually use the checked results after doing so), but for large lists this isn't very useful. |
@BryonLewis Yes, that looks like what I was expecting. Can you bind to the |
@manthey Yup that shouldn't be any issue. Just with the assumption there aren't 1000 items in the panel at once (typically I think the max is 100). |
If we always open the browser widget with the paging option (as opposed to the show more option), then this will be true. |
Okay another Update I think I have a pathway through the system that seems to function.
I hope this is all following the intention/idea you had for this. Things left to do:
|
This is looking good. There is a It seems like you should able to hook the browser widget's hierarchy view in some manner to detect when it renders and call the regex highlight function, but I don't know what you'd need to do specifically. |
Further notes for myself: Testing:
|
Added in #138 . |
For batch processing, anywhere where we accept a single item, image, or file, there needs to be a way to select multiple such resources. The UI could be extended to have an extra button for selecting multiples. For instance:
where this would change the fileWidget.pug file from
to
or something similar (and, it would be better to use a class and stylesheet rather than setting the style as written above).
When the multiple item/image/file button is selected, the widget would show something akin to the new-file variant where the user can pick a directory and type a "name", except that the name would be a regular expression to limit the item/image/files in that directory (as a search -- requiring
^
and$
to anchor the ends if desired; this way an empty string matches all). Ideally, the UI would show or filter items based on the regex.When the job is submitted, code in the
widgetCollection.js
file would pass the folder ID to a<param>_folder
parameter (this will be added in a separate PR) and the regex in the<param>
parameter (essentially the same as a new-file).The text was updated successfully, but these errors were encountered: