observablehq / feedback

Customer submitted bugs and feature requests
42 stars 3 forks source link

Replaced cloud files are not being updated #608

Open nachocab opened 7 months ago

nachocab commented 7 months ago

Describe the bug I have a notebook that uses several csv files stored in Google Drive. These files get overwritten with new versions daily, but Observable doesn't detect them because the Google Drive ids of the new files are different (if I update the content of the files without replacing them with new files, the changes are picked up).

I understand this might be a limitation of Google Drive, but manually deleting the cloud file in the notebook and re-uploading it actually works because the other cells in the notebook only care about the name of the file (not the Google Drive id): await FileAttachment("google://whatever.csv").csv().

This is not ideal because I have to delete the files one by one and add them one by one. It would help if there was a way to select multiple files in this screen:

CleanShot 2023-11-19 at 20 37 15@2x

Something else that would help is a "Replace file" option for cloud files like the one in regular files:

CleanShot 2023-11-19 at 20 38 26@2x

To Reproduce Steps to reproduce the behavior:

  1. Upload a csv file to Google Drive
  2. Import it into an Observable notebook
  3. Create another csv file with the same name but different content
  4. Upload it to the same Google Drive folder and choose "Replace existing file"
  5. Refresh the notebook

Expected behavior The new content appears

Actual behavior The old content remains

mootari commented 7 months ago

if I update the content of the files without replacing them with new files, the changes are picked up

Why is this not an option for you?

nachocab commented 7 months ago

Because I would have to copy the new content, open the file, paste the content and save each file manually. I'm currently dumping the new versions in the same folder all at once (I have the Google Drive Finder extension for macOS)