Open calculuschild opened 2 years ago
Trashed brews are viewable in the tool, with a popup showing that they are in the trash, is this still an issue?
That is a separate issue.
This issue is the possibility of having two brews with the same share and edit id (not sure if still exists, but should test): 1) Create a brew linked to a Google Drive 2) Transfer the brew to HB. The original Google Drive file is moved to Google Drive trash 3) Open Google Drive trash. Find the deleted file and restore it 4) Open user brews page. You now have two files with the same shareId, one on HB and one from Google Drive 5) Attempt to transfer the Google Drive file to HB 6) Error. Duplicate file ID.
Due to the change in #2089 to persist
shareID
andeditID
between Google Drive transfers. Since we don't fully delete the transferred file from the user's Google drive, but just send it to the Trash (in case it was accidental), recovering that file and then attempting to also send it to the Homebrewery will naturally result in a conflict in a duplicate ID.However, this error manifests as the "Your google credentials are expired" popup. Simply providing a correct error message might be all we need to do here. The chance of this happening is pretty small I think.
Relevant server error: