informatics-isi-edu / chaise

An adaptive user interface for the Deriva platform.
https://www.isi.edu/isr/
Apache License 2.0
9 stars 6 forks source link

batch unlink of members in pure and binary association #1535

Closed hongsudt closed 2 years ago

hongsudt commented 6 years ago

For pure and binary association, there is no way to get to a full set of these entries. Users can only see what's shown under the related tables. We should mimic the multi-select add to provide multi-select delete.

In the delete case, it should direct users to those records that are currently associated with the main entities, allow users to select multiple entries, then click submit. On top of the related table in the record page, maybe we can have "Remove" or "Unlink" to trigger the batch delete flow.

jrchudy commented 6 years ago

Use "Remove" in the modal title instead of "unlink". The same goes for the "submission" button.

jrchudy commented 6 years ago

The changes for this issue have been merged into master. Reassigning to @hongsuda to verify and close.

hongsudt commented 6 years ago

@karlcz when you have a chance, please review this feature and close it.

karlcz commented 6 years ago

I tried to test this on synapse-dev. I went to https://synapse-dev.isrd.isi.edu/chaise/record/#1/Zebrafish:Cohort%20Analysis/RID=17AR and tried to remove items from the "Cohort" related entity section.

The modal lets me pick items and shows them in chicklets at the top. But, the remove button closes the modal and nothing else happens. I don't see any DELETE request on the server either.

hongsudt commented 6 years ago

I also find the plus button on the modal confusing. We should remove that button from the remove modal.

RFSH commented 5 years ago

One of the confusing parts of the implementation of batch-unlink that we reverted was the fact that users could remove the existing facet. I recently added the hidden support to facets in the url. Now you can have facets in your url that won't be merged in the faceting UX and users won't be able to remove them.

The reference that we are going to use for the modal picker should be the result of calling .hideFacets() on the related reference.

jrchudy commented 4 years ago

Related to issues #1060 and #1591 .

jrchudy commented 2 years ago

Enhancements that can be done before sending the delete request:

jrchudy commented 2 years ago

Changes that were discussed in our meeting on Tuesday regarding how to best handle batch deletion:

To be done later: