After copying a file/folder, deleting it does not update the view as it should. The deleted file stays in the view and, if the user chooses "Remove" again, an error is thrown that can break their UI.
Fixes #608
Approach
Due to how we perform the copy, Ember isn't smart enough to refresh the view when the object is deleted from the backend/cache. Adjust how we perform deletes from the directory-browser to make sure the item is removed from the view every time.
How to Test
Checkout and run this branch locally, rebuild the dashboard
Login to the WholeTale Dashboard
Navigate to Manage > Home and upload a test file if you haven't already
Copy your test file, then delete it (without refreshing)
The file should appear in the view after being copied
The file should be removed from the view deleted
Create a Tale, if you haven't already (no need to launch)
You should be brought to the Run view
Navigate to Run > Files > Home for the Tale
Copy your test file, then delete it (without refreshing)
The file should appear in the view after being copied
The file should be removed from the view deleted
Navigate to Run > Files > Tale Workspace for the Tale
Copy your test file, then delete it (without refreshing)
The file should appear in the view after being copied
Problems
After copying a file/folder, deleting it does not update the view as it should. The deleted file stays in the view and, if the user chooses "Remove" again, an error is thrown that can break their UI.
Fixes #608
Approach
Due to how we perform the
copy
, Ember isn't smart enough to refresh the view when the object is deleted from the backend/cache. Adjust how we perform deletes from thedirectory-browser
to make sure the item is removed from the view every time.How to Test