TMSS-2934: send 'unpin_data' flag to backend when performing 'Unpin Data' action in frontend, fix various workflow issues and tests in backend.
Closes TMSS-2934