Closed hongsudt closed 2 years ago
Use "Remove" in the modal title instead of "unlink". The same goes for the "submission" button.
The changes for this issue have been merged into master. Reassigning to @hongsuda to verify and close.
@karlcz when you have a chance, please review this feature and close it.
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.
I also find the plus button on the modal confusing. We should remove that button from the remove modal.
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.
Related to issues #1060 and #1591 .
Enhancements that can be done before sending the delete request:
Changes that were discussed in our meeting on Tuesday regarding how to best handle batch deletion:
To be done later:
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.